	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vga_gfx_init
_vga_gfx_init:                          ## @vga_gfx_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r14
	movq	$0, (%r12)
	movq	$0, (%r15)
	movl	(%rbx), %eax
	movq	_vga_video_width@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	24(%rbx), %eax
	movq	_vga_video_height@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	16(%rbx), %rax
	movq	_vga_rgb32@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%al
	setne	%dl
	movl	(%rbx), %esi
	shll	$4, %edx
	addl	$16, %edx
	movb	$2, %cl
	subb	%al, %cl
	shll	%cl, %esi
	movq	_vga_video_pitch@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_vga_video_bits@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movq	_VGA_WIDTH@GOTPCREL(%rip), %rax
	movq	_VGA_HEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	imull	(%rax), %edi
	callq	_malloc
	movq	_vga_frame@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_vga_gfx_create
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edx
	movq	_FONT_DRIVER_RENDER_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_font_driver_init_osd
LBB0_2:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vga_video_width,4,2            ## @vga_video_width
	.comm	_vga_video_height,4,2           ## @vga_video_height
	.comm	_vga_rgb32,8,3                  ## @vga_rgb32
	.comm	_vga_video_pitch,4,2            ## @vga_video_pitch
	.comm	_vga_video_bits,4,2             ## @vga_video_bits
	.comm	_VGA_WIDTH,4,2                  ## @VGA_WIDTH
	.comm	_VGA_HEIGHT,4,2                 ## @VGA_HEIGHT
	.comm	_vga_frame,8,3                  ## @vga_frame
	.comm	_FONT_DRIVER_RENDER_VGA,4,2     ## @FONT_DRIVER_RENDER_VGA
	.no_dead_strip	_vga_gfx_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vga_gfx_init
_vga_gfx_init:                          ; @vga_gfx_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	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	w23, #1
	mov	w0, #1
	mov	w1, #1
	bl	_calloc
	mov	x19, x0
	str	xzr, [x22]
	str	xzr, [x21]
Lloh0:
	adrp	x8, _vga_video_width@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vga_video_width@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh2:
	str	w9, [x8]
	ldr	w8, [x20, #24]
Lloh3:
	adrp	x9, _vga_video_height@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vga_video_height@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _vga_rgb32@GOTPAGE
Lloh7:
	ldr	x9, [x9, _vga_rgb32@GOTPAGEOFF]
Lloh8:
	str	x8, [x9]
	ldr	w9, [x20]
	cmp	x8, #0
	cinc	w8, w23, ne
	mov	w10, #32
	mov	w11, #16
	csel	w10, w11, w10, eq
Lloh9:
	adrp	x11, _vga_video_pitch@GOTPAGE
Lloh10:
	ldr	x11, [x11, _vga_video_pitch@GOTPAGEOFF]
	lsl	w8, w9, w8
Lloh11:
	str	w8, [x11]
Lloh12:
	adrp	x8, _vga_video_bits@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vga_video_bits@GOTPAGEOFF]
Lloh14:
	adrp	x9, _VGA_WIDTH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VGA_WIDTH@GOTPAGEOFF]
Lloh16:
	str	w10, [x8]
Lloh17:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _VGA_HEIGHT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VGA_HEIGHT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	mul	w0, w9, w8
	bl	_malloc
Lloh21:
	adrp	x8, _vga_frame@GOTPAGE
Lloh22:
	ldr	x8, [x8, _vga_frame@GOTPAGEOFF]
Lloh23:
	str	x0, [x8]
	bl	_vga_gfx_create
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x20, #4]
Lloh24:
	adrp	x8, _FONT_DRIVER_RENDER_VGA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FONT_DRIVER_RENDER_VGA@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, #0
	mov	w1, #0
	bl	_font_driver_init_osd
LBB0_2:
	mov	x0, x19
	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 AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_vga_video_width,4,2            ; @vga_video_width
	.comm	_vga_video_height,4,2           ; @vga_video_height
	.comm	_vga_rgb32,8,3                  ; @vga_rgb32
	.comm	_vga_video_pitch,4,2            ; @vga_video_pitch
	.comm	_vga_video_bits,4,2             ; @vga_video_bits
	.comm	_VGA_WIDTH,4,2                  ; @VGA_WIDTH
	.comm	_VGA_HEIGHT,4,2                 ; @VGA_HEIGHT
	.comm	_vga_frame,8,3                  ; @vga_frame
	.comm	_FONT_DRIVER_RENDER_VGA,4,2     ; @FONT_DRIVER_RENDER_VGA
	.no_dead_strip	_vga_gfx_init
.subsections_via_symbols
