	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_iommu_tlb_inv_range_nosync
_qcom_iommu_tlb_inv_range_nosync:       ## @qcom_iommu_tlb_inv_range_nosync
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	testl	%ecx, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_ARM_SMMU_CB_S1_TLBIVA@GOTPCREL(%rip), %rax
	cmpl	$0, (%r8)
	jne	LBB0_4
	jmp	LBB0_8
LBB0_1:
	movq	_ARM_SMMU_CB_S1_TLBIVAL@GOTPCREL(%rip), %rax
	cmpl	$0, (%r8)
	je	LBB0_8
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%r8), %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,4), %esi
	movq	%r8, %rdi
	callq	_to_ctx
	andq	$-4096, %r14                    ## imm = 0xF000
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	orq	(%rax), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r14,%r15), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_iommu_writel
	addq	%r12, %r15
	cmpq	%r15, %r13
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	(%r8), %eax
	addq	%r15, %r14
	cmpq	%rax, %rcx
	jb	LBB0_5
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_SMMU_CB_S1_TLBIVAL,4,2     ## @ARM_SMMU_CB_S1_TLBIVAL
	.comm	_ARM_SMMU_CB_S1_TLBIVA,4,2      ## @ARM_SMMU_CB_S1_TLBIVA
	.no_dead_strip	_qcom_iommu_tlb_inv_range_nosync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_iommu_tlb_inv_range_nosync
_qcom_iommu_tlb_inv_range_nosync:       ; @qcom_iommu_tlb_inv_range_nosync
	.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
	cmp	w3, #0
Lloh0:
	adrp	x8, _ARM_SMMU_CB_S1_TLBIVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM_SMMU_CB_S1_TLBIVAL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ARM_SMMU_CB_S1_TLBIVA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ARM_SMMU_CB_S1_TLBIVA@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w9, [x4]
	cbz	w9, LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	mov	x25, #0
	ldr	w22, [x8]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x19
	bl	_to_ctx
	mov	x24, x0
	mov	x26, #0
	and	x8, x23, #0xfffffffffffff000
	ldr	x9, [x0]
	orr	x23, x9, x8
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x2, x23, x26
	mov	x0, x24
	mov	x1, x22
	bl	_iommu_writel
	add	x26, x26, x20
	cmp	x21, x26
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	ldr	w8, [x19]
	add	x23, x23, x26
	cmp	x25, x8
	b.lo	LBB0_2
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_SMMU_CB_S1_TLBIVAL,4,2     ; @ARM_SMMU_CB_S1_TLBIVAL
	.comm	_ARM_SMMU_CB_S1_TLBIVA,4,2      ; @ARM_SMMU_CB_S1_TLBIVA
	.no_dead_strip	_qcom_iommu_tlb_inv_range_nosync
.subsections_via_symbols
