	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofwfb_init
_ofwfb_init:                            ## @ofwfb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_vid_init_struct
	movl	$16, -28(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-28(%rbp), %rsi
	callq	_TUNABLE_INT_FETCH
	movl	-28(%rbp), %eax
	cmpl	$8, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$14, %eax
	jne	LBB0_4
## %bb.3:
	movl	$14, %eax
	movq	_dflt_font_14@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_dflt_font_8@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movl	$16, %eax
	movq	_dflt_font_16@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
	movl	%eax, (%r15)
	movl	$1, -32(%rbp)
	leaq	L_.str.2(%rip), %rdi
	leaq	-32(%rbp), %rsi
	callq	_TUNABLE_INT_FETCH
	movl	4(%r15), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	movl	(%r15), %esi
	sarl	$3, %edi
	movl	-32(%rbp), %ebx
	addl	%ebx, %ebx
	subl	%ebx, %edi
	leaq	20(%r15), %r14
	movl	%edi, 20(%r15)
	movl	8(%r15), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	subl	%ebx, %eax
	movl	%eax, 24(%r15)
	movl	$8, 28(%r15)
	movq	_COL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %edi
	jle	LBB0_7
## %bb.6:
	movl	%edx, (%r14)
LBB0_7:
	movq	_ROW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	jle	LBB0_9
## %bb.8:
	movl	%edx, 24(%r15)
	movl	%edx, %eax
LBB0_9:
	imull	%esi, %eax
	subl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, 16(%r15)
	movq	_ofwfb_static_window@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	_V_ADP_FONT@GOTPCREL(%rip), %rax
	movq	_V_ADP_COLOR@GOTPCREL(%rip), %rcx
	orl	(%rax), %esi
	orl	(%rcx), %esi
	movq	_V_ADP_MODECHANGE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ofwfb_set_mode
	movq	%r14, %rdi
	callq	_vid_register
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ofwfb"

L_.str.1:                               ## @.str.1
	.asciz	"hw.syscons.fsize"

	.comm	_dflt_font_8,4,2                ## @dflt_font_8
	.comm	_dflt_font_14,4,2               ## @dflt_font_14
	.comm	_dflt_font_16,4,2               ## @dflt_font_16
L_.str.2:                               ## @.str.2
	.asciz	"hw.syscons.border"

	.comm	_COL,4,2                        ## @COL
	.comm	_ROW,4,2                        ## @ROW
	.comm	_ofwfb_static_window,8,3        ## @ofwfb_static_window
	.comm	_V_ADP_FONT,4,2                 ## @V_ADP_FONT
	.comm	_V_ADP_COLOR,4,2                ## @V_ADP_COLOR
	.comm	_V_ADP_MODECHANGE,4,2           ## @V_ADP_MODECHANGE
	.no_dead_strip	_ofwfb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofwfb_init
_ofwfb_init:                            ; @ofwfb_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	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
	mov	w8, #16
	str	w8, [sp, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_TUNABLE_INT_FETCH
	ldr	w8, [sp, #8]
	cmp	w8, #8
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #16
Lloh4:
	adrp	x10, _dflt_font_16@GOTPAGE
Lloh5:
	ldr	x10, [x10, _dflt_font_16@GOTPAGEOFF]
	mov	w11, #14
Lloh6:
	adrp	x12, _dflt_font_14@GOTPAGE
Lloh7:
	ldr	x12, [x12, _dflt_font_14@GOTPAGEOFF]
	cmp	w8, #14
	csel	w8, w9, w11, ne
	csel	x9, x10, x12, ne
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x9, _dflt_font_8@GOTPAGE
Lloh9:
	ldr	x9, [x9, _dflt_font_8@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	str	w9, [x19, #24]
	str	w8, [x19]
	mov	w8, #1
	str	w8, [sp, #12]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #12
	bl	_TUNABLE_INT_FETCH
	ldp	w8, w9, [x19]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	ldr	w10, [sp, #12]
	lsl	w10, w10, #1
Lloh12:
	adrp	x11, _COL@GOTPAGE
Lloh13:
	ldr	x11, [x11, _COL@GOTPAGEOFF]
	mov	x20, x19
Lloh14:
	ldr	w11, [x11]
	sub	w9, w9, w10
	cmp	w9, w11
	str	w9, [x20, #20]!
	ldr	w9, [x19, #8]
	sdiv	w12, w9, w8
	sub	w10, w12, w10
	mov	w12, #8
	stp	w10, w12, [x19, #24]
	b.le	LBB0_5
; %bb.4:
	str	w11, [x20]
LBB0_5:
Lloh15:
	adrp	x11, _ROW@GOTPAGE
Lloh16:
	ldr	x11, [x11, _ROW@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	cmp	w10, w11
	b.le	LBB0_7
; %bb.6:
	str	w11, [x19, #24]
	mov	x10, x11
LBB0_7:
	msub	w9, w10, w8, w9
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	str	w9, [x19, #16]
Lloh18:
	adrp	x9, _ofwfb_static_window@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ofwfb_static_window@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x10, _V_ADP_FONT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _V_ADP_FONT@GOTPAGEOFF]
	str	x9, [x19, #8]
Lloh23:
	ldr	w9, [x10]
Lloh24:
	adrp	x10, _V_ADP_COLOR@GOTPAGE
Lloh25:
	ldr	x10, [x10, _V_ADP_COLOR@GOTPAGEOFF]
Lloh26:
	adrp	x11, _V_ADP_MODECHANGE@GOTPAGE
Lloh27:
	ldr	x11, [x11, _V_ADP_MODECHANGE@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_ofwfb_set_mode
	mov	x0, x20
	bl	_vid_register
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ofwfb"

l_.str.1:                               ; @.str.1
	.asciz	"hw.syscons.fsize"

	.comm	_dflt_font_8,4,2                ; @dflt_font_8
	.comm	_dflt_font_14,4,2               ; @dflt_font_14
	.comm	_dflt_font_16,4,2               ; @dflt_font_16
l_.str.2:                               ; @.str.2
	.asciz	"hw.syscons.border"

	.comm	_COL,4,2                        ; @COL
	.comm	_ROW,4,2                        ; @ROW
	.comm	_ofwfb_static_window,8,3        ; @ofwfb_static_window
	.comm	_V_ADP_FONT,4,2                 ; @V_ADP_FONT
	.comm	_V_ADP_COLOR,4,2                ; @V_ADP_COLOR
	.comm	_V_ADP_MODECHANGE,4,2           ; @V_ADP_MODECHANGE
	.no_dead_strip	_ofwfb_init
.subsections_via_symbols
