	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_out_dma            ## -- Begin function fimc_hw_set_out_dma
	.p2align	4, 0x90
_fimc_hw_set_out_dma:                   ## @fimc_hw_set_out_dma
	.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, %rbx
	movq	40(%rdi), %r14
	movq	8(%rdi), %r15
	movl	16(%rdi), %edi
	shll	$16, %edi
	orl	20(%rbx), %edi
	movq	_FIMC_REG_CIOYOFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movl	24(%rbx), %edi
	shll	$16, %edi
	orl	28(%rbx), %edi
	movq	_FIMC_REG_CIOCBOFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movl	32(%rbx), %edi
	shll	$16, %edi
	orl	36(%rbx), %edi
	movq	_FIMC_REG_CIOCROFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	%rbx, %rdi
	callq	_fimc_hw_set_out_dma_size
	movq	_FIMC_REG_CIOCTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_FIMC_REG_CIOCTRL_ORDER2P_MASK@GOTPCREL(%rip), %rcx
	movq	_FIMC_REG_CIOCTRL_ORDER422_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_FIMC_REG_CIOCTRL_YCBCR_PLANE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_FIMC_REG_CIOCTRL_RGB16FMT_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	(%r15), %eax
	cmpl	$3, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.3:
	orl	(%rbx), %edi
	jmp	LBB0_7
LBB0_5:
	movq	_FIMC_REG_CIOCTRL_YCBCR_3PLANE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_FIMC_REG_CIOCTRL_YCBCR_2PLANE@GOTPCREL(%rip), %rax
	orl	4(%rbx), %edi
LBB0_6:
	orl	(%rax), %edi
LBB0_7:
	movq	8(%r15), %rax
	movq	_FIMC_FMT_RGB565@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_FIMC_REG_CIOCTRL_RGB565@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_FIMC_FMT_RGB555@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_FIMC_REG_CIOCTRL_ARGB1555@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_FIMC_FMT_RGB444@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	movq	_FIMC_REG_CIOCTRL_ARGB4444@GOTPCREL(%rip), %rax
LBB0_13:
	orl	(%rax), %edi
LBB0_14:
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_REG_CIOYOFF,8,3           ## @FIMC_REG_CIOYOFF
	.comm	_FIMC_REG_CIOCBOFF,8,3          ## @FIMC_REG_CIOCBOFF
	.comm	_FIMC_REG_CIOCROFF,8,3          ## @FIMC_REG_CIOCROFF
	.comm	_FIMC_REG_CIOCTRL,8,3           ## @FIMC_REG_CIOCTRL
	.comm	_FIMC_REG_CIOCTRL_ORDER2P_MASK,4,2 ## @FIMC_REG_CIOCTRL_ORDER2P_MASK
	.comm	_FIMC_REG_CIOCTRL_ORDER422_MASK,4,2 ## @FIMC_REG_CIOCTRL_ORDER422_MASK
	.comm	_FIMC_REG_CIOCTRL_YCBCR_PLANE_MASK,4,2 ## @FIMC_REG_CIOCTRL_YCBCR_PLANE_MASK
	.comm	_FIMC_REG_CIOCTRL_RGB16FMT_MASK,4,2 ## @FIMC_REG_CIOCTRL_RGB16FMT_MASK
	.comm	_FIMC_REG_CIOCTRL_YCBCR_2PLANE,4,2 ## @FIMC_REG_CIOCTRL_YCBCR_2PLANE
	.comm	_FIMC_REG_CIOCTRL_YCBCR_3PLANE,4,2 ## @FIMC_REG_CIOCTRL_YCBCR_3PLANE
	.comm	_FIMC_FMT_RGB565,8,3            ## @FIMC_FMT_RGB565
	.comm	_FIMC_REG_CIOCTRL_RGB565,4,2    ## @FIMC_REG_CIOCTRL_RGB565
	.comm	_FIMC_FMT_RGB555,8,3            ## @FIMC_FMT_RGB555
	.comm	_FIMC_REG_CIOCTRL_ARGB1555,4,2  ## @FIMC_REG_CIOCTRL_ARGB1555
	.comm	_FIMC_FMT_RGB444,8,3            ## @FIMC_FMT_RGB444
	.comm	_FIMC_REG_CIOCTRL_ARGB4444,4,2  ## @FIMC_REG_CIOCTRL_ARGB4444
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_out_dma            ; -- Begin function fimc_hw_set_out_dma
	.p2align	2
