	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function madt_probe_cpus
_madt_probe_cpus:                       ## @madt_probe_cpus
	.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	_madt_physaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_SIG_MADT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_acpi_map_table
	movq	_madt@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movl	(%rax), %ecx
	movq	_madt_length@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_madt_probe_cpus_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_madt_walk_table
	movq	(%rbx), %rdi
	callq	_acpi_unmap_table
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_madt_physaddr,4,2              ## @madt_physaddr
	.comm	_ACPI_SIG_MADT,4,2              ## @ACPI_SIG_MADT
	.comm	_madt,8,3                       ## @madt
	.comm	_madt_length,4,2                ## @madt_length
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to re-map MADT"

	.comm	_madt_probe_cpus_handler,4,2    ## @madt_probe_cpus_handler
	.no_dead_strip	_madt_probe_cpus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function madt_probe_cpus
_madt_probe_cpus:                       ; @madt_probe_cpus
	.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
Lloh0:
	adrp	x8, _madt_physaddr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _madt_physaddr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ACPI_SIG_MADT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_SIG_MADT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_acpi_map_table
Lloh6:
	adrp	x19, _madt@GOTPAGE
Lloh7:
	ldr	x19, [x19, _madt@GOTPAGEOFF]
	str	x0, [x19]
	ldr	w8, [x0]
Lloh8:
	adrp	x9, _madt_length@GOTPAGE
Lloh9:
	ldr	x9, [x9, _madt_length@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
	cmp	x0, #0
	cset	w0, ne
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh13:
	adrp	x8, _madt_probe_cpus_handler@GOTPAGE
Lloh14:
	ldr	x8, [x8, _madt_probe_cpus_handler@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_madt_walk_table
	ldr	x0, [x19]
	bl	_acpi_unmap_table
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_madt_physaddr,4,2              ; @madt_physaddr
	.comm	_ACPI_SIG_MADT,4,2              ; @ACPI_SIG_MADT
	.comm	_madt,8,3                       ; @madt
	.comm	_madt_length,4,2                ; @madt_length
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to re-map MADT"

	.comm	_madt_probe_cpus_handler,4,2    ; @madt_probe_cpus_handler
	.no_dead_strip	_madt_probe_cpus
.subsections_via_symbols
