	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k83a_set_vflip
_s5k83a_set_vflip:                      ## @s5k83a_set_vflip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_VFLIP_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%esi, (%rax,%rcx,4)
	leaq	-20(%rbp), %rsi
	callq	_s5k83a_get_hflip
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_s5k83a_get_rotation
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	cmpq	$0, -32(%rbp)
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	xorl	%edx, %edx
	cmpl	$0, -20(%rbp)
	sete	%dl
	movl	%edx, -20(%rbp)
	movl	%eax, %r14d
	jmp	LBB0_4
LBB0_2:
	movl	-20(%rbp), %edx
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_s5k83a_set_flip_real
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VFLIP_IDX,8,3                  ## @VFLIP_IDX
	.no_dead_strip	_s5k83a_set_vflip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k83a_set_vflip
_s5k83a_set_vflip:                      ; @s5k83a_set_vflip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _VFLIP_IDX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VFLIP_IDX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	w1, [x8, x9, lsl #2]
	add	x1, sp, #4
	bl	_s5k83a_get_hflip
	add	x1, sp, #8
	mov	x0, x20
	bl	_s5k83a_get_rotation
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.2:
	cmp	w19, #0
	cset	w19, eq
	ldr	w8, [sp, #4]
	cmp	w8, #0
	cset	w2, eq
	str	w2, [sp, #4]
	b	LBB0_4
LBB0_3:
	ldr	w2, [sp, #4]
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_s5k83a_set_flip_real
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VFLIP_IDX,8,3                  ; @VFLIP_IDX
	.no_dead_strip	_s5k83a_set_vflip
.subsections_via_symbols
