	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vga_render                     ## -- Begin function vga_render
	.p2align	4, 0x90
_vga_render:                            ## @vga_render
	.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
	callq	_vga_check_size
	movq	%rbx, %rdi
	callq	_vga_in_reset
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movl	8(%rax), %edi
	imull	4(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_ATC_MC_GA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vga_render_graphics            ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vga_render_text                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATC_MC_GA,4,2                  ## @ATC_MC_GA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vga_render                     ; -- Begin function vga_render
	.p2align	2
_vga_render:                            ; @vga_render
	.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
	bl	_vga_check_size
	mov	x0, x19
	bl	_vga_in_reset
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	ldp	w8, w0, [x8, #4]
	mul	w8, w9, w8
	lsl	w2, w8, #2
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _ATC_MC_GA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATC_MC_GA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vga_render_graphics
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vga_render_text
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATC_MC_GA,4,2                  ; @ATC_MC_GA
.subsections_via_symbols
