	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sensor_write1
_sensor_write1:                         ## @sensor_write1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%edx, -12(%rbp)
	movq	(%rdi), %rax
	movq	_CAM_TYPE_CIF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_sensor_write_reg
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rbx)
	setne	%cl
	leal	(%rcx,%rcx), %esi
	addl	$17, %esi
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_5
LBB0_2:
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_sensor_write_reg
	movl	$17, %esi
	testl	%eax, %eax
	js	LBB0_5
LBB0_4:
	movl	$1, -12(%rbp)
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_sensor_write_reg
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAM_TYPE_CIF,8,3               ## @CAM_TYPE_CIF
	.no_dead_strip	_sensor_write1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sensor_write1
_sensor_write1:                         ; @sensor_write1
	.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	x19, x0
	str	w2, [sp, #12]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CAM_TYPE_CIF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAM_TYPE_CIF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x3, sp, #12
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #1
	mov	w4, #1
	bl	_sensor_write_reg
	ldr	x8, [x19, #8]
	cmp	x8, #0
	mov	w8, #19
	mov	w9, #17
	csel	w1, w9, w8, eq
	tbz	w0, #31, LBB0_3
	b	LBB0_4
LBB0_2:
	mov	w2, #0
	mov	w4, #1
	bl	_sensor_write_reg
	mov	w1, #17
	tbnz	w0, #31, LBB0_4
LBB0_3:
	mov	w8, #1
	str	w8, [sp, #12]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #0
	mov	w4, #1
	bl	_sensor_write_reg
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_CAM_TYPE_CIF,8,3               ; @CAM_TYPE_CIF
	.no_dead_strip	_sensor_write1
.subsections_via_symbols
