	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetExtendedMemoryConfiguration
_GetExtendedMemoryConfiguration:        ## @GetExtendedMemoryConfiguration
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	$0, (%r14)
	movl	$0, (%r15)
	movl	$59393, -88(%rbp)               ## imm = 0xE801
	leaq	-88(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movl	$21, %edi
	callq	_Int386
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-64(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-60(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-56(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-52(%rbp), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_EFLAGS_CF@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	-48(%rbp), %eax
	leaq	L_.str.8(%rip), %r13
	leaq	L_.str.7(%rip), %rbx
	movq	%rbx, %rsi
	cmoveq	%r13, %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_INT386_SUCCESS
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movl	-60(%rbp), %ecx
	movl	%ecx, (%r15)
	jmp	LBB0_8
LBB0_3:
	movl	$136, -68(%rbp)
	leaq	-88(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movl	$21, %edi
	callq	_Int386
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-64(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%r12), %eax
	andl	-48(%rbp), %eax
	cmoveq	%r13, %rbx
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_INT386_SUCCESS
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_8
LBB0_5:
	movl	$112, %edi
	movl	$49, %esi
	callq	_WRITE_PORT_UCHAR
	movl	$113, %edi
	callq	_READ_PORT_UCHAR
	movzwl	%ax, %eax
	shll	$8, %eax
	movl	%eax, (%r14)
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%r14), %esi
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	cmpl	$0, (%r14)
	jne	LBB0_9
## %bb.6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movl	-52(%rbp), %eax
	movl	%eax, (%r15)
	movl	-56(%rbp), %eax
LBB0_8:
	movl	%eax, (%r14)
LBB0_9:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GetExtendedMemoryConfiguration()\n"

L_.str.1:                               ## @.str.1
	.asciz	"Int15h AX=E801h\n"

L_.str.2:                               ## @.str.2
	.asciz	"AX = 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"BX = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"CX = 0x%x\n"

L_.str.5:                               ## @.str.5
	.asciz	"DX = 0x%x\n"

L_.str.6:                               ## @.str.6
	.asciz	"CF set = %s\n"

	.comm	_EFLAGS_CF,4,2                  ## @EFLAGS_CF
L_.str.7:                               ## @.str.7
	.asciz	"TRUE"

L_.str.8:                               ## @.str.8
	.asciz	"FALSE"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.9:                               ## @.str.9
	.asciz	"Int15h AH=88h\n"

L_.str.10:                              ## @.str.10
	.asciz	"Int15h Failed\n"

L_.str.11:                              ## @.str.11
	.asciz	"CMOS reports: 0x%lx\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_GetExtendedMemoryConfiguration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetExtendedMemoryConfiguration
_GetExtendedMemoryConfiguration:        ; @GetExtendedMemoryConfiguration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	str	wzr, [x19]
	str	wzr, [x20]
	mov	w8, #59393
	str	w8, [sp, #72]
	add	x1, sp, #72
	add	x2, sp, #48
	mov	w0, #21
	bl	_Int386
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #48]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #52]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #56]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #60]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #64]
Lloh12:
	adrp	x21, _EFLAGS_CF@GOTPAGE
Lloh13:
	ldr	x21, [x21, _EFLAGS_CF@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh14:
	adrp	x22, l_.str.7@PAGE
Lloh15:
	add	x22, x22, l_.str.7@PAGEOFF
Lloh16:
	adrp	x23, l_.str.8@PAGE
Lloh17:
	add	x23, x23, l_.str.8@PAGEOFF
	tst	w9, w8
	csel	x8, x23, x22, eq
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_TRACE
	ldr	q0, [sp, #48]
	str	q0, [sp, #16]
	ldr	x8, [sp, #64]
	str	x8, [sp, #32]
	add	x0, sp, #16
	bl	_INT386_SUCCESS
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #48]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w9, [sp, #52]
	str	w9, [x20]
	b	LBB0_5
LBB0_3:
	mov	w8, #136
	str	w8, [sp, #92]
	add	x1, sp, #72
	add	x2, sp, #48
	mov	w0, #21
	bl	_Int386
Lloh20:
	adrp	x0, l_.str.9@PAGE
Lloh21:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #48]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w8, [sp, #64]
	ldr	w9, [x21]
	tst	w9, w8
	csel	x8, x23, x22, eq
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_TRACE
	ldr	q0, [sp, #48]
	str	q0, [sp, #16]
	ldr	x8, [sp, #64]
	str	x8, [sp, #32]
	add	x0, sp, #16
	bl	_INT386_SUCCESS
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w8, [sp, #48]
	cbz	w8, LBB0_8
LBB0_5:
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	ldp	w9, w8, [sp, #56]
	str	w8, [x20]
	str	w9, [x19]
LBB0_7:
Lloh26:
	adrp	x8, _TRUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	w0, #112
	mov	w1, #49
	bl	_WRITE_PORT_UCHAR
	mov	w0, #113
	bl	_READ_PORT_UCHAR
	ubfiz	w8, w0, #8, #16
	str	w8, [x19]
Lloh28:
	adrp	x0, l_.str.10@PAGE
Lloh29:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.11@PAGE
Lloh31:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
Lloh32:
	adrp	x9, _TRUE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh34:
	adrp	x10, _FALSE@GOTPAGE
Lloh35:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetExtendedMemoryConfiguration()\n"

l_.str.1:                               ; @.str.1
	.asciz	"Int15h AX=E801h\n"

l_.str.2:                               ; @.str.2
	.asciz	"AX = 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"BX = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"CX = 0x%x\n"

l_.str.5:                               ; @.str.5
	.asciz	"DX = 0x%x\n"

l_.str.6:                               ; @.str.6
	.asciz	"CF set = %s\n"

	.comm	_EFLAGS_CF,4,2                  ; @EFLAGS_CF
l_.str.7:                               ; @.str.7
	.asciz	"TRUE"

l_.str.8:                               ; @.str.8
	.asciz	"FALSE"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.9:                               ; @.str.9
	.asciz	"Int15h AH=88h\n"

l_.str.10:                              ; @.str.10
	.asciz	"Int15h Failed\n"

l_.str.11:                              ; @.str.11
	.asciz	"CMOS reports: 0x%lx\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_GetExtendedMemoryConfiguration
.subsections_via_symbols
