	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmfb_init
_bcmfb_init:                            ## @bcmfb_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	_BCMFB_FONT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 16(%rbx)
	movq	_BCMFB_FONT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 20(%rbx)
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	%eax, %edi
	movl	%eax, 24(%rbx)
	movl	%r8d, %eax
	cltd
	idivl	%esi
	movl	%eax, 28(%rbx)
	movq	_COL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %edi
	jle	LBB0_2
## %bb.1:
	movl	%edx, 24(%rbx)
LBB0_2:
	leaq	16(%rbx), %rdi
	movq	_ROW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	jle	LBB0_4
## %bb.3:
	movl	%edx, 28(%rbx)
LBB0_4:
	movq	_bcmfb_static_window@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_V_ADP_FONT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%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	"bcmfb"

	.comm	_dflt_font_16,4,2               ## @dflt_font_16
	.comm	_BCMFB_FONT_HEIGHT,4,2          ## @BCMFB_FONT_HEIGHT
	.comm	_BCMFB_FONT_WIDTH,4,2           ## @BCMFB_FONT_WIDTH
	.comm	_COL,4,2                        ## @COL
	.comm	_ROW,4,2                        ## @ROW
	.comm	_bcmfb_static_window,8,3        ## @bcmfb_static_window
	.comm	_V_ADP_FONT,4,2                 ## @V_ADP_FONT
	.no_dead_strip	_bcmfb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmfb_init
_bcmfb_init:                            ; @bcmfb_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, _BCMFB_FONT_HEIGHT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCMFB_FONT_HEIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	mov	x0, x19
	str	w9, [x0, #16]!
Lloh5:
	adrp	x8, _BCMFB_FONT_WIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BCMFB_FONT_WIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
	ldp	w8, w11, [x19]
	sdiv	w12, w8, w10
	stp	w10, w12, [x19, #20]
	sdiv	w9, w11, w9
	str	w9, [x19, #28]
Lloh8:
	adrp	x10, _COL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _COL@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w12, w10
	b.le	LBB0_2
; %bb.1:
	str	w10, [x19, #24]
LBB0_2:
Lloh11:
	adrp	x10, _ROW@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ROW@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w9, w10
	b.le	LBB0_4
; %bb.3:
	str	w10, [x19, #28]
LBB0_4:
Lloh14:
	adrp	x9, _bcmfb_static_window@GOTPAGE
Lloh15:
	ldr	x9, [x9, _bcmfb_static_window@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	str	x9, [x19, #8]
Lloh17:
	adrp	x9, _V_ADP_FONT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V_ADP_FONT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bcmfb"

	.comm	_dflt_font_16,4,2               ; @dflt_font_16
	.comm	_BCMFB_FONT_HEIGHT,4,2          ; @BCMFB_FONT_HEIGHT
	.comm	_BCMFB_FONT_WIDTH,4,2           ; @BCMFB_FONT_WIDTH
	.comm	_COL,4,2                        ; @COL
	.comm	_ROW,4,2                        ; @ROW
	.comm	_bcmfb_static_window,8,3        ; @bcmfb_static_window
	.comm	_V_ADP_FONT,4,2                 ; @V_ADP_FONT
	.no_dead_strip	_bcmfb_init
.subsections_via_symbols
