	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7670_s_exp
_ov7670_s_exp:                          ## @ov7670_s_exp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_REG_COM1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-42(%rbp), %rdx
	callq	_ov7670_read
	movl	%eax, %r12d
	movq	_REG_COM8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-43(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ov7670_read
	movl	%eax, %ebx
	addl	%r12d, %ebx
	movq	_REG_AECHH@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-41(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ov7670_read
	addl	%ebx, %eax
	jne	LBB0_3
## %bb.1:
	movb	-42(%rbp), %al
	andb	$-4, %al
	movl	%r15d, %ecx
	andb	$3, %cl
	orb	%al, %cl
	movb	%cl, -42(%rbp)
	movl	%r15d, %ebx
	shrl	$2, %ebx
	movb	-41(%rbp), %al
	andb	$-64, %al
	shrl	$10, %r15d
	andb	$63, %r15b
	orb	%al, %r15b
	movb	%r15b, -41(%rbp)
	movl	(%r13), %esi
	movzbl	%cl, %edx
	movq	%r14, %rdi
	callq	_ov7670_write
	movl	%eax, %r15d
	movq	_REG_AECH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %edx
	movq	%r14, %rdi
	callq	_ov7670_write
	movl	%eax, %ebx
	addl	%r15d, %ebx
	movl	(%r12), %esi
	movzbl	-41(%rbp), %edx
	movq	%r14, %rdi
	callq	_ov7670_write
	addl	%ebx, %eax
	jne	LBB0_3
## %bb.2:
	movq	_REG_COM8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_COM8_AEC@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	notb	%al
	andb	-43(%rbp), %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_ov7670_write
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_COM1,4,2                   ## @REG_COM1
	.comm	_REG_COM8,4,2                   ## @REG_COM8
	.comm	_REG_AECHH,4,2                  ## @REG_AECHH
	.comm	_REG_AECH,4,2                   ## @REG_AECH
	.comm	_COM8_AEC,1,0                   ## @COM8_AEC
	.no_dead_strip	_ov7670_s_exp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7670_s_exp
_ov7670_s_exp:                          ; @ov7670_s_exp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _REG_COM1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REG_COM1@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #15
	bl	_ov7670_read
	mov	x21, x0
Lloh2:
	adrp	x22, _REG_COM8@GOTPAGE
Lloh3:
	ldr	x22, [x22, _REG_COM8@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #14
	mov	x0, x19
	bl	_ov7670_read
	add	w21, w0, w21
Lloh4:
	adrp	x24, _REG_AECHH@GOTPAGE
Lloh5:
	ldr	x24, [x24, _REG_AECHH@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #13
	mov	x0, x19
	bl	_ov7670_read
	adds	w0, w21, w0
	b.ne	LBB0_3
; %bb.1:
	ldrb	w8, [sp, #15]
	bfxil	w8, w20, #0, #2
	strb	w8, [sp, #15]
	ldrb	w9, [sp, #13]
	bfxil	w9, w20, #10, #6
	strb	w9, [sp, #13]
	ldr	w1, [x23]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_ov7670_write
	mov	x21, x0
Lloh6:
	adrp	x8, _REG_AECH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_AECH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ubfx	w2, w20, #2, #8
	mov	x0, x19
	bl	_ov7670_write
	add	w20, w0, w21
	ldr	w1, [x24]
	ldrb	w2, [sp, #13]
	mov	x0, x19
	bl	_ov7670_write
	adds	w0, w20, w0
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x22]
	ldrb	w8, [sp, #14]
Lloh9:
	adrp	x9, _COM8_AEC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _COM8_AEC@GOTPAGEOFF]
	ldrb	w9, [x9]
	eor	w9, w9, #0xff
	and	w2, w8, w9
	mov	x0, x19
	bl	_ov7670_write
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_COM1,4,2                   ; @REG_COM1
	.comm	_REG_COM8,4,2                   ; @REG_COM8
	.comm	_REG_AECHH,4,2                  ; @REG_AECHH
	.comm	_REG_AECH,4,2                   ; @REG_AECH
	.comm	_COM8_AEC,1,0                   ; @COM8_AEC
	.no_dead_strip	_ov7670_s_exp
.subsections_via_symbols
