	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_mmu500_reset
_arm_mmu500_reset:                      ## @arm_mmu500_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ARM_SMMU_GR0_ID7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_arm_smmu_gr0_read
	movq	_ID7_MAJOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_FIELD_GET
	movl	%eax, %ebx
	movq	_ARM_SMMU_GR0_sACR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_arm_smmu_gr0_read
	cmpl	$2, %ebx
	movq	_ARM_MMU500_ACR_CACHE_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movl	$-1, %esi
	cmovgel	%ecx, %esi
	andl	%eax, %esi
	movq	_ARM_MMU500_ACR_SMTNMB_TLBEN@GOTPCREL(%rip), %rax
	movq	_ARM_MMU500_ACR_S2CRB_TLBEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	%esi, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_arm_smmu_gr0_write
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_ARM_SMMU_CB_ACTLR@GOTPCREL(%rip), %r15
	movq	_ARM_MMU500_ACTLR_CPRE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_arm_smmu_cb_read
	movl	(%r12), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_arm_smmu_cb_write
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_SMMU_GR0_ID7,4,2           ## @ARM_SMMU_GR0_ID7
	.comm	_ID7_MAJOR,4,2                  ## @ID7_MAJOR
	.comm	_ARM_SMMU_GR0_sACR,4,2          ## @ARM_SMMU_GR0_sACR
	.comm	_ARM_MMU500_ACR_CACHE_LOCK,4,2  ## @ARM_MMU500_ACR_CACHE_LOCK
	.comm	_ARM_MMU500_ACR_SMTNMB_TLBEN,4,2 ## @ARM_MMU500_ACR_SMTNMB_TLBEN
	.comm	_ARM_MMU500_ACR_S2CRB_TLBEN,4,2 ## @ARM_MMU500_ACR_S2CRB_TLBEN
	.comm	_ARM_SMMU_CB_ACTLR,4,2          ## @ARM_SMMU_CB_ACTLR
	.comm	_ARM_MMU500_ACTLR_CPRE,4,2      ## @ARM_MMU500_ACTLR_CPRE
	.no_dead_strip	_arm_mmu500_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_mmu500_reset
_arm_mmu500_reset:                      ; @arm_mmu500_reset
	.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	x19, x0
Lloh0:
	adrp	x8, _ARM_SMMU_GR0_ID7@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM_SMMU_GR0_ID7@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_arm_smmu_gr0_read
	mov	x1, x0
Lloh3:
	adrp	x8, _ID7_MAJOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ID7_MAJOR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FIELD_GET
	mov	x20, x0
Lloh6:
	adrp	x21, _ARM_SMMU_GR0_sACR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ARM_SMMU_GR0_sACR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_arm_smmu_gr0_read
Lloh8:
	adrp	x8, _ARM_MMU500_ACR_CACHE_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARM_MMU500_ACR_CACHE_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w20, #1
	mov	w9, #-1
	csinv	w8, w9, w8, le
	and	w8, w8, w0
Lloh11:
	adrp	x9, _ARM_MMU500_ACR_SMTNMB_TLBEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ARM_MMU500_ACR_SMTNMB_TLBEN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _ARM_MMU500_ACR_S2CRB_TLBEN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ARM_MMU500_ACR_S2CRB_TLBEN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_arm_smmu_gr0_write
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh17:
	adrp	x21, _ARM_SMMU_CB_ACTLR@GOTPAGE
Lloh18:
	ldr	x21, [x21, _ARM_SMMU_CB_ACTLR@GOTPAGEOFF]
Lloh19:
	adrp	x22, _ARM_MMU500_ACTLR_CPRE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _ARM_MMU500_ACTLR_CPRE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_arm_smmu_cb_read
	ldr	w8, [x22]
	bic	w3, w0, w8
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_arm_smmu_cb_write
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_SMMU_GR0_ID7,4,2           ; @ARM_SMMU_GR0_ID7
	.comm	_ID7_MAJOR,4,2                  ; @ID7_MAJOR
	.comm	_ARM_SMMU_GR0_sACR,4,2          ; @ARM_SMMU_GR0_sACR
	.comm	_ARM_MMU500_ACR_CACHE_LOCK,4,2  ; @ARM_MMU500_ACR_CACHE_LOCK
	.comm	_ARM_MMU500_ACR_SMTNMB_TLBEN,4,2 ; @ARM_MMU500_ACR_SMTNMB_TLBEN
	.comm	_ARM_MMU500_ACR_S2CRB_TLBEN,4,2 ; @ARM_MMU500_ACR_S2CRB_TLBEN
	.comm	_ARM_SMMU_CB_ACTLR,4,2          ; @ARM_SMMU_CB_ACTLR
	.comm	_ARM_MMU500_ACTLR_CPRE,4,2      ; @ARM_MMU500_ACTLR_CPRE
	.no_dead_strip	_arm_mmu500_reset
.subsections_via_symbols
