	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bios_getmem
_bios_getmem:                           ## @bios_getmem
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_v86@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	_SMAP_SIG@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movabsq	$255224136597525, %r15          ## imm = 0xE82000000015
	movq	_smap@GOTPCREL(%rip), %r12
	movq	_SMAP_TYPE_MEMORY@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_bios_basemem@GOTPCREL(%rip), %rcx
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, (%rcx)
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_17
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_V86_FLAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rbx)
	movq	%r15, 8(%rbx)
	movl	$4, 16(%rbx)
	movl	%eax, 20(%rbx)
	movq	%r12, %rdi
	callq	_VTOPSEG
	movl	%eax, 40(%rbx)
	movq	%r12, %rdi
	callq	_VTOPOFF
	movl	%eax, 36(%rbx)
	xorl	%eax, %eax
	callq	_v86int
	movl	32(%rbx), %edi
	callq	_V86_CY
	testq	%rax, %rax
	jne	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%rbx), %eax
	cmpl	(%r13), %eax
	jne	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rsi
	movq	(%r14), %rdi
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	cmpq	%rdi, %rsi
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$524288, %edx                   ## imm = 0x80000
	jge	LBB0_1
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdi, %rsi
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1048576, %ecx                  ## imm = 0x100000
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_bios_extmem@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdi, %rsi
	jne	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1048577, %ecx                  ## imm = 0x100001
	jl	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	js	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %esi
	negl	%esi
	movl	%edx, %edi
	addl	%ecx, %edi
	cmovnsl	%edx, %esi
	movq	_high_heap_size@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %esi
	jle	LBB0_3
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_high_heap_size@GOTPCREL(%rip), %rdx
	movl	%esi, (%rdx)
	movq	_high_heap_base@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	jmp	LBB0_3
LBB0_17:
	movq	_bios_basemem@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jne	LBB0_19
## %bb.18:
	movq	$0, 24(%rbx)
	movl	$18, 8(%rbx)
	xorl	%eax, %eax
	callq	_v86int
	movl	12(%rbx), %eax
	movzwl	%ax, %eax
	shll	$10, %eax
	movl	%eax, (%r14)
LBB0_19:
	movq	_bios_extmem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_20
LBB0_23:
	movq	_HEAP_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%ecx, %eax
	jl	LBB0_26
## %bb.24:
	movq	_high_heap_size@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jge	LBB0_26
## %bb.25:
	movq	_high_heap_size@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	addl	$1048576, %eax                  ## imm = 0x100000
	movq	_high_heap_base@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_V86_FLAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movabsq	$255090992611349, %rax          ## imm = 0xE80100000015
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	callq	_v86int
	movl	32(%rbx), %edi
	callq	_V86_CY
	testq	%rax, %rax
	je	LBB0_27
## %bb.21:
	movq	_bios_extmem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_23
	jmp	LBB0_22
LBB0_27:
	movzwl	16(%rbx), %ecx
	movl	20(%rbx), %eax
	shll	$6, %eax
	addl	%ecx, %eax
	shll	$10, %eax
	movq	_bios_extmem@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_23
LBB0_22:
	movq	$0, 24(%rbx)
	movabsq	$149533581377557, %rax          ## imm = 0x880000000015
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	callq	_v86int
	movl	12(%rbx), %eax
	movzwl	%ax, %eax
	shll	$10, %eax
	movq	_bios_extmem@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_v86,48,3                       ## @v86
	.comm	_V86_FLAGS,8,3                  ## @V86_FLAGS
	.comm	_SMAP_SIG,4,2                   ## @SMAP_SIG
	.comm	_smap,16,3                      ## @smap
	.comm	_SMAP_TYPE_MEMORY,8,3           ## @SMAP_TYPE_MEMORY
	.comm	_bios_basemem,4,2               ## @bios_basemem
	.comm	_bios_extmem,4,2                ## @bios_extmem
	.comm	_high_heap_size,4,2             ## @high_heap_size
	.comm	_high_heap_base,4,2             ## @high_heap_base
	.comm	_HEAP_MIN,4,2                   ## @HEAP_MIN
	.no_dead_strip	_bios_getmem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function bios_getmem
lCPI0_0:
	.long	21                              ; 0x15
	.long	59424                           ; 0xe820
lCPI0_1:
	.long	21                              ; 0x15
	.long	59393                           ; 0xe801
lCPI0_2:
	.long	21                              ; 0x15
	.long	34816                           ; 0x8800
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bios_getmem:                           ; @bios_getmem
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x22, _v86@GOTPAGE
Lloh1:
	ldr	x22, [x22, _v86@GOTPAGEOFF]
	str	xzr, [x22]
Lloh2:
	adrp	x26, _SMAP_SIG@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SMAP_SIG@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh4:
	adrp	x24, _V86_FLAGS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _V86_FLAGS@GOTPAGEOFF]
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d8, [x9, lCPI0_0@PAGEOFF]
	mov	w27, #4
