	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_iommu_check_device         ## -- Begin function kfd_iommu_check_device
	.p2align	4, 0x90
_kfd_iommu_check_device:                ## @kfd_iommu_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
	subq	$16, %rsp
	movq	8(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	$0, -8(%rbp)
	movl	(%rdi), %edi
	leaq	-8(%rbp), %rsi
	callq	_amd_iommu_device_info
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-8(%rbp), %ecx
	movq	_required_iommu_flags@GOTPCREL(%rip), %rdx
	notl	%ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_4
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_required_iommu_flags,4,2       ## @required_iommu_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_iommu_check_device         ; -- Begin function kfd_iommu_check_device
	.p2align	2
_kfd_iommu_check_device:                ; @kfd_iommu_check_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	str	wzr, [sp, #8]
	ldr	w0, [x0]
	add	x1, sp, #8
	bl	_amd_iommu_device_info
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _required_iommu_flags@GOTPAGE
Lloh1:
	ldr	x9, [x9, _required_iommu_flags@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_required_iommu_flags,4,2       ; @required_iommu_flags
.subsections_via_symbols
