	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_find_nonpci
_dmar_find_nonpci:                      ## @dmar_find_nonpci
	.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	_dmar_devcnt@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_dmar_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_device_get_softc
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_dmar_find_by_index
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	4(%rax), %rcx
	movslq	(%rax), %rdx
	addq	%rax, %rdx
	cmpq	%rcx, %rdx
	ja	LBB0_5
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	addq	%rax, %rcx
	cmpq	%rdx, %rcx
	jae	LBB0_12
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rcx), %rax
	cmpq	%rbx, 8(%rcx)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%r15, 16(%rcx)
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$34, %eax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_printf
	jmp	LBB0_12
LBB0_13:
	xorl	%r12d, %r12d
LBB0_14:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.10:
	movl	36(%rcx), %esi
	movl	24(%rcx), %edi
	movl	32(%rcx), %edx
	callq	_PCI_RID
	movl	%eax, (%rbx)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_dmar_devcnt,4,2                ## @dmar_devcnt
	.comm	_dmar_devs,8,3                  ## @dmar_devs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmar_find_nonpci: id %d type %d path length != 2\n"

	.comm	_ACPI_DMAR_SCOPE_TYPE_IOAPIC,8,3 ## @ACPI_DMAR_SCOPE_TYPE_IOAPIC
	.no_dead_strip	_dmar_find_nonpci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_find_nonpci
_dmar_find_nonpci:                      ; @dmar_find_nonpci
	.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
Lloh0:
	adrp	x25, _dmar_devcnt@GOTPAGE
Lloh1:
	ldr	x25, [x25, _dmar_devcnt@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
Lloh2:
	adrp	x26, _dmar_devs@GOTPAGE
Lloh3:
	ldr	x26, [x26, _dmar_devs@GOTPAGEOFF]
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x25]
	cmp	x22, x8
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x26]
	ldr	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_device_get_softc
	mov	x24, x0
	mov	x0, x22
	bl	_dmar_find_by_index
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x0
	ldrsw	x9, [x8], #4
	add	x9, x0, x9
	cmp	x9, x8
	b.hi	LBB0_7
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x8, x8, x10
	cmp	x8, x9
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x10, [x8]
	ldr	x11, [x8, #8]
	cmp	x11, x20
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x11, [x8, #16]
	cmp	x11, x21
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, #34
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_printf
	b	LBB0_2
LBB0_11:
	mov	x24, #0
LBB0_12:
	mov	x0, x24
	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
LBB0_13:
	cbz	x19, LBB0_12
; %bb.14:
	ldr	w0, [x8, #24]
	ldp	w2, w1, [x8, #32]
	bl	_PCI_RID
	str	w0, [x19]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_dmar_devcnt,4,2                ; @dmar_devcnt
	.comm	_dmar_devs,8,3                  ; @dmar_devs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmar_find_nonpci: id %d type %d path length != 2\n"

	.comm	_ACPI_DMAR_SCOPE_TYPE_IOAPIC,8,3 ; @ACPI_DMAR_SCOPE_TYPE_IOAPIC
	.no_dead_strip	_dmar_find_nonpci
.subsections_via_symbols
