	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_get_requester             ## -- Begin function dmar_get_requester
	.p2align	4, 0x90
_dmar_get_requester:                    ## @dmar_get_requester
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	callq	_devclass_find
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_pci_get_rid
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%eax, (%rbx)
	movq	%r13, %r14
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %r15
	movq	%r14, %rdi
	callq	_device_get_parent
	movq	%rax, %r13
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movq	%r12, %rdi
	callq	_device_get_name
	movq	%r14, %rdi
	callq	_device_get_name
	movslq	%eax, %rsi
	movl	%ebx, %edi
	callq	_KASSERT
	movq	%r13, %rdi
	callq	_device_get_devclass
	xorl	%ebx, %ebx
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	sete	%bl
	movq	%r12, %rdi
	callq	_device_get_name
	movq	%r13, %rdi
	callq	_device_get_name
	movq	%r14, %rdi
	callq	_device_get_name
	movslq	%eax, %rsi
	movl	%ebx, %edi
	callq	_KASSERT
	movq	%r13, %rdi
	callq	_device_get_parent
	movq	%rax, %r14
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movq	%r12, %rdi
	callq	_device_get_name
	movq	%r13, %rdi
	callq	_device_get_name
	movslq	%eax, %rsi
	movl	%ebx, %edi
	callq	_KASSERT
	movq	%r14, %rdi
	callq	_device_get_parent
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_device_get_devclass
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	callq	_device_get_parent
	movq	%rax, %r13
	movq	_PCIY_EXPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	-44(%rbp), %rdx
	callq	_pci_find_cap
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCIY_EXPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	-44(%rbp), %rdx
	callq	_pci_find_cap
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCIY_EXPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	leaq	-44(%rbp), %rdx
	callq	_pci_find_cap
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	-44(%rbp), %rsi
	movq	_PCIER_FLAGS@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_pci_read_config
	movq	_PCIEM_FLAGS_TYPE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PCIEM_TYPE_PCI_BRIDGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_pci_get_rid
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_pci_get_bus
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PCI_RID
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_1
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci"

	.comm	_PCIY_EXPRESS,4,2               ## @PCIY_EXPRESS
	.comm	_PCIER_FLAGS,8,3                ## @PCIER_FLAGS
	.comm	_PCIEM_FLAGS_TYPE,4,2           ## @PCIEM_FLAGS_TYPE
	.comm	_PCIEM_TYPE_PCI_BRIDGE,4,2      ## @PCIEM_TYPE_PCI_BRIDGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_get_requester             ; -- Begin function dmar_get_requester
	.p2align	2
_dmar_get_requester:                    ; @dmar_get_requester
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_devclass_find
	mov	x21, x0
	mov	x0, x20
	bl	_pci_get_rid
Lloh2:
	adrp	x27, _PCIY_EXPRESS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PCIY_EXPRESS@GOTPAGEOFF]
	mov	x23, x20
	mov	x25, x20
Lloh4:
	adrp	x28, _PCIEM_TYPE_PCI_BRIDGE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PCIEM_TYPE_PCI_BRIDGE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	str	w0, [x19]
	mov	x24, x25
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x24
	mov	x0, x24
	bl	_device_get_parent
	mov	x25, x0
	cmp	x0, #0
	cset	w24, ne
	mov	x0, x20
	bl	_device_get_name
	mov	x0, x22
	bl	_device_get_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x24
	bl	_KASSERT
	mov	x0, x25
	bl	_device_get_devclass
	cmp	x0, x21
	cset	w24, eq
	mov	x0, x20
	bl	_device_get_name
	mov	x0, x25
	bl	_device_get_name
	mov	x0, x22
	bl	_device_get_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x24
	bl	_KASSERT
	mov	x0, x25
	bl	_device_get_parent
	mov	x24, x0
	cmp	x0, #0
	cset	w26, ne
	mov	x0, x20
	bl	_device_get_name
	mov	x0, x25
	bl	_device_get_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x26
	bl	_KASSERT
	mov	x0, x24
	bl	_device_get_parent
	mov	x25, x0
	bl	_device_get_devclass
	cmp	x0, x21
	b.ne	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x25
	bl	_device_get_parent
	mov	x25, x0
	ldr	w1, [x27]
	add	x2, sp, #12
	mov	x0, x22
	bl	_pci_find_cap
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x27]
	add	x2, sp, #12
	mov	x0, x24
	bl	_pci_find_cap
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x27]
	add	x2, sp, #12
	mov	x0, x25
	bl	_pci_find_cap
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrsw	x8, [sp, #12]
Lloh6:
	adrp	x9, _PCIER_FLAGS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCIER_FLAGS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x25
	mov	w2, #2
	bl	_pci_read_config
Lloh9:
	adrp	x8, _PCIEM_FLAGS_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCIEM_FLAGS_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [x28]
	cmp	w8, w9
	b.ne	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_pci_get_rid
	mov	x23, x24
	mov	x25, x24
	b	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_pci_get_bus
	mov	w1, #0
	mov	w2, #0
	bl	_PCI_RID
	mov	x23, x24
	b	LBB0_1
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci"

	.comm	_PCIY_EXPRESS,4,2               ; @PCIY_EXPRESS
	.comm	_PCIER_FLAGS,8,3                ; @PCIER_FLAGS
	.comm	_PCIEM_FLAGS_TYPE,4,2           ; @PCIEM_FLAGS_TYPE
	.comm	_PCIEM_TYPE_PCI_BRIDGE,4,2      ; @PCIEM_TYPE_PCI_BRIDGE
.subsections_via_symbols
