	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_prepare_addr              ## -- Begin function fimc_prepare_addr
	.p2align	4, 0x90
_fimc_prepare_addr:                     ## @fimc_prepare_addr
	.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
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	movq	%rcx, %r14
	movq	%rsi, %r12
	movslq	(%rbx), %rax
	movslq	4(%rbx), %r15
	imulq	%rax, %r15
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dbg
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	%rax, 8(%r14)
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	cmpl	$1, %edx
	jne	LBB0_8
## %bb.3:
	movl	4(%rcx), %edx
	cmpl	$3, %edx
	je	LBB0_13
## %bb.4:
	cmpl	$2, %edx
	je	LBB0_12
## %bb.5:
	cmpl	$1, %edx
	jne	LBB0_7
## %bb.6:
	movl	$0, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_8:
	cmpl	$0, 8(%rcx)
	jne	LBB0_18
## %bb.9:
	cmpl	$2, %edx
	jl	LBB0_18
## %bb.10:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movl	%eax, (%r14)
	movq	8(%rbx), %rax
	cmpl	$3, (%rax)
	jne	LBB0_18
## %bb.11:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	%rax, %r15
	jmp	LBB0_17
LBB0_12:
	addl	%r15d, %eax
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_13:
	addl	%r15d, %eax
	movl	%eax, (%r14)
	movq	_FIMC_FMT_YCBCR420@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	12(%rcx), %edx
	jne	LBB0_15
## %bb.14:
	sarl	$2, %r15d
	jmp	LBB0_16
LBB0_15:
	sarl	%r15d
LBB0_16:
	addl	%eax, %r15d
LBB0_17:
	movl	%r15d, 4(%r14)
LBB0_18:
	movl	8(%r14), %esi
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_dbg
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memplanes= %d, colplanes= %d, pix_size= %d"

	.comm	_FIMC_FMT_YCBCR420,4,2          ## @FIMC_FMT_YCBCR420
L_.str.1:                               ## @.str.1
	.asciz	"PHYS_ADDR: y= 0x%X  cb= 0x%X cr= 0x%X ret= %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_prepare_addr              ; -- Begin function fimc_prepare_addr
	.p2align	2
_fimc_prepare_addr:                     ; @fimc_prepare_addr
	.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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_7
; %bb.2:
	mov	x19, x3
	mov	x20, x1
	ldpsw	x8, x9, [x21]
	mul	x22, x9, x8
	ldr	x8, [x21, #8]
	ldp	w1, w2, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x22
	bl	_dbg
	mov	x0, x20
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	str	x0, [x19, #8]
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_8
; %bb.3:
	ldr	w9, [x8, #4]
	cmp	w9, #3
	b.eq	LBB0_11
; %bb.4:
	cmp	w9, #2
	b.eq	LBB0_12
; %bb.5:
	cmp	w9, #1
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #0
	str	wzr, [x19]
	b	LBB0_13
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_8:
	ldr	w8, [x8, #8]
	cmp	w8, #0
	ccmp	w9, #2, #8, eq
	b.lt	LBB0_14
; %bb.9:
	mov	x0, x20
	mov	w1, #1
	bl	_vb2_dma_contig_plane_dma_addr
	str	w0, [x19]
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cmp	w8, #3
	b.ne	LBB0_14
; %bb.10:
	mov	x0, x20
	mov	w1, #2
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x8, x0
	b	LBB0_13
LBB0_11:
	add	w9, w0, w22
	str	w9, [x19]
Lloh5:
	adrp	x10, _FIMC_FMT_YCBCR420@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FIMC_FMT_YCBCR420@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	ldr	w8, [x8, #12]
	add	w11, w9, w22, asr #1
	add	w9, w9, w22, asr #2
	cmp	w10, w8
	csel	w8, w11, w9, ne
	b	LBB0_13
LBB0_12:
	mov	w8, #0
	add	w9, w0, w22
	str	w9, [x19]
LBB0_13:
	str	w8, [x19, #4]
LBB0_14:
	ldp	w3, w1, [x19, #4]
	ldr	w2, [x19]
	str	xzr, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg
	mov	w0, #0
LBB0_15:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memplanes= %d, colplanes= %d, pix_size= %d"

	.comm	_FIMC_FMT_YCBCR420,4,2          ; @FIMC_FMT_YCBCR420
l_.str.1:                               ; @.str.1
	.asciz	"PHYS_ADDR: y= 0x%X  cb= 0x%X cr= 0x%X ret= %d"

.subsections_via_symbols
