	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_callback
_sd_callback:                           ## @sd_callback
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	__OV9655_@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_17:
	cmpl	$0, 8(%rbx)
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	*16(%rbx)
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	leaq	-12(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movl	$192, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ctrl_in
	movl	-12(%rbp), %eax
	cmpl	$200, %eax
	je	LBB0_3
## %bb.2:
	cmpl	$64, %eax
	jne	LBB0_11
LBB0_3:
	movl	(%rbx), %edx
	cmpl	$-3, %edx
	jl	LBB0_8
## %bb.4:
	xorl	%ecx, %ecx
	testl	%edx, %edx
	jg	LBB0_7
## %bb.5:
	movl	%edx, %ecx
	cmpl	$-3, %edx
	jne	LBB0_7
## %bb.6:
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 4(%rbx)
	movl	$-3, %ecx
LBB0_7:
	decl	%ecx
	movl	%ecx, (%rbx)
LBB0_8:
	cmpl	$64, %eax
	je	LBB0_17
## %bb.9:
	cmpl	$200, %eax
	je	LBB0_17
	jmp	LBB0_10
LBB0_11:
	movl	(%rbx), %eax
	cmpl	$3, %eax
	jg	LBB0_17
## %bb.12:
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:
	cmpl	$3, %eax
	jne	LBB0_16
## %bb.14:
	movl	$0, 4(%rbx)
	movl	$3, %eax
	movl	$1, %edx
	movl	$2, %ecx
	jmp	LBB0_15
LBB0_10:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%eax, %eax
LBB0_15:
	movl	%edx, (%rbx,%rcx,4)
LBB0_16:
	incl	%eax
	movl	%eax, (%rbx)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	__OV9655_,4,2                   ## @_OV9655_
	.no_dead_strip	_sd_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_callback
_sd_callback:                           ; @sd_callback
	.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
Lloh0:
	adrp	x8, __OV9655_@GOTPAGE
Lloh1:
	ldr	x8, [x8, __OV9655_@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
LBB0_1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
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
LBB0_4:
	add	x6, sp, #12
	mov	x0, x19
	mov	w1, #192
	mov	w2, #2
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	bl	_ctrl_in
	ldr	w8, [sp, #12]
	cmp	w8, #200
	b.eq	LBB0_6
; %bb.5:
	cmp	w8, #64
	b.ne	LBB0_9
LBB0_6:
	ldr	w9, [x19]
	cmn	w9, #3
	b.lt	LBB0_16
; %bb.7:
	cmp	w9, #0
	b.le	LBB0_13
; %bb.8:
	mov	w9, #0
	b	LBB0_15
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, #3
	b.gt	LBB0_1
; %bb.10:
	tbnz	w8, #31, LBB0_18
; %bb.11:
	cmp	w8, #3
	b.ne	LBB0_20
; %bb.12:
	str	wzr, [x19, #4]
	mov	w10, #1
	mov	w9, #2
	b	LBB0_19
LBB0_13:
	cmn	w9, #3
	b.ne	LBB0_15
; %bb.14:
	movi.2s	v0, #1
	stur	d0, [x19, #4]
LBB0_15:
	sub	w9, w9, #1
	str	w9, [x19]
LBB0_16:
	cmp	w8, #64
	b.eq	LBB0_1
; %bb.17:
	cmp	w8, #200
	b.eq	LBB0_1
LBB0_18:
	mov	x9, #0
	mov	w10, #0
	mov	w8, #0
LBB0_19:
	str	w10, [x19, x9, lsl #2]
LBB0_20:
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__OV9655_,4,2                   ; @_OV9655_
	.no_dead_strip	_sd_callback
.subsections_via_symbols
