	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_device
_check_device:                          ## @check_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.2:
	callq	_get_device_id
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	_amd_iommu_last_bdf@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_5
## %bb.4:
	movq	_amd_iommu_rlookup_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	xorl	%ebx, %ebx
	cmpq	$0, (%rcx,%rax,8)
	setne	%bl
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_iommu_last_bdf,4,2         ## @amd_iommu_last_bdf
	.comm	_amd_iommu_rlookup_table,8,3    ## @amd_iommu_rlookup_table
	.no_dead_strip	_check_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_device
_check_device:                          ; @check_device
	.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_5
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.2:
	bl	_get_device_id
	mov	x8, x0
	mov	w0, #0
	tbnz	w8, #31, LBB0_5
; %bb.3:
Lloh0:
	adrp	x9, _amd_iommu_last_bdf@GOTPAGE
Lloh1:
	ldr	x9, [x9, _amd_iommu_last_bdf@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x9, _amd_iommu_rlookup_table@GOTPAGE
Lloh4:
	ldr	x9, [x9, _amd_iommu_rlookup_table@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, uxtw #3]
	cmp	x8, #0
	cset	w0, ne
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_iommu_last_bdf,4,2         ; @amd_iommu_last_bdf
	.comm	_amd_iommu_rlookup_table,8,3    ; @amd_iommu_rlookup_table
	.no_dead_strip	_check_device
.subsections_via_symbols
