	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __arm_smmu_tlb_sync
___arm_smmu_tlb_sync:                   ## @__arm_smmu_tlb_sync
	.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
	movl	%ecx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_QCOM_DUMMY_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_arm_smmu_writel
	movq	_TLB_LOOP_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jb	LBB0_6
## %bb.1:
	movl	$1, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	callq	_udelay
	addl	%r12d, %r12d
	movq	_TLB_LOOP_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jae	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	_TLB_SPIN_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_arm_smmu_readl
	movq	_sTLBGSTATUS_GSACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%eax, %eax
	callq	_cpu_relax
	decl	%r13d
	jne	LBB0_3
	jmp	LBB0_5
LBB0_6:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err_ratelimited            ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QCOM_DUMMY_VAL,4,2             ## @QCOM_DUMMY_VAL
	.comm	_TLB_LOOP_TIMEOUT,4,2           ## @TLB_LOOP_TIMEOUT
	.comm	_TLB_SPIN_COUNT,4,2             ## @TLB_SPIN_COUNT
	.comm	_sTLBGSTATUS_GSACTIVE,4,2       ## @sTLBGSTATUS_GSACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLB sync timed out -- SMMU may be deadlocked\n"

	.no_dead_strip	___arm_smmu_tlb_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __arm_smmu_tlb_sync
___arm_smmu_tlb_sync:                   ; @__arm_smmu_tlb_sync
	.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, x3
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _QCOM_DUMMY_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCOM_DUMMY_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_arm_smmu_writel
Lloh3:
	adrp	x23, _TLB_LOOP_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TLB_LOOP_TIMEOUT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.1:
	mov	w22, #1
Lloh5:
	adrp	x24, _TLB_SPIN_COUNT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _TLB_SPIN_COUNT@GOTPAGEOFF]
Lloh7:
	adrp	x25, _sTLBGSTATUS_GSACTIVE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _sTLBGSTATUS_GSACTIVE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_udelay
	lsl	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w26, [x24]
	cbz	w26, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_arm_smmu_readl
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	_cpu_relax
	subs	w26, w26, #1
	b.ne	LBB0_4
	b	LBB0_2
LBB0_6:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err_ratelimited
LBB0_7:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_QCOM_DUMMY_VAL,4,2             ; @QCOM_DUMMY_VAL
	.comm	_TLB_LOOP_TIMEOUT,4,2           ; @TLB_LOOP_TIMEOUT
	.comm	_TLB_SPIN_COUNT,4,2             ; @TLB_SPIN_COUNT
	.comm	_sTLBGSTATUS_GSACTIVE,4,2       ; @sTLBGSTATUS_GSACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLB sync timed out -- SMMU may be deadlocked\n"

	.no_dead_strip	___arm_smmu_tlb_sync
.subsections_via_symbols
