	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr030pc30_set_flip
_sr030pc30_set_flip:                    ## @sr030pc30_set_flip
	.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	%rdi, %rbx
	callq	_to_sr030pc30
	movq	%rax, %r14
	movq	_VDO_CTL2_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_cam_i2c_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	andl	$124, %eax
	xorl	%ecx, %ecx
	cmpq	$0, 8(%r14)
	setne	%cl
	leal	(%rax,%rcx), %esi
	cmpq	$0, (%r14)
	leal	2(%rax,%rcx), %edx
	cmovel	%esi, %edx
	movl	(%r15), %esi
	orl	$128, %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cam_i2c_write                  ## TAILCALL
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VDO_CTL2_REG,4,2               ## @VDO_CTL2_REG
	.no_dead_strip	_sr030pc30_set_flip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr030pc30_set_flip
_sr030pc30_set_flip:                    ; @sr030pc30_set_flip
	.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	x19, x0
	bl	_to_sr030pc30
	mov	x20, x0
Lloh0:
	adrp	x21, _VDO_CTL2_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VDO_CTL2_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cam_i2c_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
	and	w8, w0, #0x7c
	ldp	x10, x9, [x20]
	cmp	x9, #0
	cset	w9, ne
	orr	w8, w8, w9
	orr	w9, w8, #0x2
	cmp	x10, #0
	csel	w8, w8, w9, eq
	ldr	w1, [x21]
	orr	w2, w8, #0x80
	mov	x0, x19
	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	_cam_i2c_write
LBB0_2:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VDO_CTL2_REG,4,2               ; @VDO_CTL2_REG
	.no_dead_strip	_sr030pc30_set_flip
.subsections_via_symbols
