	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_load_irt_ptr              ## -- Begin function dmar_load_irt_ptr
	.p2align	4, 0x90
_dmar_load_irt_ptr:                     ## @dmar_load_irt_ptr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_DMAR_ASSERT_LOCKED
	movq	8(%r14), %r13
	movq	%r14, %rdi
	callq	_DMAR_X2APIC
	movq	%rax, %r12
	movq	_DMAR_IRTA_EIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r14), %edi
	callq	_fls
	movq	%rax, %r15
	addq	$-2, %r15
	movl	(%r14), %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.1:
	movq	_DMAR_IRTA_S_MASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	jg	LBB0_3
## %bb.2:
	movl	%eax, %edi
	callq	_powerof2
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	movl	(%r14), %eax
LBB0_3:
	testq	%r12, %r12
	cmoveq	%r12, %rbx
	orq	%r13, %rbx
	movslq	%eax, %rsi
	callq	_KASSERT
	orq	%r15, %rbx
	movq	_DMAR_IRTA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_dmar_write8
	movq	_DMAR_GCMD_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DMAR_GCMD_SIRTP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	4(%r14), %edx
	movq	%r14, %rdi
	callq	_dmar_write4
	movq	_DMAR_GSTS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dmar_read4
	movq	_DMAR_GSTS_IRTPS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	setne	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DMAR_WAIT_UNTIL                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_IRTA_EIME,8,3             ## @DMAR_IRTA_EIME
	.comm	_DMAR_IRTA_S_MASK,8,3           ## @DMAR_IRTA_S_MASK
	.comm	_DMAR_IRTA_REG,4,2              ## @DMAR_IRTA_REG
	.comm	_DMAR_GCMD_REG,4,2              ## @DMAR_GCMD_REG
	.comm	_DMAR_GCMD_SIRTP,4,2            ## @DMAR_GCMD_SIRTP
	.comm	_DMAR_GSTS_REG,4,2              ## @DMAR_GSTS_REG
	.comm	_DMAR_GSTS_IRTPS,4,2            ## @DMAR_GSTS_IRTPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_load_irt_ptr              ; -- Begin function dmar_load_irt_ptr
	.p2align	2
_dmar_load_irt_ptr:                     ; @dmar_load_irt_ptr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_DMAR_ASSERT_LOCKED
	ldr	x21, [x19, #8]
	mov	x0, x19
	bl	_DMAR_X2APIC
	mov	x20, x0
Lloh0:
	adrp	x8, _DMAR_IRTA_EIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMAR_IRTA_EIME@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	w0, [x19]
	bl	_fls
	sub	x22, x0, #2
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _DMAR_IRTA_S_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMAR_IRTA_S_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	w0, #2
	ccmp	x22, x8, #0, ge
	b.le	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_3
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_powerof2
	cmp	x0, #0
	cset	w8, ne
	ldr	w0, [x19]
LBB0_3:
	cmp	x20, #0
	csel	x9, xzr, x23, eq
	orr	x20, x9, x21
	sxtw	x1, w0
	mov	x0, x8
	bl	_KASSERT
	orr	x2, x20, x22
Lloh6:
	adrp	x8, _DMAR_IRTA_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMAR_IRTA_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dmar_write8
Lloh9:
	adrp	x8, _DMAR_GCMD_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMAR_GCMD_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _DMAR_GCMD_SIRTP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DMAR_GCMD_SIRTP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_dmar_write4
Lloh15:
	adrp	x8, _DMAR_GSTS_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMAR_GSTS_REG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dmar_read4
Lloh18:
	adrp	x8, _DMAR_GSTS_IRTPS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMAR_GSTS_IRTPS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DMAR_WAIT_UNTIL
	.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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_IRTA_EIME,8,3             ; @DMAR_IRTA_EIME
	.comm	_DMAR_IRTA_S_MASK,8,3           ; @DMAR_IRTA_S_MASK
	.comm	_DMAR_IRTA_REG,4,2              ; @DMAR_IRTA_REG
	.comm	_DMAR_GCMD_REG,4,2              ; @DMAR_GCMD_REG
	.comm	_DMAR_GCMD_SIRTP,4,2            ; @DMAR_GCMD_SIRTP
	.comm	_DMAR_GSTS_REG,4,2              ; @DMAR_GSTS_REG
	.comm	_DMAR_GSTS_IRTPS,4,2            ; @DMAR_GSTS_IRTPS
.subsections_via_symbols
