	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_querybuf
_vidioc_querybuf:                       ## @vidioc_querybuf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdx), %eax
	movq	_gbuffers@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_1
## %bb.2:
	movq	_meye@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	leaq	(%rax,%rax,2), %rsi
	movl	16(%r9,%rsi,8), %edi
	movl	%edi, 32(%rdx)
	movq	_V4L2_BUF_FLAG_MAPPED@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	%edi, 28(%rdx)
	movq	(%r9,%rsi,8), %r8
	movq	_MEYE_BUF_USING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	jne	LBB0_4
## %bb.3:
	movq	_V4L2_BUF_FLAG_QUEUED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movl	%edi, 28(%rdx)
LBB0_4:
	movq	_MEYE_BUF_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	jne	LBB0_6
## %bb.5:
	movq	_V4L2_BUF_FLAG_DONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movl	%edi, 28(%rdx)
LBB0_6:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rdx)
	movl	12(%r9,%rsi,8), %ecx
	movl	%ecx, 20(%rdx)
	movl	8(%r9,%rsi,8), %ecx
	movl	%ecx, 16(%rdx)
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rdx)
	movq	_gbufsize@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%ecx, %eax
	movl	%eax, 8(%rdx)
	movl	%ecx, 4(%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gbuffers,4,2                   ## @gbuffers
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_meye,8,3                       ## @meye
	.comm	_V4L2_BUF_FLAG_MAPPED,4,2       ## @V4L2_BUF_FLAG_MAPPED
	.comm	_MEYE_BUF_USING,8,3             ## @MEYE_BUF_USING
	.comm	_V4L2_BUF_FLAG_QUEUED,4,2       ## @V4L2_BUF_FLAG_QUEUED
	.comm	_MEYE_BUF_DONE,8,3              ## @MEYE_BUF_DONE
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ## @V4L2_BUF_FLAG_DONE
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_MEMORY_MMAP,4,2           ## @V4L2_MEMORY_MMAP
	.comm	_gbufsize,4,2                   ## @gbufsize
	.no_dead_strip	_vidioc_querybuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_querybuf
_vidioc_querybuf:                       ; @vidioc_querybuf
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _gbuffers@GOTPAGE
Lloh1:
	ldr	x9, [x9, _gbuffers@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.hs	LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _meye@GOTPAGE
Lloh4:
	ldr	x9, [x9, _meye@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x11, x8, x10, x9
	ldr	w12, [x11, #16]
Lloh6:
	adrp	x10, _V4L2_BUF_FLAG_MAPPED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_BUF_FLAG_MAPPED@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w12, [x2, #28]
	ldr	x11, [x11]
Lloh9:
	adrp	x12, _MEYE_BUF_USING@GOTPAGE
Lloh10:
	ldr	x12, [x12, _MEYE_BUF_USING@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x12, _V4L2_BUF_FLAG_QUEUED@GOTPAGE
Lloh13:
	ldr	x12, [x12, _V4L2_BUF_FLAG_QUEUED@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	orr	w10, w12, w10
	str	w10, [x2, #28]
LBB0_3:
Lloh15:
	adrp	x12, _MEYE_BUF_DONE@GOTPAGE
Lloh16:
	ldr	x12, [x12, _MEYE_BUF_DONE@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_5
; %bb.4:
Lloh18:
	adrp	x11, _V4L2_BUF_FLAG_DONE@GOTPAGE
Lloh19:
	ldr	x11, [x11, _V4L2_BUF_FLAG_DONE@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x2, #28]
LBB0_5:
	mov	w0, #0
Lloh21:
	adrp	x10, _V4L2_FIELD_NONE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	str	w10, [x2, #24]
	mov	w10, #24
	madd	x9, x8, x10, x9
	ldr	d0, [x9, #8]
	str	d0, [x2, #16]
Lloh24:
	adrp	x9, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	str	w9, [x2, #12]
Lloh27:
	adrp	x9, _gbufsize@GOTPAGE
Lloh28:
	ldr	x9, [x9, _gbufsize@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	mul	w8, w9, w8
	stp	w9, w8, [x2, #4]
	ret
LBB0_6:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_gbuffers,4,2                   ; @gbuffers
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_meye,8,3                       ; @meye
	.comm	_V4L2_BUF_FLAG_MAPPED,4,2       ; @V4L2_BUF_FLAG_MAPPED
	.comm	_MEYE_BUF_USING,8,3             ; @MEYE_BUF_USING
	.comm	_V4L2_BUF_FLAG_QUEUED,4,2       ; @V4L2_BUF_FLAG_QUEUED
	.comm	_MEYE_BUF_DONE,8,3              ; @MEYE_BUF_DONE
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ; @V4L2_BUF_FLAG_DONE
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_MEMORY_MMAP,4,2           ; @V4L2_MEMORY_MMAP
	.comm	_gbufsize,4,2                   ; @gbufsize
	.no_dead_strip	_vidioc_querybuf
.subsections_via_symbols
