	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_handle_rsdt
_acpi_handle_rsdt:                      ## @acpi_handle_rsdt
	.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
	movl	(%rdi), %eax
	movq	_SIZEOF_SDT_HDR@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	_addr_size@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	cltd
	idivl	%ecx
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %r15
	movl	%eax, %r13d
	xorl	%r14d, %r14d
	cmpl	$8, %ecx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:
	cmpl	$4, %ecx
	jne	LBB0_6
## %bb.4:
	leal	(,%r14,4), %edi
	addq	8(%r15), %rdi
	callq	_le32dec
	movl	%eax, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:
	leal	(,%r14,8), %edi
	addq	8(%r15), %rdi
	callq	_le64dec
	movl	%eax, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_assert
LBB0_7:
	movl	%ebx, %edi
	callq	_acpi_map_sdt
	movq	%rax, %rbx
	movl	(%rax), %esi
	movq	%rax, %rdi
	callq	_acpi_checksum
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_acpi_handle_apic
	.p2align	4, 0x90
LBB0_10:
	incq	%r14
	cmpq	%r13, %r14
	je	LBB0_12
## %bb.11:
	movl	(%r12), %ecx
	cmpl	$8, %ecx
	jne	LBB0_3
	jmp	LBB0_5
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZEOF_SDT_HDR,4,2             ## @SIZEOF_SDT_HDR
	.comm	_addr_size,4,2                  ## @addr_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"APIC"

	.no_dead_strip	_acpi_handle_rsdt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_handle_rsdt
_acpi_handle_rsdt:                      ; @acpi_handle_rsdt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SIZEOF_SDT_HDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIZEOF_SDT_HDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w8, w9
Lloh3:
	adrp	x22, _addr_size@GOTPAGE
Lloh4:
	ldr	x22, [x22, _addr_size@GOTPAGEOFF]
	ldr	w8, [x22]
	sdiv	w23, w9, w8
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	mov	x24, #0
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
	cmp	w8, #8
	b.eq	LBB0_4
LBB0_2:
	cmp	w8, #4
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	lsl	w9, w24, #2
	add	x0, x8, x9
	bl	_le32dec
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	lsl	w9, w24, #3
	add	x0, x8, x9
	bl	_le64dec
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	bl	_assert
	mov	w0, #0
LBB0_6:
	bl	_acpi_map_sdt
	mov	x21, x0
	ldr	w1, [x0]
	bl	_acpi_checksum
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	w0, [x21, #4]
	mov	x1, x20
	mov	w2, #4
	bl	_memcmp
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_acpi_handle_apic
LBB0_9:
	add	x24, x24, #1
	cmp	x24, x23
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x22]
	cmp	w8, #8
	b.ne	LBB0_2
	b	LBB0_4
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZEOF_SDT_HDR,4,2             ; @SIZEOF_SDT_HDR
	.comm	_addr_size,4,2                  ; @addr_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"APIC"

	.no_dead_strip	_acpi_handle_rsdt
.subsections_via_symbols
