	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_reset                    ## -- Begin function iommu_reset
	.p2align	4, 0x90
_iommu_reset:                           ## @iommu_reset
	.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, %rbx
	movq	(%rdi), %r14
	movq	_IOMMU_FIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_2
## %bb.1:
	orq	16(%rbx), %r14
	movq	_is_iommu@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IMR_CACHE_INVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	$-1, %rcx
	callq	_IOMMU_WRITE8
LBB0_2:
	movq	_is_iommu@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_IMR_TSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_IOMMU_WRITE8
	movl	(%r15), %esi
	movq	_IMR_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%rbx), %rcx
	movq	%rbx, %rdi
	callq	_IOMMU_WRITE8
	movq	32(%rbx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.3:
	movq	_is_sb@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	_ISR_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_STRBUF_EN@GOTPCREL(%rip), %r12
	movq	_IOMMU_RERUN_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	je	LBB0_4
## %bb.5:
	movq	_STRBUF_RR_DIS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_6
LBB0_4:
	xorl	%ecx, %ecx
LBB0_6:
	orq	(%r12), %rcx
	movq	%rbx, %rdi
	callq	_IOMMU_WRITE8
	movq	(%r13), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_IOMMU_READ8
	movq	32(%rbx), %rcx
	testq	%rax, (%r12)
	je	LBB0_7
LBB0_8:
	cmpq	$0, 8(%rcx)
	je	LBB0_14
LBB0_9:
	movq	_is_sb@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movq	_ISR_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_STRBUF_EN@GOTPCREL(%rip), %r12
	movq	_IOMMU_RERUN_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	je	LBB0_10
## %bb.11:
	movq	_STRBUF_RR_DIS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_12
LBB0_10:
	xorl	%ecx, %ecx
LBB0_12:
	orq	(%r12), %rcx
	movq	%rbx, %rdi
	callq	_IOMMU_WRITE8
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_IOMMU_READ8
	testq	%rax, (%r12)
	jne	LBB0_14
## %bb.13:
	movq	32(%rbx), %rax
	movq	$0, 8(%rax)
	jmp	LBB0_14
LBB0_7:
	movq	$0, (%rcx)
	cmpq	$0, 8(%rcx)
	jne	LBB0_9
LBB0_14:
	movl	(%r15), %esi
	movq	_IMR_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IOMMU_READ8                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IOMMU_FIRE,4,2                 ## @IOMMU_FIRE
	.comm	_is_iommu,4,2                   ## @is_iommu
	.comm	_IMR_CACHE_INVAL,4,2            ## @IMR_CACHE_INVAL
	.comm	_IMR_TSB,4,2                    ## @IMR_TSB
	.comm	_IMR_CTL,4,2                    ## @IMR_CTL
	.comm	_is_sb,8,3                      ## @is_sb
	.comm	_ISR_CTL,4,2                    ## @ISR_CTL
	.comm	_STRBUF_EN,8,3                  ## @STRBUF_EN
	.comm	_IOMMU_RERUN_DISABLE,4,2        ## @IOMMU_RERUN_DISABLE
	.comm	_STRBUF_RR_DIS,8,3              ## @STRBUF_RR_DIS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_reset                    ; -- Begin function iommu_reset
	.p2align	2
_iommu_reset:                           ; @iommu_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _IOMMU_FIRE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IOMMU_FIRE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x21, _is_iommu@GOTPAGE
Lloh4:
	ldr	x21, [x21, _is_iommu@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	orr	x20, x8, x20
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _IMR_CACHE_INVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IMR_CACHE_INVAL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #-1
	bl	_IOMMU_WRITE8
LBB0_2:
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _IMR_TSB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IMR_TSB@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_IOMMU_WRITE8
	ldr	w1, [x21]
Lloh11:
	adrp	x20, _IMR_CTL@GOTPAGE
Lloh12:
	ldr	x20, [x20, _IMR_CTL@GOTPAGEOFF]
	ldr	w2, [x20]
	ldr	x3, [x19, #24]
	mov	x0, x19
	bl	_IOMMU_WRITE8
	ldr	x8, [x19, #32]
	ldr	x9, [x8]
Lloh13:
	adrp	x24, _is_sb@GOTPAGE
Lloh14:
	ldr	x24, [x24, _is_sb@GOTPAGEOFF]
Lloh15:
	adrp	x23, _ISR_CTL@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ISR_CTL@GOTPAGEOFF]
Lloh17:
	adrp	x22, _STRBUF_EN@GOTPAGE
Lloh18:
	ldr	x22, [x22, _STRBUF_EN@GOTPAGEOFF]
Lloh19:
	adrp	x25, _IOMMU_RERUN_DISABLE@GOTPAGE
Lloh20:
	ldr	x25, [x25, _IOMMU_RERUN_DISABLE@GOTPAGEOFF]
Lloh21:
	adrp	x26, _STRBUF_RR_DIS@GOTPAGE
Lloh22:
	ldr	x26, [x26, _STRBUF_RR_DIS@GOTPAGEOFF]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x8, [x24]
	ldr	w1, [x8]
	ldr	w2, [x23]
	ldr	x8, [x22]
	ldr	w9, [x19, #8]
	ldr	w10, [x25]
	ldr	x11, [x26]
	tst	w10, w9
	csel	x9, xzr, x11, eq
	orr	x3, x9, x8
	mov	x0, x19
	bl	_IOMMU_WRITE8
	ldr	x8, [x24]
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_IOMMU_READ8
	ldr	x9, [x22]
	ldr	x8, [x19, #32]
	tst	x9, x0
	b.eq	LBB0_7
LBB0_4:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
LBB0_5:
	ldr	x8, [x24]
	ldr	w1, [x8, #4]
	ldr	w2, [x23]
	ldr	x8, [x22]
	ldr	w9, [x19, #8]
	ldr	w10, [x25]
	ldr	x11, [x26]
	tst	w10, w9
	csel	x9, xzr, x11, eq
	orr	x3, x9, x8
	mov	x0, x19
	bl	_IOMMU_WRITE8
	ldr	x8, [x24]
	ldr	w1, [x8, #4]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_IOMMU_READ8
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #32]
	str	xzr, [x8, #8]
	b	LBB0_8
LBB0_7:
	str	xzr, [x8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_5
LBB0_8:
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_IOMMU_READ8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IOMMU_FIRE,4,2                 ; @IOMMU_FIRE
	.comm	_is_iommu,4,2                   ; @is_iommu
	.comm	_IMR_CACHE_INVAL,4,2            ; @IMR_CACHE_INVAL
	.comm	_IMR_TSB,4,2                    ; @IMR_TSB
	.comm	_IMR_CTL,4,2                    ; @IMR_CTL
	.comm	_is_sb,8,3                      ; @is_sb
	.comm	_ISR_CTL,4,2                    ; @ISR_CTL
	.comm	_STRBUF_EN,8,3                  ; @STRBUF_EN
	.comm	_IOMMU_RERUN_DISABLE,4,2        ; @IOMMU_RERUN_DISABLE
	.comm	_STRBUF_RR_DIS,8,3              ; @STRBUF_RR_DIS
.subsections_via_symbols
