	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppt_attach
_ppt_attach:                            ## @ppt_attach
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_iommu_host_domain
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_pci_get_rid
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_iommu_remove_device
	movq	_num_pptdevs@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pptdev_list@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_TAIL
	movl	%ebx, (%r14)
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_printf
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_pptdevs,4,2                ## @num_pptdevs
	.comm	_pptdev_list,4,2                ## @pptdev_list
	.comm	_next,4,2                       ## @next
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attached\n"

	.no_dead_strip	_ppt_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppt_attach
_ppt_attach:                            ; @ppt_attach
	.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, x0
	bl	_device_get_softc
	mov	x20, x0
	bl	_iommu_host_domain
	mov	x21, x0
	mov	x0, x19
	bl	_pci_get_rid
	mov	x1, x0
	mov	x0, x21
	bl	_iommu_remove_device
Lloh0:
	adrp	x8, _num_pptdevs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_pptdevs@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x8, _next@GOTPAGE
Lloh3:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x0, _pptdev_list@GOTPAGE
Lloh6:
	ldr	x0, [x0, _pptdev_list@GOTPAGEOFF]
	mov	x1, x20
	bl	_TAILQ_INSERT_TAIL
	str	w19, [x20]
Lloh7:
	adrp	x8, _bootverbose@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_2:
	mov	w0, #0
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_num_pptdevs,4,2                ; @num_pptdevs
	.comm	_pptdev_list,4,2                ; @pptdev_list
	.comm	_next,4,2                       ; @next
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attached\n"

	.no_dead_strip	_ppt_attach
.subsections_via_symbols
