	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov9655_camera_settings
_ov9655_camera_settings:                ## @ov9655_camera_settings
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movabsq	$8070451225819086852, %rax      ## imm = 0x700000A17C100004
	movq	%rax, -40(%rbp)
	movb	$0, -32(%rbp)
	movq	32(%rdi), %rax
	movq	40(%rdi), %r14
	cmpq	8(%rdi), %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	cmpq	24(%rbx), %rax
	jle	LBB0_4
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	movb	%al, -37(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$24576, %ecx                    ## imm = 0x6000
	movl	$512, %r8d                      ## imm = 0x200
	movl	$8, %r9d
	callq	_ctrl_out
LBB0_5:
	cmpq	16(%rbx), %r14
	je	LBB0_7
## %bb.6:
	movq	%r14, 16(%rbx)
	xorl	%eax, %eax
	testq	%r14, %r14
	setne	%al
	movl	%eax, (%rbx)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.ov9655_camera_settings.dat_bright: ## @__const.ov9655_camera_settings.dat_bright
	.asciz	"\004\000\020|\241\000\000p"

	.no_dead_strip	_ov9655_camera_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov9655_camera_settings
_ov9655_camera_settings:                ; @ov9655_camera_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.ov9655_camera_settings.dat_bright@PAGE
Lloh4:
	add	x8, x8, l___const.ov9655_camera_settings.dat_bright@PAGEOFF
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	strb	wzr, [sp, #16]
	ldp	x8, x20, [x0, #32]
	ldr	x9, [x0, #8]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	str	x8, [x19, #8]
	tbnz	x8, #63, LBB0_3
; %bb.2:
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.le	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
	strb	w8, [sp, #11]
	add	x6, sp, #8
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #24576
	mov	w4, #512
	mov	w5, #8
	bl	_ctrl_out
LBB0_5:
	ldr	x8, [x19, #16]
	cmp	x20, x8
	b.eq	LBB0_7
; %bb.6:
	str	x20, [x19, #16]
	cmp	x20, #0
	cset	w8, ne
	str	w8, [x19]
LBB0_7:
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.ov9655_camera_settings.dat_bright: ; @__const.ov9655_camera_settings.dat_bright
	.asciz	"\004\000\020|\241\000\000p"

	.no_dead_strip	_ov9655_camera_settings
.subsections_via_symbols
