	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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
	movq	_va_softc@GOTPCREL(%rip), %r13
	movl	%ecx, 8(%r13)
	movl	(%r13), %esi
	movl	4(%r13), %edx
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	8(%r13), %esi
	imull	4(%r13), %esi
	movl	%esi, 12(%r13)
	movq	%rbx, %rdi
	callq	_ipu3_fb_malloc
	movl	(%r15), %r14d
	movl	(%r12), %edi
	movl	$23, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_CPMEM_OFFSET
	movl	(%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	(%rbx), %ecx
	sarl	$6, %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_IPUV3_WRITE
	movq	8(%rbx), %rax
	movq	%rax, 16(%r13)
	movslq	(%rbx), %rax
	movq	%rax, 24(%r13)
	movl	8(%r13), %eax
	cltd
	idivl	(%r13)
	movl	%eax, 32(%r13)
	shll	$3, %eax
	movl	%eax, 36(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_va_softc,40,3                  ## @va_softc
	.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"

	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	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
Lloh4:
	adrp	x23, _va_softc@GOTPAGE
Lloh5:
	ldr	x23, [x23, _va_softc@GOTPAGEOFF]
	str	w3, [x23, #8]
	ldp	w1, w2, [x23]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldp	w8, w9, [x23, #4]
	mul	w1, w9, w8
	str	w1, [x23, #12]
	mov	x0, x19
	bl	_ipu3_fb_malloc
	ldr	w20, [x21]
	ldr	w0, [x22]
	mov	w1, #23
	mov	w2, #1
	mov	w3, #0
	bl	_CPMEM_OFFSET
	mov	x2, x0
	ldr	w8, [x19]
	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]
	asr	w3, w8, #6
	mov	x0, x19
	mov	x1, x20
	bl	_IPUV3_WRITE
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	stp	x8, x9, [x23, #16]
	ldr	w8, [x23, #8]
	ldr	w9, [x23]
	sdiv	w8, w8, w9
	lsl	w9, w8, #3
	stp	w8, w9, [x23, #32]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_va_softc,40,3                  ; @va_softc
	.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"

	.no_dead_strip	_ipu3_fb_init
.subsections_via_symbols
