	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_set_flip              ## -- Begin function camif_hw_set_flip
	.p2align	4, 0x90
_camif_hw_set_flip:                     ## @camif_hw_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
	movl	8(%rdi), %r14d
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	callq	_S3C_CAMIF_REG_CITRGFMT
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_camif_read
	movq	_CITRGFMT_FLIP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	xorl	%eax, %eax
	cmpq	$0, 24(%rbx)
	movl	$0, %r14d
	je	LBB0_2
## %bb.1:
	movq	_CITRGFMT_FLIP_Y_MIRROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
LBB0_2:
	orl	%ecx, %r14d
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_CITRGFMT_FLIP_X_MIRROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %r14d
	movl	8(%rbx), %r15d
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_S3C_CAMIF_REG_CITRGFMT
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_camif_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CITRGFMT_FLIP_MASK,4,2         ## @CITRGFMT_FLIP_MASK
	.comm	_CITRGFMT_FLIP_Y_MIRROR,4,2     ## @CITRGFMT_FLIP_Y_MIRROR
	.comm	_CITRGFMT_FLIP_X_MIRROR,4,2     ## @CITRGFMT_FLIP_X_MIRROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_set_flip              ; -- Begin function camif_hw_set_flip
	.p2align	2
_camif_hw_set_flip:                     ; @camif_hw_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
	ldp	w0, w20, [x0, #4]
	ldr	w1, [x19]
	bl	_S3C_CAMIF_REG_CITRGFMT
	mov	x1, x0
	mov	x0, x20
	bl	_camif_read
Lloh0:
	adrp	x8, _CITRGFMT_FLIP_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CITRGFMT_FLIP_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldp	x10, x9, [x19, #16]
	cmp	x9, #0
Lloh3:
	adrp	x9, _CITRGFMT_FLIP_Y_MIRROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CITRGFMT_FLIP_Y_MIRROR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _CITRGFMT_FLIP_X_MIRROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CITRGFMT_FLIP_X_MIRROR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w20, w8, w9
	ldp	w0, w21, [x19, #4]
	ldr	w1, [x19]
	bl	_S3C_CAMIF_REG_CITRGFMT
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	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	_camif_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CITRGFMT_FLIP_MASK,4,2         ; @CITRGFMT_FLIP_MASK
	.comm	_CITRGFMT_FLIP_Y_MIRROR,4,2     ; @CITRGFMT_FLIP_Y_MIRROR
	.comm	_CITRGFMT_FLIP_X_MIRROR,4,2     ; @CITRGFMT_FLIP_X_MIRROR
.subsections_via_symbols
