	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ctrl_set_iso
___ctrl_set_iso:                        ## @__ctrl_set_iso
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_V4L2_ISO_SENSITIVITY_AUTO@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_ISP_ISO_COMMAND_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___is_set_isp_iso
	jmp	LBB0_5
LBB0_2:
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	_iso_qmenu@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	_ISP_ISO_COMMAND_MANUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___is_set_isp_iso
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_ISO_SENSITIVITY_AUTO,4,2  ## @V4L2_ISO_SENSITIVITY_AUTO
	.comm	_ISP_ISO_COMMAND_AUTO,4,2       ## @ISP_ISO_COMMAND_AUTO
	.comm	_iso_qmenu,8,3                  ## @iso_qmenu
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ISP_ISO_COMMAND_MANUAL,4,2     ## @ISP_ISO_COMMAND_MANUAL
	.no_dead_strip	___ctrl_set_iso
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ctrl_set_iso
___ctrl_set_iso:                        ; @__ctrl_set_iso
	.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	x19, x0
Lloh0:
	adrp	x8, _V4L2_ISO_SENSITIVITY_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_ISO_SENSITIVITY_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ISP_ISO_COMMAND_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISP_ISO_COMMAND_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
	ldr	w20, [x8]
Lloh6:
	adrp	x21, _iso_qmenu@GOTPAGE
Lloh7:
	ldr	x21, [x21, _iso_qmenu@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.hs	LBB0_5
; %bb.3:
	ldr	x8, [x21]
	ldr	w2, [x8, x20, lsl #2]
Lloh8:
	adrp	x8, _ISP_ISO_COMMAND_MANUAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISP_ISO_COMMAND_MANUAL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
LBB0_4:
	bl	___is_set_isp_iso
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_ISO_SENSITIVITY_AUTO,4,2  ; @V4L2_ISO_SENSITIVITY_AUTO
	.comm	_ISP_ISO_COMMAND_AUTO,4,2       ; @ISP_ISO_COMMAND_AUTO
	.comm	_iso_qmenu,8,3                  ; @iso_qmenu
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ISP_ISO_COMMAND_MANUAL,4,2     ; @ISP_ISO_COMMAND_MANUAL
	.no_dead_strip	___ctrl_set_iso
.subsections_via_symbols
