	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_rmrr_iter
_dmar_rmrr_iter:                        ## @dmar_rmrr_iter
	.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	(%rdi), %rax
	movq	_ACPI_DMAR_TYPE_RESERVED_MEMORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	%rsi, %r12
	cmpq	(%rsi), %rax
	jne	LBB0_7
## %bb.2:
	movq	%rdi, %r14
	leaq	24(%rdi), %rbx
	movslq	16(%rdi), %r15
	addq	%rdi, %r15
	cmpq	%rbx, %r15
	jbe	LBB0_7
## %bb.3:
	movq	_unroll_link@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r15, %rbx
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movslq	(%rbx), %rbx
	addq	%rdi, %rbx
	movl	24(%r12), %esi
	movl	16(%r12), %ecx
	movl	20(%r12), %edx
	callq	_dmar_match_devscope
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r12), %edi
	movq	_DMAR_PGF_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dmar_gas_alloc_entry
	movl	12(%r14), %ecx
	movl	%ecx, 4(%rax)
	movl	8(%r14), %ecx
	movl	%ecx, (%rax)
	movl	8(%r12), %edi
	movl	(%r13), %edx
	movq	%rax, %rsi
	callq	_TAILQ_INSERT_TAIL
	jmp	LBB0_6
LBB0_7:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_DMAR_TYPE_RESERVED_MEMORY,8,3 ## @ACPI_DMAR_TYPE_RESERVED_MEMORY
	.comm	_DMAR_PGF_WAITOK,4,2            ## @DMAR_PGF_WAITOK
	.comm	_unroll_link,4,2                ## @unroll_link
	.no_dead_strip	_dmar_rmrr_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_rmrr_iter
_dmar_rmrr_iter:                        ; @dmar_rmrr_iter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ACPI_DMAR_TYPE_RESERVED_MEMORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_DMAR_TYPE_RESERVED_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x1
	ldr	x9, [x1]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	x20, x0
	add	x21, x0, #24
	ldrsw	x8, [x0, #16]
	add	x22, x0, x8
	cmp	x22, x21
	b.ls	LBB0_7
; %bb.3:
Lloh3:
	adrp	x23, _DMAR_PGF_WAITOK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _DMAR_PGF_WAITOK@GOTPAGEOFF]
Lloh5:
	adrp	x24, _unroll_link@GOTPAGE
Lloh6:
	ldr	x24, [x24, _unroll_link@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, x25
	cmp	x21, x22
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x25, [x21]
	ldp	w2, w1, [x19, #20]
	ldr	w3, [x19, #16]
	mov	x0, x21
	bl	_dmar_match_devscope
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #12]
	ldr	w1, [x23]
	bl	_dmar_gas_alloc_entry
	mov	x1, x0
	ldr	d0, [x20, #8]
	str	d0, [x0]
	ldr	w0, [x19, #8]
	ldr	w2, [x24]
	bl	_TAILQ_INSERT_TAIL
	b	LBB0_4
LBB0_7:
	mov	w0, #1
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_DMAR_TYPE_RESERVED_MEMORY,8,3 ; @ACPI_DMAR_TYPE_RESERVED_MEMORY
	.comm	_DMAR_PGF_WAITOK,4,2            ; @DMAR_PGF_WAITOK
	.comm	_unroll_link,4,2                ; @unroll_link
	.no_dead_strip	_dmar_rmrr_iter
.subsections_via_symbols
