	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_attach
_dmar_attach:                           ## @dmar_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %r12
	movl	%r14d, 64(%rax)
	movl	%r14d, %edi
	callq	_device_get_unit
	movl	%eax, 60(%r12)
	movl	%eax, %edi
	callq	_dmar_find_by_index
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	4(%rax), %eax
	movl	%eax, 56(%r12)
	movl	(%rbx), %eax
	movl	%eax, 52(%r12)
	movq	_DMAR_REG_RID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	48(%r12), %rdx
	movl	%eax, 48(%r12)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_DMAR_VER_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dmar_read4
	movl	%eax, 32(%r12)
	movq	_DMAR_CAP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dmar_read8
	movl	%eax, (%r12)
	movq	_DMAR_ECAP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dmar_read8
	movl	%eax, 4(%r12)
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_dmar_print_caps
LBB0_6:
	movq	%r12, %rdi
	callq	_dmar_quirks_post_ident
	xorl	%eax, %eax
	callq	_dmar_get_timeout
	movl	%eax, -36(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-36(%rbp), %rsi
	callq	_TUNABLE_UINT64_FETCH
	movl	-36(%rbp), %edi
	callq	_dmar_update_timeout
	movq	_DMAR_INTR_TOTAL@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movq	24(%r12), %rax
	jle	LBB0_9
## %bb.7:
	xorl	%edx, %edx
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rsi)
	incq	%rdx
	movslq	(%rcx), %rdi
	addq	$48, %rsi
	cmpq	%rdi, %rdx
	jl	LBB0_8
LBB0_9:
	movq	_DMAR_INTR_FAULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	(%rdx,%rdx,2), %rcx
	shlq	$4, %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%rsi, 8(%rax,%rcx)
	movq	_DMAR_FAULT_IRQ_RID@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 40(%rax,%rcx)
	movq	_dmar_fault_intr@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 36(%rax,%rcx)
	movq	_DMAR_FEDATA_REG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 32(%rax,%rcx)
	movq	_DMAR_FEADDR_REG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 28(%rax,%rcx)
	movq	_DMAR_FEUADDR_REG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 24(%rax,%rcx)
	movq	_dmar_enable_fault_intr@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 20(%rax,%rcx)
	movq	_dmar_disable_fault_intr@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 16(%rax,%rcx)
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_dmar_alloc_irq
	testl	%eax, %eax
	je	LBB0_10
LBB0_24:
	movl	%eax, %r15d
	jmp	LBB0_25
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_26
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	callq	_device_printf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_26
LBB0_10:
	movq	%r12, %rdi
	callq	_DMAR_HAS_QI
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	24(%r12), %rax
	movq	_DMAR_INTR_QI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	(%rdx,%rdx,2), %rcx
	shlq	$4, %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%rsi, 8(%rax,%rcx)
	movq	_DMAR_QI_IRQ_RID@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 40(%rax,%rcx)
	movq	_dmar_qi_intr@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 36(%rax,%rcx)
	movq	_DMAR_IEDATA_REG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 32(%rax,%rcx)
	movq	_DMAR_IEADDR_REG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 28(%rax,%rcx)
	movq	_DMAR_IEUADDR_REG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 24(%rax,%rcx)
	movq	_dmar_enable_qi_intr@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 20(%rax,%rcx)
	movq	_dmar_disable_qi_intr@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 16(%rax,%rcx)
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_dmar_alloc_irq
	testl	%eax, %eax
	jne	LBB0_24
LBB0_12:
	leaq	20(%r12), %rbx
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mtx_init
	movl	(%r12), %edi
	callq	_DMAR_CAP_ND
	movl	%eax, %edi
	callq	_dmar_nd2mask
	xorl	%edi, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_new_unrhdr
	movl	%eax, 12(%r12)
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_LIST_INIT
	movq	_DMAR_CAP_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_14
## %bb.13:
	movl	12(%r12), %edi
	xorl	%esi, %esi
	callq	_alloc_unr_specific
