	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __host_bridge_whitelist
___host_bridge_whitelist:               ## @__host_bridge_whitelist
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	(%rdi), %ebx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_PCI_DEVFN
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pci_get_slot
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movzwl	(%rax), %ebx
	movzwl	2(%rax), %r12d
	movq	%rax, %rdi
	callq	_pci_dev_put
	movq	_pci_p2pdma_whitelist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzwl	(%rax), %ecx
	testw	%cx, %cx
	je	LBB0_7
## %bb.2:
	addq	$8, %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzwl	(%rax), %ecx
	addq	$8, %rax
	testw	%cx, %cx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movswl	%cx, %ecx
	cmpl	%ecx, %ebx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpw	-6(%rax), %r12w
	jne	LBB0_6
## %bb.5:
	movq	_REQ_SAME_HOST_BRIDGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -4(%rax)
	sete	%al
	testl	%r14d, %r14d
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_p2pdma_whitelist,8,3       ## @pci_p2pdma_whitelist
	.comm	_REQ_SAME_HOST_BRIDGE,4,2       ## @REQ_SAME_HOST_BRIDGE
	.no_dead_strip	___host_bridge_whitelist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __host_bridge_whitelist
___host_bridge_whitelist:               ; @__host_bridge_whitelist
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w20, [x0]
	mov	w0, #0
	mov	w1, #0
	bl	_PCI_DEVFN
	mov	x1, x0
	mov	x0, x20
	bl	_pci_get_slot
	cbz	x0, LBB0_8
; %bb.1:
	ldrh	w20, [x0]
	ldrh	w21, [x0, #2]
	bl	_pci_dev_put
Lloh0:
	adrp	x8, _pci_p2pdma_whitelist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pci_p2pdma_whitelist@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrh	w9, [x8]
	cbz	w9, LBB0_7
; %bb.2:
	add	x8, x8, #4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w9, [x8, #4]
	add	x8, x8, #8
	cbz	w9, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, w9, sxth
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldurh	w9, [x8, #-2]
	cmp	w21, w9
	b.ne	LBB0_3
; %bb.6:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _REQ_SAME_HOST_BRIDGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REQ_SAME_HOST_BRIDGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	ccmp	w19, #0, #0, ne
	cset	w0, ne
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_p2pdma_whitelist,8,3       ; @pci_p2pdma_whitelist
	.comm	_REQ_SAME_HOST_BRIDGE,4,2       ; @REQ_SAME_HOST_BRIDGE
	.no_dead_strip	___host_bridge_whitelist
.subsections_via_symbols
