	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_dma_parse_csrt
_acpi_dma_parse_csrt:                   ## @acpi_dma_parse_csrt
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	_ACPI_SIG_CSRT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_acpi_get_table
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_AE_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.2:
	leaq	L_.str(%rip), %r15
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_warn
	jmp	LBB0_8
LBB0_4:
	movq	-48(%rbp), %rax
	leaq	4(%rax), %rbx
	movslq	(%rax), %r13
	addq	%rax, %r13
	cmpq	%r13, %rbx
	jae	LBB0_8
## %bb.5:
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_acpi_dma_parse_resource_group
	testl	%eax, %eax
	js	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%rbx), %rax
	addq	%rax, %rbx
	cmpq	%r13, %rbx
	jb	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_SIG_CSRT,4,2              ## @ACPI_SIG_CSRT
	.comm	_AE_NOT_FOUND,8,3               ## @AE_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get the CSRT table\n"

L_.str.1:                               ## @.str.1
	.asciz	"error in parsing resource group\n"

	.no_dead_strip	_acpi_dma_parse_csrt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_dma_parse_csrt
_acpi_dma_parse_csrt:                   ; @acpi_dma_parse_csrt
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ACPI_SIG_CSRT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_SIG_CSRT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #0
	bl	_acpi_get_table
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _AE_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_NOT_FOUND@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_8
; %bb.2:
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_dev_warn
	b	LBB0_8
LBB0_4:
	ldr	x8, [sp, #8]
	mov	x22, x8
	ldrsw	x9, [x22], #4
	add	x23, x8, x9
	cmp	x22, x23
	b.hs	LBB0_8
; %bb.5:
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_acpi_dma_parse_resource_group
	tbnz	w0, #31, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x22]
	add	x22, x22, x8
	cmp	x22, x23
	b.lo	LBB0_6
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_SIG_CSRT,4,2              ; @ACPI_SIG_CSRT
	.comm	_AE_NOT_FOUND,8,3               ; @AE_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get the CSRT table\n"

l_.str.1:                               ; @.str.1
	.asciz	"error in parsing resource group\n"

	.no_dead_strip	_acpi_dma_parse_csrt
.subsections_via_symbols
