	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_v4l_control
_get_v4l_control:                       ## @get_v4l_control
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movl	%esi, -48(%rbp)
	movq	_VIDIOC_QUERYCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	*%r15
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	_V4L2_CTRL_FLAG_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_7
## %bb.4:
	movl	-48(%rbp), %eax
	movl	%eax, -72(%rbp)
	movq	_VIDIOC_G_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*%r15
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	-64(%rbp), %eax
	movl	-36(%rbp), %ecx
	movl	-32(%rbp), %esi
	subl	%ecx, %eax
	movl	%eax, %edi
	shll	$16, %edi
	subl	%eax, %edi
	subl	%ecx, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_dprintk
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_dprintk
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDIOC_QUERYCTRL,4,2           ## @VIDIOC_QUERYCTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_QUERYCTRL: %d\n"

	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ## @V4L2_CTRL_FLAG_DISABLED
	.comm	_VIDIOC_G_CTRL,4,2              ## @VIDIOC_G_CTRL
L_.str.1:                               ## @.str.1
	.asciz	"VIDIOC_G_CTRL: %d\n"

	.no_dead_strip	_get_v4l_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_v4l_control
_get_v4l_control:                       ; @get_v4l_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	str	w1, [sp, #24]
Lloh0:
	adrp	x8, _VIDIOC_QUERYCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDIOC_QUERYCTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	blr	x19
	mov	x1, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cbnz	w1, LBB0_3
; %bb.2:
	ldr	w8, [sp, #28]
Lloh3:
	adrp	x9, _V4L2_CTRL_FLAG_DISABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_dprintk
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w8, [sp, #24]
	str	w8, [sp]
Lloh8:
	adrp	x8, _VIDIOC_G_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIDIOC_G_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	blr	x19
	tbnz	w0, #31, LBB0_9
; %bb.8:
	ldr	w8, [sp, #8]
	ldp	w9, w10, [sp, #36]
	sub	w8, w8, w9
	lsl	w11, w8, #16
	sub	w0, w11, w8
	sub	w1, w10, w9
	bl	_DIV_ROUND_CLOSEST
	b	LBB0_6
LBB0_9:
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDIOC_QUERYCTRL,4,2           ; @VIDIOC_QUERYCTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_QUERYCTRL: %d\n"

	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ; @V4L2_CTRL_FLAG_DISABLED
	.comm	_VIDIOC_G_CTRL,4,2              ; @VIDIOC_G_CTRL
l_.str.1:                               ; @.str.1
	.asciz	"VIDIOC_G_CTRL: %d\n"

	.no_dead_strip	_get_v4l_control
.subsections_via_symbols
