	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_SENSOR_OV767x@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$30, %esi
	callq	_sccb_reg_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$-49, %eax
	leal	32(%rax), %ecx
	testq	%r15, %r15
	cmovel	%eax, %ecx
	leal	16(%rcx), %edx
	testq	%r14, %r14
	cmovel	%ecx, %edx
	movq	%rbx, %rdi
	movl	$30, %esi
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_sccb_reg_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$-193, %eax
	leal	64(%rax), %ecx
	testq	%r15, %r15
	cmovnel	%eax, %ecx
	leal	128(%rcx), %edx
	testq	%r14, %r14
	cmovnel	%ecx, %edx
	movq	%rbx, %rdi
	movl	$12, %esi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sccb_reg_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_OV767x,8,3              ## @SENSOR_OV767x
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SENSOR_OV767x@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SENSOR_OV767x@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #30
	bl	_sccb_reg_read
	and	w8, w0, #0xffffffcf
	orr	w9, w8, #0x20
	cmp	x21, #0
	csel	w8, w8, w9, eq
	orr	w9, w8, #0x10
	cmp	x20, #0
	csel	w2, w8, w9, eq
	mov	x0, x19
	mov	w1, #30
	b	LBB0_3
LBB0_2:
	mov	w1, #12
	bl	_sccb_reg_read
	and	w8, w0, #0xffffff3f
	orr	w9, w8, #0x40
	cmp	x21, #0
	csel	w8, w9, w8, eq
	orr	w9, w8, #0x80
	cmp	x20, #0
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #12
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sccb_reg_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_OV767x,8,3              ; @SENSOR_OV767x
	.no_dead_strip	_sethvflip
.subsections_via_symbols