LBB0_14:
	movq	_OBJT_PHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DMAR_CTX_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	callq	_IDX_TO_OFF
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_vm_pager_allocate
	movl	%eax, 8(%r12)
	movq	_DMAR_PGF_WAITOK@GOTPCREL(%rip), %rcx
	movq	_DMAR_PGF_ZERO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_dmar_pgalloc
	movq	%r12, %rdi
	callq	_DMAR_LOCK
	movq	%r12, %rdi
	callq	_dmar_load_root_entry_ptr
	testl	%eax, %eax
	jne	LBB0_15
## %bb.16:
	movq	%r12, %rdi
	callq	_dmar_inv_ctx_glob
	testl	%eax, %eax
	je	LBB0_17
LBB0_15:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_DMAR_UNLOCK
LBB0_25:
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_dmar_release_resources
LBB0_26:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_DMAR_ECAP_DI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	callq	_dmar_inv_iotlb_glob
	testl	%eax, %eax
	jne	LBB0_15
LBB0_19:
	movq	%r12, %rdi
	callq	_DMAR_UNLOCK
	movq	%r12, %rdi
	callq	_dmar_init_fault_log
	testl	%eax, %eax
	jne	LBB0_24
## %bb.20:
	movq	%r12, %rdi
	callq	_dmar_init_qi
	testl	%eax, %eax
	jne	LBB0_24
## %bb.21:
	movq	%r12, %rdi
	callq	_dmar_init_irt
	testl	%eax, %eax
	jne	LBB0_24
## %bb.22:
	movq	%r12, %rdi
	callq	_dmar_init_busdma
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	xorl	%r15d, %r15d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMAR_REG_RID,4,2               ## @DMAR_REG_RID
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate register window\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMAR_VER_REG,4,2               ## @DMAR_VER_REG
	.comm	_DMAR_CAP_REG,4,2               ## @DMAR_CAP_REG
	.comm	_DMAR_ECAP_REG,4,2              ## @DMAR_ECAP_REG
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"hw.dmar.timeout"

	.comm	_DMAR_INTR_TOTAL,4,2            ## @DMAR_INTR_TOTAL
L_.str.2:                               ## @.str.2
	.asciz	"fault"

	.comm	_DMAR_INTR_FAULT,8,3            ## @DMAR_INTR_FAULT
	.comm	_DMAR_FAULT_IRQ_RID,4,2         ## @DMAR_FAULT_IRQ_RID
	.comm	_dmar_fault_intr,4,2            ## @dmar_fault_intr
	.comm	_DMAR_FEDATA_REG,4,2            ## @DMAR_FEDATA_REG
	.comm	_DMAR_FEADDR_REG,4,2            ## @DMAR_FEADDR_REG
	.comm	_DMAR_FEUADDR_REG,4,2           ## @DMAR_FEUADDR_REG
	.comm	_dmar_enable_fault_intr,4,2     ## @dmar_enable_fault_intr
	.comm	_dmar_disable_fault_intr,4,2    ## @dmar_disable_fault_intr
L_.str.3:                               ## @.str.3
	.asciz	"qi"

	.comm	_DMAR_INTR_QI,8,3               ## @DMAR_INTR_QI
	.comm	_DMAR_QI_IRQ_RID,4,2            ## @DMAR_QI_IRQ_RID
	.comm	_dmar_qi_intr,4,2               ## @dmar_qi_intr
	.comm	_DMAR_IEDATA_REG,4,2            ## @DMAR_IEDATA_REG
	.comm	_DMAR_IEADDR_REG,4,2            ## @DMAR_IEADDR_REG
	.comm	_DMAR_IEUADDR_REG,4,2           ## @DMAR_IEUADDR_REG
	.comm	_dmar_enable_qi_intr,4,2        ## @dmar_enable_qi_intr
	.comm	_dmar_disable_qi_intr,4,2       ## @dmar_disable_qi_intr
L_.str.4:                               ## @.str.4
	.asciz	"dmarhw"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_DMAR_CAP_CM,4,2                ## @DMAR_CAP_CM
	.comm	_OBJT_PHYS,4,2                  ## @OBJT_PHYS
	.comm	_DMAR_CTX_CNT,8,3               ## @DMAR_CTX_CNT
	.comm	_DMAR_PGF_WAITOK,4,2            ## @DMAR_PGF_WAITOK
	.comm	_DMAR_PGF_ZERO,4,2              ## @DMAR_PGF_ZERO
	.comm	_DMAR_ECAP_DI,4,2               ## @DMAR_ECAP_DI
	.no_dead_strip	_dmar_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_attach
