	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goya_print_mmu_error_info
_goya_print_mmu_error_info:             ## @goya_print_mmu_error_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rax
	movq	_HW_CAP_MMU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_mmMMU_PAGE_ERROR_CAPTURE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	movq	_MMU_PAGE_ERROR_CAPTURE_ENTRY_VALID_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	_mmMMU_PAGE_ERROR_CAPTURE_VA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	(%r14), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_CAP_MMU,4,2                 ## @HW_CAP_MMU
	.comm	_mmMMU_PAGE_ERROR_CAPTURE,4,2   ## @mmMMU_PAGE_ERROR_CAPTURE
	.comm	_MMU_PAGE_ERROR_CAPTURE_ENTRY_VALID_MASK,4,2 ## @MMU_PAGE_ERROR_CAPTURE_ENTRY_VALID_MASK
	.comm	_MMU_PAGE_ERROR_CAPTURE_VA_49_32_MASK,4,2 ## @MMU_PAGE_ERROR_CAPTURE_VA_49_32_MASK
	.comm	_mmMMU_PAGE_ERROR_CAPTURE_VA,4,2 ## @mmMMU_PAGE_ERROR_CAPTURE_VA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MMU page fault on va 0x%llx\n"

	.no_dead_strip	_goya_print_mmu_error_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goya_print_mmu_error_info
_goya_print_mmu_error_info:             ; @goya_print_mmu_error_info
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _HW_CAP_MMU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_CAP_MMU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _mmMMU_PAGE_ERROR_CAPTURE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _mmMMU_PAGE_ERROR_CAPTURE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
Lloh5:
	adrp	x8, _MMU_PAGE_ERROR_CAPTURE_ENTRY_VALID_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMU_PAGE_ERROR_CAPTURE_ENTRY_VALID_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _mmMMU_PAGE_ERROR_CAPTURE_VA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmMMU_PAGE_ERROR_CAPTURE_VA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_RREG32
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x20]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_CAP_MMU,4,2                 ; @HW_CAP_MMU
	.comm	_mmMMU_PAGE_ERROR_CAPTURE,4,2   ; @mmMMU_PAGE_ERROR_CAPTURE
	.comm	_MMU_PAGE_ERROR_CAPTURE_ENTRY_VALID_MASK,4,2 ; @MMU_PAGE_ERROR_CAPTURE_ENTRY_VALID_MASK
	.comm	_MMU_PAGE_ERROR_CAPTURE_VA_49_32_MASK,4,2 ; @MMU_PAGE_ERROR_CAPTURE_VA_49_32_MASK
	.comm	_mmMMU_PAGE_ERROR_CAPTURE_VA,4,2 ; @mmMMU_PAGE_ERROR_CAPTURE_VA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MMU page fault on va 0x%llx\n"

	.no_dead_strip	_goya_print_mmu_error_info
.subsections_via_symbols
