	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vga_check_size
_vga_check_size:                        ## @vga_check_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_vga_in_reset
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movl	4(%rax), %r8d
	movl	8(%rbx), %esi
	movl	16(%rbx), %edx
	incl	%esi
	imull	20(%rbx), %esi
	movl	%esi, (%rbx)
	movq	_CRTC_OF_VDE8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	andl	%edx, %eax
	movq	_CRTC_OF_VDE8_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	shll	$8, %eax
	orl	12(%rbx), %eax
	movq	_CRTC_OF_VDE9@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_CRTC_OF_VDE9_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	shll	$9, %edx
	orl	%eax, %edx
	incl	%edx
	movl	%edx, 4(%rbx)
	cmpl	%esi, %edi
	jne	LBB0_4
## %bb.2:
	cmpl	%edx, %r8d
	jne	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bhyvegc_resize                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CRTC_OF_VDE8,4,2               ## @CRTC_OF_VDE8
	.comm	_CRTC_OF_VDE8_SHIFT,4,2         ## @CRTC_OF_VDE8_SHIFT
	.comm	_CRTC_OF_VDE9,4,2               ## @CRTC_OF_VDE9
	.comm	_CRTC_OF_VDE9_SHIFT,4,2         ## @CRTC_OF_VDE9_SHIFT
	.no_dead_strip	_vga_check_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vga_check_size
_vga_check_size:                        ; @vga_check_size
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_vga_in_reset
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #24]
	ldp	w9, w8, [x8]
	ldp	w10, w11, [x20, #8]
	ldp	w13, w12, [x20, #16]
	madd	w1, w12, w10, w12
	str	w1, [x20]
Lloh0:
	adrp	x10, _CRTC_OF_VDE8@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CRTC_OF_VDE8@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w10, w10, w13
Lloh3:
	adrp	x12, _CRTC_OF_VDE8_SHIFT@GOTPAGE
Lloh4:
	ldr	x12, [x12, _CRTC_OF_VDE8_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	asr	w10, w10, w12
Lloh6:
	adrp	x12, _CRTC_OF_VDE9@GOTPAGE
Lloh7:
	ldr	x12, [x12, _CRTC_OF_VDE9@GOTPAGEOFF]
	orr	w10, w11, w10, lsl #8
Lloh8:
	ldr	w11, [x12]
	and	w11, w11, w13
Lloh9:
	adrp	x12, _CRTC_OF_VDE9_SHIFT@GOTPAGE
Lloh10:
	ldr	x12, [x12, _CRTC_OF_VDE9_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	asr	w11, w11, w12
	orr	w10, w10, w11, lsl #9
	add	w2, w10, #1
	str	w2, [x20, #4]
	cmp	w9, w1
	ccmp	w8, w2, #0, eq
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bhyvegc_resize
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CRTC_OF_VDE8,4,2               ; @CRTC_OF_VDE8
	.comm	_CRTC_OF_VDE8_SHIFT,4,2         ; @CRTC_OF_VDE8_SHIFT
	.comm	_CRTC_OF_VDE9,4,2               ; @CRTC_OF_VDE9
	.comm	_CRTC_OF_VDE9_SHIFT,4,2         ; @CRTC_OF_VDE9_SHIFT
	.no_dead_strip	_vga_check_size
.subsections_via_symbols
