	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sethvflip
_sethvflip:                             ## @sethvflip
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_FL_HFLIP@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%esi, %esi
	sete	%bl
	movl	(%rdi), %edi
	movl	4(%r15), %eax
	testl	%edi, (%rcx)
	cmovel	%esi, %ebx
	movq	_FL_VFLIP@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	testl	%edx, %edx
	sete	%r12b
	testl	%edi, (%rcx)
	cmovel	%edx, %r12d
	leal	-131(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_4
## %bb.1:
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.5:
	cmpl	$130, %eax
	movl	$1, %eax
	movl	$7, %ecx
	cmovel	%eax, %ecx
	movq	_OV7660_MVFP_MIRROR@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	orl	%ecx, %ebx
	movq	_OV7660_MVFP_VFLIP@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	orl	%ebx, %r12d
	movl	%r12d, -48(%rbp)
	movq	_OV7660_REG_MVFP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	jmp	LBB0_6
LBB0_4:
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %r14
	movq	%r15, %rdi
	movl	$240, %esi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_i2c_write
	xorl	%eax, %eax
	cmpl	$133, 4(%r15)
	sete	%al
	addl	%eax, %eax
	incl	%eax
	movl	%eax, -48(%rbp)
	addl	%ebx, %ebx
	orl	%r12d, %ebx
	movl	%ebx, -44(%rbp)
	movq	%r15, %rdi
	movl	$32, %esi
	movq	%r14, %rdx
	movl	$2, %ecx
	jmp	LBB0_7
LBB0_2:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.3:
	movl	$0, -48(%rbp)
	leaq	-48(%rbp), %r14
	movq	%r15, %rdi
	movl	$3, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_i2c_write
	shll	$7, %ebx
	shll	$6, %r12d
	orl	%ebx, %r12d
	orl	$6, %r12d
	movl	%r12d, -48(%rbp)
	movq	%r15, %rdi
	movl	$30, %esi
	movq	%r14, %rdx
LBB0_6:
	movl	$1, %ecx
LBB0_7:
	callq	_i2c_write
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FL_HFLIP,4,2                   ## @FL_HFLIP
	.comm	_FL_VFLIP,4,2                   ## @FL_VFLIP
	.comm	_OV7660_MVFP_MIRROR,4,2         ## @OV7660_MVFP_MIRROR
	.comm	_OV7660_MVFP_VFLIP,4,2          ## @OV7660_MVFP_VFLIP
	.comm	_OV7660_REG_MVFP,4,2            ## @OV7660_REG_MVFP
	.no_dead_strip	_sethvflip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sethvflip
_sethvflip:                             ; @sethvflip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _FL_HFLIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FL_HFLIP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w1, #0
	cset	w10, eq
	ldp	w11, w8, [x0]
	tst	w9, w11
	csel	w21, w1, w10, eq
Lloh3:
	adrp	x9, _FL_VFLIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FL_VFLIP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w2, #0
	cset	w10, eq
	tst	w9, w11
	csel	w20, w2, w10, eq
	sub	w9, w8, #131
	cmp	w9, #3
	b.lo	LBB0_3
; %bb.1:
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.2:
	cmp	w8, #130
	mov	w8, #7
	csinc	w8, w8, wzr, ne
Lloh6:
	adrp	x9, _OV7660_MVFP_MIRROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OV7660_MVFP_MIRROR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w9, w9, w21
Lloh9:
	adrp	x10, _OV7660_MVFP_VFLIP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _OV7660_MVFP_VFLIP@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	mul	w10, w10, w20
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [sp, #8]
Lloh12:
	adrp	x8, _OV7660_REG_MVFP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OV7660_REG_MVFP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	b	LBB0_6
LBB0_3:
	str	xzr, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #240
	mov	w3, #2
	bl	_i2c_write
	ldr	w8, [x19, #4]
	cmp	w8, #133
	mov	w8, #3
	csinc	w8, w8, wzr, eq
	orr	w9, w20, w21, lsl #1
	stp	w8, w9, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #32
	mov	w3, #2
	b	LBB0_7
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.5:
	str	wzr, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #3
	mov	w3, #1
	bl	_i2c_write
	lsl	w8, w21, #7
	orr	w8, w8, w20, lsl #6
	orr	w8, w8, #0x6
	str	w8, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #30
LBB0_6:
	mov	w3, #1
LBB0_7:
	bl	_i2c_write
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FL_HFLIP,4,2                   ; @FL_HFLIP
	.comm	_FL_VFLIP,4,2                   ; @FL_VFLIP
	.comm	_OV7660_MVFP_MIRROR,4,2         ; @OV7660_MVFP_MIRROR
	.comm	_OV7660_MVFP_VFLIP,4,2          ; @OV7660_MVFP_VFLIP
	.comm	_OV7660_REG_MVFP,4,2            ; @OV7660_REG_MVFP
	.no_dead_strip	_sethvflip
.subsections_via_symbols
