	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_iterate_tbl
_dmar_iterate_tbl:                      ## @dmar_iterate_tbl
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_ACPI_SIG_DMAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rdx
	movl	$1, %esi
	callq	_AcpiGetTable
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	-40(%rbp), %rax
	leaq	4(%rax), %rdi
	movslq	(%rax), %r12
	addq	%rax, %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rdi
	jae	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rdi, %rbx
	movq	%r14, %rsi
	callq	*%r15
	movq	%rbx, %rdi
	testl	%eax, %eax
	jne	LBB0_2
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
LBB0_6:
	movq	-40(%rbp), %rdi
	callq	_AcpiPutTable
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_SIG_DMAR,4,2              ## @ACPI_SIG_DMAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmar_identify: corrupted DMAR table, l %d\n"

	.no_dead_strip	_dmar_iterate_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_iterate_tbl
_dmar_iterate_tbl:                      ; @dmar_iterate_tbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ACPI_SIG_DMAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_SIG_DMAR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #1
	bl	_AcpiGetTable
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x8, [sp, #8]
	mov	x0, x8
	ldrsw	x9, [x0], #4
	add	x21, x8, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x0, x21
	b.hs	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x0]
	cmp	x1, #0
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x0, x1
	mov	x1, x19
	blr	x20
	mov	x8, x0
	mov	x0, x22
	cbnz	w8, LBB0_2
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_AcpiPutTable
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_SIG_DMAR,4,2              ; @ACPI_SIG_DMAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmar_identify: corrupted DMAR table, l %d\n"

	.no_dead_strip	_dmar_iterate_tbl
.subsections_via_symbols
