	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9v111_set_ctrl
_mt9v111_set_ctrl:                      ## @mt9v111_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_sn9c102_get_sensor
	cmpl	$128, (%rbx)
	jne	LBB0_2
## %bb.1:
	movl	(%rax), %ecx
	xorl	%r9d, %r9d
	cmpl	$0, 4(%rbx)
	setne	%r9b
	shll	$7, %r9d
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	movl	$32, %r8d
	pushq	$0
	pushq	$0
	pushq	%r9
	callq	_sn9c102_i2c_try_raw_write
	addq	$32, %rsp
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovel	%eax, %ecx
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_3:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mt9v111_set_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9v111_set_ctrl
_mt9v111_set_ctrl:                      ; @mt9v111_set_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_sn9c102_get_sensor
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	mov	x1, x0
	ldr	w3, [x0]
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w8, ne
	lsl	w5, w8, #7
	str	wzr, [sp]
	mov	x0, x19
	mov	w2, #4
	mov	w4, #32
	mov	x6, x5
	mov	w7, #0
	bl	_sn9c102_i2c_try_raw_write
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mt9v111_set_ctrl
.subsections_via_symbols
