	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_iommu_dma_supported
_amd_iommu_dma_supported:               ## @amd_iommu_dma_supported
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	(%rdi), %rcx
	cmpq	_pci_bus_type@GOTPCREL(%rip), %rcx
	je	LBB0_2
LBB0_3:
	popq	%rbp
	retq
LBB0_2:
	callq	_to_pci_dev
	movq	8(%rax), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_calc_devid
	movq	%rax, %rcx
	movq	_amd_iommu_last_bdf@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	setle	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_bus_type,4,2               ## @pci_bus_type
	.comm	_amd_iommu_last_bdf,8,3         ## @amd_iommu_last_bdf
	.no_dead_strip	_amd_iommu_dma_supported
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_iommu_dma_supported
_amd_iommu_dma_supported:               ; @amd_iommu_dma_supported
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _pci_bus_type@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pci_bus_type@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	bl	_to_pci_dev
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_calc_devid
Lloh2:
	adrp	x8, _amd_iommu_last_bdf@GOTPAGE
Lloh3:
	ldr	x8, [x8, _amd_iommu_last_bdf@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, le
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_bus_type,4,2               ; @pci_bus_type
	.comm	_amd_iommu_last_bdf,8,3         ; @amd_iommu_last_bdf
	.no_dead_strip	_amd_iommu_dma_supported
.subsections_via_symbols