_fimc_hw_set_out_dma:                   ; @fimc_hw_set_out_dma
	.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, #40]
	ldr	x21, [x0, #8]
	ldp	w8, w9, [x0, #16]
	orr	w0, w9, w8, lsl #16
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FIMC_REG_CIOYOFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIMC_REG_CIOYOFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	w8, w9, [x19, #24]
	orr	w0, w9, w8, lsl #16
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _FIMC_REG_CIOCBOFF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FIMC_REG_CIOCBOFF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	w8, w9, [x19, #32]
	orr	w0, w9, w8, lsl #16
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _FIMC_REG_CIOCROFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FIMC_REG_CIOCROFF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_fimc_hw_set_out_dma_size
	ldr	x8, [x20]
Lloh9:
	adrp	x22, _FIMC_REG_CIOCTRL@GOTPAGE
Lloh10:
	ldr	x22, [x22, _FIMC_REG_CIOCTRL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh11:
	adrp	x8, _FIMC_REG_CIOCTRL_ORDER2P_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FIMC_REG_CIOCTRL_ORDER2P_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _FIMC_REG_CIOCTRL_ORDER422_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FIMC_REG_CIOCTRL_ORDER422_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _FIMC_REG_CIOCTRL_YCBCR_PLANE_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FIMC_REG_CIOCTRL_YCBCR_PLANE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _FIMC_REG_CIOCTRL_RGB16FMT_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _FIMC_REG_CIOCTRL_RGB16FMT_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh22:
	ldr	w9, [x10]
	orr	w8, w8, w9
	bic	w0, w0, w8
	ldr	w8, [x21]
	cmp	w8, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh23:
	adrp	x8, _FIMC_REG_CIOCTRL_YCBCR_3PLANE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FIMC_REG_CIOCTRL_YCBCR_3PLANE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
LBB0_5:
	orr	w0, w8, w0
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #4]
Lloh26:
	adrp	x9, _FIMC_REG_CIOCTRL_YCBCR_2PLANE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FIMC_REG_CIOCTRL_YCBCR_2PLANE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
LBB0_7:
	ldr	x8, [x21, #8]
Lloh29:
	adrp	x9, _FIMC_FMT_RGB565@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FIMC_FMT_RGB565@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh32:
	adrp	x8, _FIMC_REG_CIOCTRL_RGB565@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FIMC_REG_CIOCTRL_RGB565@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh34:
	adrp	x9, _FIMC_FMT_RGB555@GOTPAGE
Lloh35:
	ldr	x9, [x9, _FIMC_FMT_RGB555@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
Lloh37:
	adrp	x8, _FIMC_REG_CIOCTRL_ARGB1555@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FIMC_REG_CIOCTRL_ARGB1555@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh39:
	adrp	x9, _FIMC_FMT_RGB444@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FIMC_FMT_RGB444@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
Lloh42:
	adrp	x8, _FIMC_REG_CIOCTRL_ARGB4444@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FIMC_REG_CIOCTRL_ARGB4444@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_14:
	ldr	x8, [x20]
	ldr	x9, [x22]
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_REG_CIOYOFF,8,3           ; @FIMC_REG_CIOYOFF
	.comm	_FIMC_REG_CIOCBOFF,8,3          ; @FIMC_REG_CIOCBOFF
	.comm	_FIMC_REG_CIOCROFF,8,3          ; @FIMC_REG_CIOCROFF
	.comm	_FIMC_REG_CIOCTRL,8,3           ; @FIMC_REG_CIOCTRL
	.comm	_FIMC_REG_CIOCTRL_ORDER2P_MASK,4,2 ; @FIMC_REG_CIOCTRL_ORDER2P_MASK
	.comm	_FIMC_REG_CIOCTRL_ORDER422_MASK,4,2 ; @FIMC_REG_CIOCTRL_ORDER422_MASK
	.comm	_FIMC_REG_CIOCTRL_YCBCR_PLANE_MASK,4,2 ; @FIMC_REG_CIOCTRL_YCBCR_PLANE_MASK
	.comm	_FIMC_REG_CIOCTRL_RGB16FMT_MASK,4,2 ; @FIMC_REG_CIOCTRL_RGB16FMT_MASK
	.comm	_FIMC_REG_CIOCTRL_YCBCR_2PLANE,4,2 ; @FIMC_REG_CIOCTRL_YCBCR_2PLANE
	.comm	_FIMC_REG_CIOCTRL_YCBCR_3PLANE,4,2 ; @FIMC_REG_CIOCTRL_YCBCR_3PLANE
	.comm	_FIMC_FMT_RGB565,8,3            ; @FIMC_FMT_RGB565
	.comm	_FIMC_REG_CIOCTRL_RGB565,4,2    ; @FIMC_REG_CIOCTRL_RGB565
	.comm	_FIMC_FMT_RGB555,8,3            ; @FIMC_FMT_RGB555
	.comm	_FIMC_REG_CIOCTRL_ARGB1555,4,2  ; @FIMC_REG_CIOCTRL_ARGB1555
	.comm	_FIMC_FMT_RGB444,8,3            ; @FIMC_FMT_RGB444
	.comm	_FIMC_REG_CIOCTRL_ARGB4444,4,2  ; @FIMC_REG_CIOCTRL_ARGB4444
.subsections_via_symbols
