	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu3fb_init
_ipu3fb_init:                           ## @ipu3fb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	%edi, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_vid_init_struct
	movq	_IPU3FB_FONT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, 24(%rbx)
	movl	$8, 28(%rbx)
	movl	(%rbx), %edi
	movl	4(%rbx), %ecx
	leal	7(%rdi), %esi
	testl	%edi, %edi
	cmovnsl	%edi, %esi
	sarl	$3, %esi
	movl	%esi, 32(%rbx)
	movl	%ecx, %eax
	cltd
	idivl	%r8d
	movl	%eax, 36(%rbx)
	movq	_COL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %esi
	jle	LBB0_2
## %bb.1:
	movl	%edx, 32(%rbx)
	movl	%edx, %esi
LBB0_2:
	movq	_ROW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	jle	LBB0_4
## %bb.3:
	movl	%edx, 36(%rbx)
	movl	%edx, %eax
LBB0_4:
	shll	$3, %esi
	subl	%esi, %edi
	movl	%edi, %edx
	shrl	$31, %edx
	addl	%edi, %edx
	sarl	%edx
	imull	%r8d, %eax
	subl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, 12(%rbx)
	movq	_ipu3fb_static_window@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	16(%rbx), %rdi
	movq	%rax, 16(%rbx)
	movq	_V_ADP_FONT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 8(%rbx)
	movl	%r8d, 4(%rbx)
	shrq	$32, %rax
	movl	%eax, (%rbx)
	callq	_vid_register
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ipu3fb"

	.comm	_dflt_font_16,4,2               ## @dflt_font_16
	.comm	_IPU3FB_FONT_HEIGHT,4,2         ## @IPU3FB_FONT_HEIGHT
	.comm	_COL,4,2                        ## @COL
	.comm	_ROW,4,2                        ## @ROW
	.comm	_ipu3fb_static_window,8,3       ## @ipu3fb_static_window
	.comm	_V_ADP_FONT,4,2                 ## @V_ADP_FONT
	.no_dead_strip	_ipu3fb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu3fb_init
_ipu3fb_init:                           ; @ipu3fb_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	bl	_vid_init_struct
Lloh2:
	adrp	x8, _IPU3FB_FONT_HEIGHT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPU3FB_FONT_HEIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #8
	stp	w8, w9, [x19, #24]
	ldp	w9, w10, [x19]
	add	w11, w9, #7
	cmp	w9, #0
	csel	w11, w11, w9, lt
	asr	w12, w11, #3
	sdiv	w11, w10, w8
	stp	w12, w11, [x19, #32]
Lloh5:
	adrp	x13, _COL@GOTPAGE
Lloh6:
	ldr	x13, [x13, _COL@GOTPAGEOFF]
Lloh7:
	ldr	w13, [x13]
	cmp	w12, w13
	b.le	LBB0_2
; %bb.1:
	str	w13, [x19, #32]
	mov	x12, x13
LBB0_2:
Lloh8:
	adrp	x13, _ROW@GOTPAGE
Lloh9:
	ldr	x13, [x13, _ROW@GOTPAGEOFF]
Lloh10:
	ldr	w13, [x13]
	cmp	w11, w13
	b.le	LBB0_4
; %bb.3:
	str	w13, [x19, #36]
	mov	x11, x13
LBB0_4:
	sub	w9, w9, w12, lsl #3
	cmp	w9, #0
	cinc	w9, w9, lt
	msub	w10, w11, w8, w10
	cmp	w10, #0
Lloh11:
	adrp	x11, _ipu3fb_static_window@GOTPAGE
Lloh12:
	ldr	x11, [x11, _ipu3fb_static_window@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
Lloh14:
	adrp	x12, _V_ADP_FONT@GOTPAGE
Lloh15:
	ldr	x12, [x12, _V_ADP_FONT@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	orr	w9, w12, w9, asr #1
	mov	x0, x19
	str	x11, [x0, #16]!
	cinc	w10, w10, lt
	asr	w10, w10, #1
	stp	w9, w10, [x19, #8]
	lsr	x9, x11, #32
	stp	w9, w8, [x19]
	bl	_vid_register
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ipu3fb"

	.comm	_dflt_font_16,4,2               ; @dflt_font_16
	.comm	_IPU3FB_FONT_HEIGHT,4,2         ; @IPU3FB_FONT_HEIGHT
	.comm	_COL,4,2                        ; @COL
	.comm	_ROW,4,2                        ; @ROW
	.comm	_ipu3fb_static_window,8,3       ; @ipu3fb_static_window
	.comm	_V_ADP_FONT,4,2                 ; @V_ADP_FONT
	.no_dead_strip	_ipu3fb_init
.subsections_via_symbols
