	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu3_fb_init
_ipu3_fb_init:                          ## @ipu3_fb_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_cpmem@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	_IMX_IPU_DP1@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$23, %esi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	_CPMEM_OFFSET
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_IPUV3_READ
	movl	(%r15), %r14d
	movl	(%r12), %edi
	movl	$23, %esi
	xorl	%edx, %edx
	movl	$12, %ecx
	callq	_CPMEM_OFFSET
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_IPUV3_READ
	movl	(%r15), %r14d
	movl	(%r12), %edi
	movl	$23, %esi
	movl	$1, %edx
	movl	$12, %ecx
	callq	_CPMEM_OFFSET
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_IPUV3_READ
                                        ## kill: def $eax killed $eax def $rax
	shrl	$6, %eax
	andl	$16383, %eax                    ## imm = 0x3FFF
	leal	1(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	8(%rbx), %edi
	imull	4(%rbx), %edi
	movl	%edi, 12(%rbx)
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	xorl	%ecx, %ecx
	movl	$-1, %r8d
	callq	_contigmalloc
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_vtophys
	movq	%rax, 24(%rbx)
	movl	(%r15), %r14d
	movl	(%r12), %edi
	movl	$23, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_CPMEM_OFFSET
	movl	24(%rbx), %edx
	sarl	$3, %edx
	movl	%edx, %ecx
	shll	$29, %ecx
	orl	%edx, %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_IPUV3_WRITE
	movl	(%r15), %r14d
	movl	(%r12), %edi
	movl	$23, %esi
	movl	$1, %edx
	movl	$4, %ecx
	callq	_CPMEM_OFFSET
	movl	24(%rbx), %ecx
	sarl	$6, %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_IPUV3_WRITE
	movl	8(%rbx), %eax
	cltd
	idivl	(%rbx)
	shll	$3, %eax
	movl	%eax, 36(%rbx)
	movl	%eax, 32(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpmem,4,2                      ## @cpmem
	.comm	_IMX_IPU_DP1,4,2                ## @IMX_IPU_DP1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%dx%d [%d]\n"

	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_ipu3_fb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu3_fb_init
_ipu3_fb_init:                          ; @ipu3_fb_init
	.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
Lloh0:
	adrp	x21, _cpmem@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cpmem@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh2:
	adrp	x22, _IMX_IPU_DP1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IMX_IPU_DP1@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #23
	mov	w2, #0
	mov	w3, #16
	bl	_CPMEM_OFFSET
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_IPUV3_READ
	ldr	w20, [x21]
	ldr	w0, [x22]
	mov	w1, #23
	mov	w2, #0
	mov	w3, #12
	bl	_CPMEM_OFFSET
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_IPUV3_READ
	ldr	w20, [x21]
	ldr	w0, [x22]
	mov	w1, #23
	mov	w2, #1
	mov	w3, #12
	bl	_CPMEM_OFFSET
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_IPUV3_READ
	ubfx	w8, w0, #6, #14
	add	w3, w8, #1
	str	w3, [x19, #8]
	ldp	w1, w2, [x19]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldp	w8, w9, [x19, #4]
	mul	w0, w9, w8
	str	w0, [x19, #12]
Lloh6:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _M_ZERO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_ZERO@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	mov	w3, #0
	mov	w4, #-1
	mov	w6, #0
	bl	_contigmalloc
	str	x0, [x19, #16]
	bl	_vtophys
	str	x0, [x19, #24]
	ldr	w20, [x21]
	ldr	w0, [x22]
	mov	w1, #23
	mov	w2, #1
	mov	w3, #0
	bl	_CPMEM_OFFSET
	mov	x2, x0
	ldr	w8, [x19, #24]
	asr	w8, w8, #3
	orr	w3, w8, w8, lsl #29
	mov	x0, x19
	mov	x1, x20
	bl	_IPUV3_WRITE
	ldr	w20, [x21]
	ldr	w0, [x22]
	mov	w1, #23
	mov	w2, #1
	mov	w3, #4
	bl	_CPMEM_OFFSET
	mov	x2, x0
	ldr	w8, [x19, #24]
	asr	w3, w8, #6
	mov	x0, x19
	mov	x1, x20
	bl	_IPUV3_WRITE
	ldr	w8, [x19, #8]
	ldr	w9, [x19]
	sdiv	w8, w8, w9
	lsl	w8, w8, #3
	stp	w8, w8, [x19, #32]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cpmem,4,2                      ; @cpmem
	.comm	_IMX_IPU_DP1,4,2                ; @IMX_IPU_DP1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%dx%d [%d]\n"

	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_ipu3_fb_init
.subsections_via_symbols
