	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_tb_check_xsdt
_acpi_tb_check_xsdt:                    ## @acpi_tb_check_xsdt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movl	$4, %esi
	callq	_acpi_os_map_memory
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	(%rax), %r15d
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_acpi_os_unmap_memory
	cmpl	$4, %r15d
	jae	LBB0_3
## %bb.2:
	movq	_AE_INVALID_TABLE_LENGTH@GOTPCREL(%rip), %r12
	jmp	LBB0_11
LBB0_3:
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_acpi_os_map_memory
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r13
	movslq	(%rax), %rax
	movabsq	$17179869180, %rbx              ## imm = 0x3FFFFFFFC
	addq	%rax, %rbx
	shrq	$2, %rbx
	movq	_u8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_ACPI_CAST_PTR
	movl	%eax, %esi
	addl	$4, %esi
	movq	_table_entry@GOTPCREL(%rip), %r14
	movl	%esi, (%r14)
	movq	_AE_OK@GOTPCREL(%rip), %r12
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.5:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ACPI_MOVE_64_TO_64
	cmpl	$0, -44(%rbp)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %esi
	addl	$4, %esi
	movl	%esi, (%r14)
	decl	%ebx
	jne	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movq	_AE_NULL_ENTRY@GOTPCREL(%rip), %r12
LBB0_9:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_10:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_acpi_os_unmap_memory
LBB0_11:
	movl	(%r12), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_u8,4,2                         ## @u8
	.comm	_table_entry,4,2                ## @table_entry
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_AE_INVALID_TABLE_LENGTH,4,2    ## @AE_INVALID_TABLE_LENGTH
	.comm	_AE_NULL_ENTRY,4,2              ## @AE_NULL_ENTRY
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_acpi_tb_check_xsdt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_tb_check_xsdt
_acpi_tb_check_xsdt:                    ; @acpi_tb_check_xsdt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	mov	w1, #4
	bl	_acpi_os_map_memory
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w19, [x0]
	mov	w1, #4
	bl	_acpi_os_unmap_memory
	cmp	w19, #4
	b.hs	LBB0_3
; %bb.2:
Lloh0:
	adrp	x21, _AE_INVALID_TABLE_LENGTH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AE_INVALID_TABLE_LENGTH@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_acpi_os_map_memory
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	ldrsw	x8, [x0]
	mov	x9, #17179869180
	add	x8, x8, x9
	lsr	x22, x8, #2
Lloh2:
	adrp	x8, _u8@GOTPAGE
Lloh3:
	ldr	x8, [x8, _u8@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ACPI_CAST_PTR
	add	w1, w0, #4
Lloh5:
	adrp	x23, _table_entry@GOTPAGE
Lloh6:
	ldr	x23, [x23, _table_entry@GOTPAGEOFF]
	str	w1, [x23]
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.5:
Lloh7:
	adrp	x21, _AE_NULL_ENTRY@GOTPAGE
Lloh8:
	ldr	x21, [x21, _AE_NULL_ENTRY@GOTPAGEOFF]
Lloh9:
	adrp	x24, _AE_OK@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AE_OK@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_ACPI_MOVE_64_TO_64
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	add	w1, w8, #4
	str	w1, [x23]
	subs	w22, w22, #1
	b.ne	LBB0_6
; %bb.8:
	mov	x21, x24
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x21, _AE_NO_MEMORY@GOTPAGE
Lloh12:
	ldr	x21, [x21, _AE_NO_MEMORY@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x21, _AE_OK@GOTPAGE
Lloh14:
	ldr	x21, [x21, _AE_OK@GOTPAGEOFF]
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_acpi_os_unmap_memory
LBB0_12:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_u8,4,2                         ; @u8
	.comm	_table_entry,4,2                ; @table_entry
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_AE_INVALID_TABLE_LENGTH,4,2    ; @AE_INVALID_TABLE_LENGTH
	.comm	_AE_NULL_ENTRY,4,2              ; @AE_NULL_ENTRY
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_acpi_tb_check_xsdt
.subsections_via_symbols
