	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ctrl
_get_ctrl:                              ## @get_ctrl
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r13
	cmpl	$0, 24(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movq	_V4L2_CTRL_TYPE_INTEGER64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_4:
	movq	_V4L2_CTRL_FLAG_WRITE_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_6
## %bb.5:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	%r13, %rdi
	callq	_v4l2_ctrl_lock
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_11
## %bb.7:
	cmpl	$0, 12(%r13)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_cur_to_new
	incq	%rbx
	movslq	12(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	_g_volatile_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_call_op
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_new_to_user
	jmp	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cur_to_user
	xorl	%r12d, %r12d
LBB0_12:
	movq	%r13, %rdi
	callq	_v4l2_ctrl_unlock
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_TYPE_INTEGER64,8,3   ## @V4L2_CTRL_TYPE_INTEGER64
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CTRL_FLAG_WRITE_ONLY,4,2  ## @V4L2_CTRL_FLAG_WRITE_ONLY
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
	.comm	_g_volatile_ctrl,4,2            ## @g_volatile_ctrl
	.no_dead_strip	_get_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ctrl
_get_ctrl:                              ; @get_ctrl
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	ldr	w8, [x0, #24]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _V4L2_CTRL_TYPE_INTEGER64@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_TYPE_INTEGER64@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_2:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _V4L2_CTRL_FLAG_WRITE_ONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_WRITE_ONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _EACCES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_v4l2_ctrl_lock
	ldr	w8, [x20, #8]
Lloh8:
	adrp	x9, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.5:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x22, lsl #3]
	bl	_cur_to_new
	add	x22, x22, #1
	ldrsw	x8, [x19, #12]
	cmp	x22, x8
	b.lt	LBB0_7
LBB0_8:
Lloh11:
	adrp	x8, _g_volatile_ctrl@GOTPAGE
Lloh12:
	ldr	x8, [x8, _g_volatile_ctrl@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_call_op
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_new_to_user
	b	LBB0_12
LBB0_9:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	bl	_cur_to_user
	mov	w22, #0
LBB0_12:
	mov	x0, x19
	bl	_v4l2_ctrl_unlock
LBB0_13:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_TYPE_INTEGER64,8,3   ; @V4L2_CTRL_TYPE_INTEGER64
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CTRL_FLAG_WRITE_ONLY,4,2  ; @V4L2_CTRL_FLAG_WRITE_ONLY
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
	.comm	_g_volatile_ctrl,4,2            ; @g_volatile_ctrl
	.no_dead_strip	_get_ctrl
.subsections_via_symbols
