	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smmu_flush_ptc
_smmu_flush_ptc:                        ## @smmu_flush_ptc
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r12d
	cmpl	$33, 4(%rax)
	jl	LBB0_2
## %bb.1:
	movq	_SMMU_PTC_FLUSH_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_smmu_writel
LBB0_2:
	negl	%r12d
	movq	_SMMU_PTC_FLUSH_TYPE_ADR@GOTPCREL(%rip), %rax
	andl	%r12d, %ebx
	addl	%r15d, %ebx
	orl	(%rax), %ebx
	movq	_SMMU_PTC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smmu_writel                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMMU_PTC_FLUSH_HI,4,2          ## @SMMU_PTC_FLUSH_HI
	.comm	_SMMU_PTC_FLUSH_TYPE_ADR,4,2    ## @SMMU_PTC_FLUSH_TYPE_ADR
	.comm	_SMMU_PTC_FLUSH,4,2             ## @SMMU_PTC_FLUSH
	.comm	_SMMU_PTC_FLUSH_HI_MASK,4,2     ## @SMMU_PTC_FLUSH_HI_MASK
	.no_dead_strip	_smmu_flush_ptc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smmu_flush_ptc
_smmu_flush_ptc:                        ; @smmu_flush_ptc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	w22, w8, [x8]
	cmp	w8, #33
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SMMU_PTC_FLUSH_HI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMMU_PTC_FLUSH_HI@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_smmu_writel
LBB0_2:
Lloh3:
	adrp	x8, _SMMU_PTC_FLUSH_TYPE_ADR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMMU_PTC_FLUSH_TYPE_ADR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w9, w22
	and	w9, w9, w21
	add	w9, w9, w20
	orr	w1, w8, w9
Lloh6:
	adrp	x8, _SMMU_PTC_FLUSH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMMU_PTC_FLUSH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_smmu_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SMMU_PTC_FLUSH_HI,4,2          ; @SMMU_PTC_FLUSH_HI
	.comm	_SMMU_PTC_FLUSH_TYPE_ADR,4,2    ; @SMMU_PTC_FLUSH_TYPE_ADR
	.comm	_SMMU_PTC_FLUSH,4,2             ; @SMMU_PTC_FLUSH
	.comm	_SMMU_PTC_FLUSH_HI_MASK,4,2     ; @SMMU_PTC_FLUSH_HI_MASK
	.no_dead_strip	_smmu_flush_ptc
.subsections_via_symbols
