	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k83a_set_flip_real
_s5k83a_set_flip_real:                  ## @s5k83a_set_flip_real
	.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
	movl	$5, -28(%rbp)
	movq	_S5K83A_PAGE_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	$1, %ecx
	callq	_m5602_write_sensor
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_S5K83A_FLIP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	orl	$64, %ecx
	testq	%r15, %r15
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	orl	$128, %eax
	testq	%r14, %r14
	cmovel	%ecx, %eax
	movl	%eax, -28(%rbp)
	movq	_S5K83A_FLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	cmpq	$1, %r15
	movl	$11, %eax
	sbbl	$0, %eax
	movl	%eax, -28(%rbp)
	movq	_S5K83A_VFLIP_TUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	testq	%r14, %r14
	sete	%al
	orl	$10, %eax
	movl	%eax, -28(%rbp)
	movq	_S5K83A_HFLIP_TUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5K83A_PAGE_MAP,4,2            ## @S5K83A_PAGE_MAP
	.comm	_S5K83A_FLIP_MASK,4,2           ## @S5K83A_FLIP_MASK
	.comm	_S5K83A_FLIP,4,2                ## @S5K83A_FLIP
	.comm	_S5K83A_VFLIP_TUNE,4,2          ## @S5K83A_VFLIP_TUNE
	.comm	_S5K83A_HFLIP_TUNE,4,2          ## @S5K83A_HFLIP_TUNE
	.no_dead_strip	_s5k83a_set_flip_real
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k83a_set_flip_real
_s5k83a_set_flip_real:                  ; @s5k83a_set_flip_real
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w8, #5
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _S5K83A_PAGE_MAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5K83A_PAGE_MAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #1
	bl	_m5602_write_sensor
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _S5K83A_FLIP_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S5K83A_FLIP_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w9, w8, #0x40
	cmp	x21, #0
	csel	w8, w8, w9, eq
	orr	w9, w8, #0x80
	cmp	x20, #0
	csel	w8, w8, w9, eq
	str	w8, [sp, #12]
Lloh6:
	adrp	x8, _S5K83A_FLIP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5K83A_FLIP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
	tbnz	w0, #31, LBB0_4
; %bb.2:
	cmp	x21, #0
	mov	w21, #10
	cinc	w8, w21, ne
	str	w8, [sp, #12]
Lloh9:
	adrp	x8, _S5K83A_VFLIP_TUNE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S5K83A_VFLIP_TUNE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
	tbnz	w0, #31, LBB0_4
; %bb.3:
	cmp	x20, #0
	cinc	w8, w21, eq
	str	w8, [sp, #12]
Lloh12:
	adrp	x8, _S5K83A_HFLIP_TUNE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S5K83A_HFLIP_TUNE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_S5K83A_PAGE_MAP,4,2            ; @S5K83A_PAGE_MAP
	.comm	_S5K83A_FLIP_MASK,4,2           ; @S5K83A_FLIP_MASK
	.comm	_S5K83A_FLIP,4,2                ; @S5K83A_FLIP
	.comm	_S5K83A_VFLIP_TUNE,4,2          ; @S5K83A_VFLIP_TUNE
	.comm	_S5K83A_HFLIP_TUNE,4,2          ; @S5K83A_HFLIP_TUNE
	.no_dead_strip	_s5k83a_set_flip_real
.subsections_via_symbols
