	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_OV519_R51_RESET1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_reg_w
LBB0_2:
	movq	_OV7670_R1E_MVFP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV7670_MVFP_MIRROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	8(%rbx), %rdx
	movq	_HFLIP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rdx,%rcx,4), %edi
	imull	%r8d, %edi
	movq	_OV7670_MVFP_VFLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_VFLIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdx,%rax,4), %edx
	imull	%ecx, %edx
	orl	%edi, %edx
	orl	%r8d, %ecx
	movq	%rbx, %rdi
	callq	_i2c_w_mask
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	_OV519_R51_RESET1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV519_R51_RESET1,4,2           ## @OV519_R51_RESET1
	.comm	_OV7670_R1E_MVFP,4,2            ## @OV7670_R1E_MVFP
	.comm	_OV7670_MVFP_MIRROR,4,2         ## @OV7670_MVFP_MIRROR
	.comm	_HFLIP,8,3                      ## @HFLIP
	.comm	_OV7670_MVFP_VFLIP,4,2          ## @OV7670_MVFP_VFLIP
	.comm	_VFLIP,8,3                      ## @VFLIP
	.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _OV519_R51_RESET1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OV519_R51_RESET1@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #15
	bl	_reg_w
LBB0_2:
Lloh2:
	adrp	x8, _OV7670_R1E_MVFP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OV7670_R1E_MVFP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _OV7670_MVFP_MIRROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OV7670_MVFP_MIRROR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
Lloh8:
	adrp	x10, _HFLIP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _HFLIP@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	w10, [x9, x10, lsl #2]
	mul	w10, w10, w8
Lloh11:
	adrp	x11, _OV7670_MVFP_VFLIP@GOTPAGE
Lloh12:
	ldr	x11, [x11, _OV7670_MVFP_VFLIP@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	adrp	x12, _VFLIP@GOTPAGE
Lloh15:
	ldr	x12, [x12, _VFLIP@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
	ldr	w9, [x9, x12, lsl #2]
	mul	w9, w9, w11
	orr	w2, w9, w10
	orr	w3, w11, w8
	mov	x0, x19
	bl	_i2c_w_mask
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reg_w
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OV519_R51_RESET1,4,2           ; @OV519_R51_RESET1
	.comm	_OV7670_R1E_MVFP,4,2            ; @OV7670_R1E_MVFP
	.comm	_OV7670_MVFP_MIRROR,4,2         ; @OV7670_MVFP_MIRROR
	.comm	_HFLIP,8,3                      ; @HFLIP
	.comm	_OV7670_MVFP_VFLIP,4,2          ; @OV7670_MVFP_VFLIP
	.comm	_VFLIP,8,3                      ; @VFLIP
	.no_dead_strip	_sethvflip
.subsections_via_symbols