Lloh8:
	adrp	x19, _smap@GOTPAGE
Lloh9:
	ldr	x19, [x19, _smap@GOTPAGEOFF]
Lloh10:
	adrp	x28, _SMAP_TYPE_MEMORY@GOTPAGE
Lloh11:
	ldr	x28, [x28, _SMAP_TYPE_MEMORY@GOTPAGEOFF]
Lloh12:
	adrp	x25, _bios_basemem@GOTPAGE
Lloh13:
	ldr	x25, [x25, _bios_basemem@GOTPAGEOFF]
Lloh14:
	adrp	x23, _bios_extmem@GOTPAGE
Lloh15:
	ldr	x23, [x23, _bios_extmem@GOTPAGEOFF]
Lloh16:
	adrp	x21, _high_heap_size@GOTPAGE
Lloh17:
	ldr	x21, [x21, _high_heap_size@GOTPAGEOFF]
Lloh18:
	adrp	x20, _high_heap_base@GOTPAGE
Lloh19:
	ldr	x20, [x20, _high_heap_base@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w10, [x25]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22]
	cbz	x9, LBB0_16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	str	x9, [x22, #24]
	str	d8, [x22, #8]
	stp	w27, w8, [x22, #16]
	mov	x0, x19
	bl	_VTOPSEG
	str	w0, [x22, #40]
	mov	x0, x19
	bl	_VTOPOFF
	str	w0, [x22, #36]
	bl	_v86int
	ldr	w0, [x22, #32]
	bl	_V86_CY
	cbnz	x0, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #12]
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x19]
	ldr	x12, [x28]
	ldp	w9, w10, [x19, #8]
	cmp	x11, x12
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w9, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, #128, lsl #12              ; =524288
	b.ge	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x11, x12
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #256, lsl #12               ; =1048576
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w10, [x23]
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x11, x12
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #256, lsl #12               ; =1048576
	b.le	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w9, #31, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w10, w9
	cmp	w11, #0
	csneg	w10, w10, w9, ge
	ldr	w11, [x21]
	cmp	w10, w11
	b.le	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w10, [x21]
	str	w9, [x20]
	b	LBB0_2
LBB0_16:
	ldr	w8, [x25]
	cbz	w8, LBB0_18
; %bb.17:
	ldr	w8, [x23]
	cbnz	w8, LBB0_22
	b	LBB0_19
LBB0_18:
	str	xzr, [x22, #24]
	mov	w8, #18
	str	w8, [x22, #8]
	bl	_v86int
	ldr	w8, [x22, #12]
	ubfiz	w8, w8, #10, #16
	str	w8, [x25]
	ldr	w8, [x23]
	cbnz	w8, LBB0_22
LBB0_19:
	ldr	x8, [x24]
	str	x8, [x22, #24]
Lloh20:
	adrp	x8, lCPI0_1@PAGE
Lloh21:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x22, #8]
	bl	_v86int
	ldr	w0, [x22, #32]
	bl	_V86_CY
	cbz	x0, LBB0_25
; %bb.20:
	ldr	w8, [x23]
	cbnz	w8, LBB0_22
LBB0_21:
	str	xzr, [x22, #24]
Lloh22:
	adrp	x8, lCPI0_2@PAGE
Lloh23:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	str	d0, [x22, #8]
	bl	_v86int
	ldr	w8, [x22, #12]
	ubfiz	w8, w8, #10, #16
	str	w8, [x23]
LBB0_22:
Lloh24:
	adrp	x9, _HEAP_MIN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HEAP_MIN@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	ldr	w10, [x21]
	subs	w8, w8, w9
	ccmp	w10, w9, #0, ge
	b.ge	LBB0_24
; %bb.23:
	str	w9, [x21]
	add	w8, w8, #256, lsl #12           ; =1048576
	str	w8, [x20]
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_25:
	ldrh	w8, [x22, #16]
	ldr	w9, [x22, #20]
	add	w8, w8, w9, lsl #6
	lsl	w8, w8, #10
	str	w8, [x23]
	cbnz	w8, LBB0_22
	b	LBB0_21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_v86,48,3                       ; @v86
	.comm	_V86_FLAGS,8,3                  ; @V86_FLAGS
	.comm	_SMAP_SIG,4,2                   ; @SMAP_SIG
	.comm	_smap,16,3                      ; @smap
	.comm	_SMAP_TYPE_MEMORY,8,3           ; @SMAP_TYPE_MEMORY
	.comm	_bios_basemem,4,2               ; @bios_basemem
	.comm	_bios_extmem,4,2                ; @bios_extmem
	.comm	_high_heap_size,4,2             ; @high_heap_size
	.comm	_high_heap_base,4,2             ; @high_heap_base
	.comm	_HEAP_MIN,4,2                   ; @HEAP_MIN
	.no_dead_strip	_bios_getmem
.subsections_via_symbols
