	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_rotation           ## -- Begin function fimc_hw_set_rotation
	.p2align	4, 0x90
_fimc_hw_set_rotation:                  ## @fimc_hw_set_rotation
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	movq	_FIMC_REG_CITRGFMT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_FIMC_REG_CITRGFMT_INROT90@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_FIMC_REG_CITRGFMT_OUTROT90@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %ebx
	orl	%ecx, %ebx
	movq	_FIMC_REG_CITRGFMT_FLIP_180@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r12), %eax
	cmpl	$90, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$270, %eax                      ## imm = 0x10E
	jne	LBB0_2
LBB0_3:
	movq	8(%r12), %rax
	movq	_FIMC_IO_LCDFIFO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_5
## %bb.4:
	orl	%ecx, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	8(%r12), %rax
	jmp	LBB0_6
LBB0_5:
	orl	%edx, %ebx
LBB0_6:
	movq	_FIMC_IO_DMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_fimc_hw_get_target_flip
	jmp	LBB0_9
LBB0_8:
	movq	_FIMC_REG_MSCTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_FIMC_REG_MSCTRL_FLIP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r12, %rdi
	callq	_fimc_hw_get_in_flip
LBB0_9:
	orl	%ebx, %eax
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_REG_CITRGFMT,8,3          ## @FIMC_REG_CITRGFMT
	.comm	_FIMC_REG_CITRGFMT_INROT90,4,2  ## @FIMC_REG_CITRGFMT_INROT90
	.comm	_FIMC_REG_CITRGFMT_OUTROT90,4,2 ## @FIMC_REG_CITRGFMT_OUTROT90
	.comm	_FIMC_REG_CITRGFMT_FLIP_180,4,2 ## @FIMC_REG_CITRGFMT_FLIP_180
	.comm	_FIMC_IO_LCDFIFO,8,3            ## @FIMC_IO_LCDFIFO
	.comm	_FIMC_IO_DMA,8,3                ## @FIMC_IO_DMA
	.comm	_FIMC_REG_MSCTRL,8,3            ## @FIMC_REG_MSCTRL
	.comm	_FIMC_REG_MSCTRL_FLIP_MASK,4,2  ## @FIMC_REG_MSCTRL_FLIP_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_rotation           ; -- Begin function fimc_hw_set_rotation
	.p2align	2
_fimc_hw_set_rotation:                  ; @fimc_hw_set_rotation
	.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
	ldr	x20, [x0, #16]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FIMC_REG_CITRGFMT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIMC_REG_CITRGFMT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _FIMC_REG_CITRGFMT_INROT90@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIMC_REG_CITRGFMT_INROT90@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FIMC_REG_CITRGFMT_OUTROT90@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FIMC_REG_CITRGFMT_OUTROT90@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _FIMC_REG_CITRGFMT_FLIP_180@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FIMC_REG_CITRGFMT_FLIP_180@GOTPAGEOFF]
	orr	w11, w9, w8
Lloh11:
	ldr	w10, [x10]
	orr	w10, w11, w10
	bic	w21, w0, w10
	ldr	w10, [x19]
	cmp	w10, #90
	b.eq	LBB0_2
; %bb.1:
	cmp	w10, #270
	b.ne	LBB0_3
LBB0_2:
Lloh12:
	adrp	x11, _FIMC_IO_LCDFIFO@GOTPAGE
Lloh13:
	ldr	x11, [x11, _FIMC_IO_LCDFIFO@GOTPAGEOFF]
	ldr	x10, [x19, #8]
Lloh14:
	ldr	x11, [x11]
	cmp	x10, x11
	orr	w9, w21, w9
	orr	w8, w21, w8
	csel	w21, w9, w8, ne
	b	LBB0_4
LBB0_3:
	ldr	x10, [x19, #8]
LBB0_4:
Lloh15:
	adrp	x8, _FIMC_IO_DMA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FIMC_IO_DMA@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_fimc_hw_get_target_flip
	orr	w0, w0, w21
Lloh18:
	adrp	x21, _FIMC_REG_CITRGFMT@GOTPAGE
Lloh19:
	ldr	x21, [x21, _FIMC_REG_CITRGFMT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20]
Lloh20:
	adrp	x21, _FIMC_REG_MSCTRL@GOTPAGE
Lloh21:
	ldr	x21, [x21, _FIMC_REG_MSCTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh22:
	adrp	x8, _FIMC_REG_MSCTRL_FLIP_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FIMC_REG_MSCTRL_FLIP_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	bic	w22, w0, w8
	mov	x0, x19
	bl	_fimc_hw_get_in_flip
	orr	w0, w22, w0
LBB0_7:
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	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	_writel
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_REG_CITRGFMT,8,3          ; @FIMC_REG_CITRGFMT
	.comm	_FIMC_REG_CITRGFMT_INROT90,4,2  ; @FIMC_REG_CITRGFMT_INROT90
	.comm	_FIMC_REG_CITRGFMT_OUTROT90,4,2 ; @FIMC_REG_CITRGFMT_OUTROT90
	.comm	_FIMC_REG_CITRGFMT_FLIP_180,4,2 ; @FIMC_REG_CITRGFMT_FLIP_180
	.comm	_FIMC_IO_LCDFIFO,8,3            ; @FIMC_IO_LCDFIFO
	.comm	_FIMC_IO_DMA,8,3                ; @FIMC_IO_DMA
	.comm	_FIMC_REG_MSCTRL,8,3            ; @FIMC_REG_MSCTRL
	.comm	_FIMC_REG_MSCTRL_FLIP_MASK,4,2  ; @FIMC_REG_MSCTRL_FLIP_MASK
.subsections_via_symbols
