	.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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %r14d
	movq	_gbuffers@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jae	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	_meye@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	leaq	(%r14,%r14,2), %rdx
	movl	16(%rax,%rdx,8), %ecx
	movl	%ecx, 32(%rbx)
	movq	_V4L2_BUF_FLAG_MAPPED@GOTPCREL(%rip), %rsi
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movl	%ecx, 4(%rbx)
	movq	(%rax,%rdx,8), %rdx
	movq	_MEYE_BUF_USING@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.3:
	movq	_V4L2_BUF_FLAG_QUEUED@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, 4(%rbx)
LBB0_4:
	movq	_MEYE_BUF_DONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.5:
	movq	_V4L2_BUF_FLAG_DONE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%rbx)
LBB0_6:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movq	%r14, %rcx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %r12
	movl	12(%rax,%r12), %edi
	callq	_ns_to_timeval
	movl	%eax, 24(%rbx)
	movq	(%r15), %rax
	movl	8(%rax,%r12), %eax
	movl	%eax, 20(%rbx)
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_gbufsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	imull	%r14d, %ecx
	movl	%ecx, 12(%rbx)
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w20, [x2]
Lloh0:
	adrp	x8, _gbuffers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gbuffers@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.hs	LBB0_6
; %bb.1:
	mov	x19, x2
Lloh3:
	adrp	x21, _meye@GOTPAGE
Lloh4:
	ldr	x21, [x21, _meye@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w9, #24
	madd	x10, x20, x9, x8
	ldr	w9, [x10, #16]
Lloh5:
	adrp	x11, _V4L2_BUF_FLAG_MAPPED@GOTPAGE
Lloh6:
	ldr	x11, [x11, _V4L2_BUF_FLAG_MAPPED@GOTPAGEOFF]
	str	w9, [x2, #32]
Lloh7:
	ldr	w9, [x11]
Lloh8:
	adrp	x11, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh9:
	ldr	x11, [x11, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w9, [x2, #4]
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _MEYE_BUF_USING@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MEYE_BUF_USING@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.2:
Lloh14:
	adrp	x11, _V4L2_BUF_FLAG_QUEUED@GOTPAGE
Lloh15:
	ldr	x11, [x11, _V4L2_BUF_FLAG_QUEUED@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w9, [x19, #4]
LBB0_3:
Lloh17:
	adrp	x11, _MEYE_BUF_DONE@GOTPAGE
Lloh18:
	ldr	x11, [x11, _MEYE_BUF_DONE@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.4:
Lloh20:
	adrp	x10, _V4L2_BUF_FLAG_DONE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _V4L2_BUF_FLAG_DONE@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x19, #4]
LBB0_5:
Lloh23:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	str	w9, [x19, #28]
	add	x9, x20, x20, lsl #1
	lsl	x22, x9, #3
	add	x8, x8, x22
	ldr	w0, [x8, #12]
	bl	_ns_to_timeval
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #24]
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	w8, [x8, #8]
Lloh26:
	adrp	x9, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh29:
	adrp	x8, _gbufsize@GOTPAGE
Lloh30:
	ldr	x8, [x8, _gbufsize@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	mul	w9, w8, w20
	stp	w8, w9, [x19, #8]
	b	LBB0_7
LBB0_6:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.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	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.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