_dmar_attach:                           ; @dmar_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	str	w20, [x0, #64]
	mov	x0, x20
	bl	_device_get_unit
	str	w0, [x19, #60]
	bl	_dmar_find_by_index
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _DMAR_REG_RID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMAR_REG_RID@GOTPAGEOFF]
	ldr	d0, [x0]
Lloh2:
	ldr	w8, [x8]
	mov	x22, x19
	str	w8, [x22, #48]!
	stur	d0, [x22, #4]
Lloh3:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _RF_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RF_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_bus_alloc_resource_any
	stur	x0, [x22, #-8]
	cbz	x0, LBB0_10
; %bb.2:
Lloh9:
	adrp	x8, _DMAR_VER_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMAR_VER_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dmar_read4
	str	w0, [x19, #32]
Lloh12:
	adrp	x8, _DMAR_CAP_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMAR_CAP_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dmar_read8
	str	w0, [x19]
Lloh15:
	adrp	x8, _DMAR_ECAP_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMAR_ECAP_REG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dmar_read8
	str	w0, [x19, #4]
Lloh18:
	adrp	x8, _bootverbose@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_dmar_print_caps
LBB0_4:
	mov	x0, x19
	bl	_dmar_quirks_post_ident
	bl	_dmar_get_timeout
	str	w0, [sp, #12]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #12
	bl	_TUNABLE_UINT64_FETCH
	ldr	w0, [sp, #12]
	bl	_dmar_update_timeout
Lloh23:
	adrp	x9, _DMAR_INTR_TOTAL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DMAR_INTR_TOTAL@GOTPAGEOFF]
	ldr	w10, [x9]
	ldr	x8, [x19, #24]
	cmp	w10, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x10, #0
	mov	w11, #-1
	mov	x12, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w11, [x12], #48
	add	x10, x10, #1
	ldrsw	x13, [x9]
	cmp	x10, x13
	b.lt	LBB0_6
LBB0_7:
Lloh25:
	adrp	x9, _DMAR_INTR_FAULT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DMAR_INTR_FAULT@GOTPAGEOFF]
Lloh27:
	ldr	x2, [x9]
	mov	w9, #48
Lloh28:
	adrp	x10, l_.str.2@PAGE
Lloh29:
	add	x10, x10, l_.str.2@PAGEOFF
	madd	x8, x2, x9, x8
	str	x10, [x8, #8]
Lloh30:
	adrp	x9, _DMAR_FAULT_IRQ_RID@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DMAR_FAULT_IRQ_RID@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	str	w9, [x8, #40]
Lloh33:
	adrp	x9, _dmar_fault_intr@GOTPAGE
Lloh34:
	ldr	x9, [x9, _dmar_fault_intr@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	str	w9, [x8, #36]
Lloh36:
	adrp	x9, _DMAR_FEDATA_REG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DMAR_FEDATA_REG@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	str	w9, [x8, #32]
Lloh39:
	adrp	x9, _DMAR_FEADDR_REG@GOTPAGE
Lloh40:
	ldr	x9, [x9, _DMAR_FEADDR_REG@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	str	w9, [x8, #28]
Lloh42:
	adrp	x9, _DMAR_FEUADDR_REG@GOTPAGE
Lloh43:
	ldr	x9, [x9, _DMAR_FEUADDR_REG@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	str	w9, [x8, #24]
Lloh45:
	adrp	x9, _dmar_enable_fault_intr@GOTPAGE
Lloh46:
	ldr	x9, [x9, _dmar_enable_fault_intr@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	str	w9, [x8, #20]
Lloh48:
	adrp	x9, _dmar_disable_fault_intr@GOTPAGE
Lloh49:
	ldr	x9, [x9, _dmar_disable_fault_intr@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_dmar_alloc_irq
	cbz	w0, LBB0_11
LBB0_8:
	mov	x21, x0
	b	LBB0_18
LBB0_9:
Lloh51:
	adrp	x8, _EINVAL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh53:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_10:
Lloh54:
	adrp	x1, l_.str@PAGE
Lloh55:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh56:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh58:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_11:
	mov	x0, x19
	bl	_DMAR_HAS_QI
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x19, #24]
Lloh59:
	adrp	x9, _DMAR_INTR_QI@GOTPAGE
Lloh60:
	ldr	x9, [x9, _DMAR_INTR_QI@GOTPAGEOFF]
Lloh61:
	ldr	x2, [x9]
	mov	w9, #48
Lloh62:
	adrp	x10, l_.str.3@PAGE
Lloh63:
	add	x10, x10, l_.str.3@PAGEOFF
	madd	x8, x2, x9, x8
	str	x10, [x8, #8]
Lloh64:
	adrp	x9, _DMAR_QI_IRQ_RID@GOTPAGE
Lloh65:
	ldr	x9, [x9, _DMAR_QI_IRQ_RID@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	str	w9, [x8, #40]
Lloh67:
	adrp	x9, _dmar_qi_intr@GOTPAGE
Lloh68:
	ldr	x9, [x9, _dmar_qi_intr@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	str	w9, [x8, #36]
Lloh70:
	adrp	x9, _DMAR_IEDATA_REG@GOTPAGE
Lloh71:
	ldr	x9, [x9, _DMAR_IEDATA_REG@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	str	w9, [x8, #32]
Lloh73:
	adrp	x9, _DMAR_IEADDR_REG@GOTPAGE
Lloh74:
	ldr	x9, [x9, _DMAR_IEADDR_REG@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	str	w9, [x8, #28]
Lloh76:
	adrp	x9, _DMAR_IEUADDR_REG@GOTPAGE
Lloh77:
	ldr	x9, [x9, _DMAR_IEUADDR_REG@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	str	w9, [x8, #24]
Lloh79:
	adrp	x9, _dmar_enable_qi_intr@GOTPAGE
Lloh80:
	ldr	x9, [x9, _dmar_enable_qi_intr@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	str	w9, [x8, #20]
Lloh82:
	adrp	x9, _dmar_disable_qi_intr@GOTPAGE
Lloh83:
	ldr	x9, [x9, _dmar_disable_qi_intr@GOTPAGEOFF]
Lloh84:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_dmar_alloc_irq
	cbnz	w0, LBB0_8
LBB0_13:
	add	x21, x19, #20
Lloh85:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh86:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh87:
	ldr	w3, [x8]
Lloh88:
	adrp	x1, l_.str.4@PAGE
Lloh89:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_mtx_init
	ldr	w0, [x19]
	bl	_DMAR_CAP_ND
	bl	_dmar_nd2mask
	mov	x1, x0
	mov	w0, #0
	mov	x2, x21
	bl	_new_unrhdr
	str	w0, [x19, #12]
	add	x0, x19, #16
	bl	_LIST_INIT
	ldr	w8, [x19]
Lloh90:
	adrp	x9, _DMAR_CAP_CM@GOTPAGE
Lloh91:
	ldr	x9, [x9, _DMAR_CAP_CM@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x19, #12]
	mov	w1, #0
	bl	_alloc_unr_specific
LBB0_15:
Lloh93:
	adrp	x8, _OBJT_PHYS@GOTPAGE
Lloh94:
	ldr	x8, [x8, _OBJT_PHYS@GOTPAGEOFF]
Lloh95:
	ldr	w21, [x8]
Lloh96:
	adrp	x8, _DMAR_CTX_CNT@GOTPAGE
Lloh97:
	ldr	x8, [x8, _DMAR_CTX_CNT@GOTPAGEOFF]
Lloh98:
	ldr	x8, [x8]
	add	x0, x8, #1
	bl	_IDX_TO_OFF
	mov	x2, x0
	mov	x0, x21
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_vm_pager_allocate
Lloh99:
	adrp	x8, _DMAR_PGF_WAITOK@GOTPAGE
Lloh100:
	ldr	x8, [x8, _DMAR_PGF_WAITOK@GOTPAGEOFF]
	str	w0, [x19, #8]
Lloh101:
	ldr	w8, [x8]
Lloh102:
	adrp	x9, _DMAR_PGF_ZERO@GOTPAGE
Lloh103:
	ldr	x9, [x9, _DMAR_PGF_ZERO@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w1, #0
	bl	_dmar_pgalloc
	mov	x0, x19
	bl	_DMAR_LOCK
	mov	x0, x19
	bl	_dmar_load_root_entry_ptr
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_dmar_inv_ctx_glob
	cbz	w0, LBB0_20
LBB0_17:
	mov	x21, x0
	mov	x0, x19
	bl	_DMAR_UNLOCK
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	bl	_dmar_release_resources
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_20:
	ldr	w8, [x19, #4]
Lloh105:
	adrp	x9, _DMAR_ECAP_DI@GOTPAGE
Lloh106:
	ldr	x9, [x9, _DMAR_ECAP_DI@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_dmar_inv_iotlb_glob
	cbnz	w0, LBB0_17
LBB0_22:
	mov	x0, x19
	bl	_DMAR_UNLOCK
	mov	x0, x19
	bl	_dmar_init_fault_log
	cbnz	w0, LBB0_8
; %bb.23:
	mov	x0, x19
	bl	_dmar_init_qi
	cbnz	w0, LBB0_8
; %bb.24:
	mov	x0, x19
	bl	_dmar_init_irt
	cbnz	w0, LBB0_8
; %bb.25:
	mov	x0, x19
	bl	_dmar_init_busdma
	mov	x21, x0
	cbnz	w0, LBB0_18
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMAR_REG_RID,4,2               ; @DMAR_REG_RID
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate register window\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMAR_VER_REG,4,2               ; @DMAR_VER_REG
	.comm	_DMAR_CAP_REG,4,2               ; @DMAR_CAP_REG
	.comm	_DMAR_ECAP_REG,4,2              ; @DMAR_ECAP_REG
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"hw.dmar.timeout"

	.comm	_DMAR_INTR_TOTAL,4,2            ; @DMAR_INTR_TOTAL
l_.str.2:                               ; @.str.2
	.asciz	"fault"

	.comm	_DMAR_INTR_FAULT,8,3            ; @DMAR_INTR_FAULT
	.comm	_DMAR_FAULT_IRQ_RID,4,2         ; @DMAR_FAULT_IRQ_RID
	.comm	_dmar_fault_intr,4,2            ; @dmar_fault_intr
	.comm	_DMAR_FEDATA_REG,4,2            ; @DMAR_FEDATA_REG
	.comm	_DMAR_FEADDR_REG,4,2            ; @DMAR_FEADDR_REG
	.comm	_DMAR_FEUADDR_REG,4,2           ; @DMAR_FEUADDR_REG
	.comm	_dmar_enable_fault_intr,4,2     ; @dmar_enable_fault_intr
	.comm	_dmar_disable_fault_intr,4,2    ; @dmar_disable_fault_intr
l_.str.3:                               ; @.str.3
	.asciz	"qi"

	.comm	_DMAR_INTR_QI,8,3               ; @DMAR_INTR_QI
	.comm	_DMAR_QI_IRQ_RID,4,2            ; @DMAR_QI_IRQ_RID
	.comm	_dmar_qi_intr,4,2               ; @dmar_qi_intr
	.comm	_DMAR_IEDATA_REG,4,2            ; @DMAR_IEDATA_REG
	.comm	_DMAR_IEADDR_REG,4,2            ; @DMAR_IEADDR_REG
	.comm	_DMAR_IEUADDR_REG,4,2           ; @DMAR_IEUADDR_REG
	.comm	_dmar_enable_qi_intr,4,2        ; @dmar_enable_qi_intr
	.comm	_dmar_disable_qi_intr,4,2       ; @dmar_disable_qi_intr
l_.str.4:                               ; @.str.4
	.asciz	"dmarhw"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_DMAR_CAP_CM,4,2                ; @DMAR_CAP_CM
	.comm	_OBJT_PHYS,4,2                  ; @OBJT_PHYS
	.comm	_DMAR_CTX_CNT,8,3               ; @DMAR_CTX_CNT
	.comm	_DMAR_PGF_WAITOK,4,2            ; @DMAR_PGF_WAITOK
	.comm	_DMAR_PGF_ZERO,4,2              ; @DMAR_PGF_ZERO
	.comm	_DMAR_ECAP_DI,4,2               ; @DMAR_ECAP_DI
	.no_dead_strip	_dmar_attach
.subsections_via_symbols
