	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_mmu_init                  ## -- Begin function lima_mmu_init
	.p2align	4, 0x90
_lima_mmu_init:                         ## @lima_mmu_init
	.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
	movq	(%rdi), %rax
	movq	_lima_ip_ppmmu_bcast@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movq	_LIMA_MMU_DTE_ADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$-889275714, %esi               ## imm = 0xCAFEBABE
	callq	_mmu_write
	movl	(%r12), %edi
	callq	_mmu_read
	cmpl	$-889278464, %eax               ## imm = 0xCAFEB000
	jne	LBB0_2
## %bb.3:
	movq	_LIMA_MMU_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LIMA_MMU_COMMAND_HARD_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_mmu_write
	movl	(%rbx), %edi
	movl	(%r12), %esi
	xorl	%ecx, %ecx
	callq	_lima_mmu_send_command
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	8(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_lima_mmu_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_lima_ip_name
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	movl	8(%r15), %r15d
	movq	%r14, %rdi
	callq	_lima_ip_name
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_2:
	movl	8(%r15), %ebx
	movq	%r14, %rdi
	callq	_lima_ip_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_LIMA_MMU_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LIMA_MMU_INT_PAGE_FAULT@GOTPCREL(%rip), %rax
	movq	_LIMA_MMU_INT_READ_BUS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_mmu_write
	movl	(%r12), %edi
	movq	(%r15), %rax
	movl	(%rax), %esi
	callq	_mmu_write
	movq	_LIMA_MMU_COMMAND_ENABLE_PAGING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LIMA_MMU_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lima_mmu_send_command          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lima_ip_ppmmu_bcast,8,3        ## @lima_ip_ppmmu_bcast
	.comm	_LIMA_MMU_DTE_ADDR,4,2          ## @LIMA_MMU_DTE_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmu %s dte write test fail\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_LIMA_MMU_COMMAND,4,2           ## @LIMA_MMU_COMMAND
	.comm	_LIMA_MMU_COMMAND_HARD_RESET,4,2 ## @LIMA_MMU_COMMAND_HARD_RESET
	.comm	_lima_mmu_irq_handler,4,2       ## @lima_mmu_irq_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"mmu %s fail to request irq\n"

	.comm	_LIMA_MMU_INT_MASK,4,2          ## @LIMA_MMU_INT_MASK
	.comm	_LIMA_MMU_INT_PAGE_FAULT,4,2    ## @LIMA_MMU_INT_PAGE_FAULT
	.comm	_LIMA_MMU_INT_READ_BUS_ERROR,4,2 ## @LIMA_MMU_INT_READ_BUS_ERROR
	.comm	_LIMA_MMU_COMMAND_ENABLE_PAGING,4,2 ## @LIMA_MMU_COMMAND_ENABLE_PAGING
	.comm	_LIMA_MMU_STATUS,4,2            ## @LIMA_MMU_STATUS
	.comm	_LIMA_MMU_STATUS_PAGING_ENABLED,4,2 ## @LIMA_MMU_STATUS_PAGING_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_mmu_init                  ; -- Begin function lima_mmu_init
	.p2align	2
_lima_mmu_init:                         ; @lima_mmu_init
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _lima_ip_ppmmu_bcast@GOTPAGE
Lloh1:
	ldr	x9, [x9, _lima_ip_ppmmu_bcast@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	ldr	x24, [x0, #16]
Lloh3:
	adrp	x25, _LIMA_MMU_DTE_ADDR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _LIMA_MMU_DTE_ADDR@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	w8, #2750
	mov	w20, #45056
	movk	w20, #51966, lsl #16
	orr	w1, w20, w8
	bl	_mmu_write
	ldr	w0, [x25]
	bl	_mmu_read
	cmp	w0, w20
	b.ne	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _LIMA_MMU_COMMAND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIMA_MMU_COMMAND@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x20, _LIMA_MMU_COMMAND_HARD_RESET@GOTPAGE
Lloh9:
	ldr	x20, [x20, _LIMA_MMU_COMMAND_HARD_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_mmu_write
	ldr	w0, [x20]
	ldr	w1, [x25]
	mov	w3, #0
	bl	_lima_mmu_send_command
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w20, [x24, #8]
	ldr	w21, [x19, #8]
Lloh10:
	adrp	x8, _lima_mmu_irq_handler@GOTPAGE
Lloh11:
	ldr	x8, [x8, _lima_mmu_irq_handler@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
Lloh13:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_lima_ip_name
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	w21, [x24, #8]
	mov	x0, x19
	bl	_lima_ip_name
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	ldr	w20, [x24, #8]
	mov	x0, x19
	bl	_lima_ip_name
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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
LBB0_8:
Lloh23:
	adrp	x8, _LIMA_MMU_INT_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LIMA_MMU_INT_MASK@GOTPAGEOFF]
Lloh25:
	adrp	x9, _LIMA_MMU_INT_PAGE_FAULT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _LIMA_MMU_INT_PAGE_FAULT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	ldr	w8, [x9]
Lloh29:
	adrp	x9, _LIMA_MMU_INT_READ_BUS_ERROR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _LIMA_MMU_INT_READ_BUS_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_mmu_write
	ldr	w0, [x25]
	ldr	x8, [x24]
	ldr	w1, [x8]
	bl	_mmu_write
Lloh32:
	adrp	x8, _LIMA_MMU_COMMAND_ENABLE_PAGING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LIMA_MMU_COMMAND_ENABLE_PAGING@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _LIMA_MMU_STATUS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LIMA_MMU_STATUS@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w3, #0
	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	_lima_mmu_send_command
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_lima_ip_ppmmu_bcast,8,3        ; @lima_ip_ppmmu_bcast
	.comm	_LIMA_MMU_DTE_ADDR,4,2          ; @LIMA_MMU_DTE_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmu %s dte write test fail\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_LIMA_MMU_COMMAND,4,2           ; @LIMA_MMU_COMMAND
	.comm	_LIMA_MMU_COMMAND_HARD_RESET,4,2 ; @LIMA_MMU_COMMAND_HARD_RESET
	.comm	_lima_mmu_irq_handler,4,2       ; @lima_mmu_irq_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"mmu %s fail to request irq\n"

	.comm	_LIMA_MMU_INT_MASK,4,2          ; @LIMA_MMU_INT_MASK
	.comm	_LIMA_MMU_INT_PAGE_FAULT,4,2    ; @LIMA_MMU_INT_PAGE_FAULT
	.comm	_LIMA_MMU_INT_READ_BUS_ERROR,4,2 ; @LIMA_MMU_INT_READ_BUS_ERROR
	.comm	_LIMA_MMU_COMMAND_ENABLE_PAGING,4,2 ; @LIMA_MMU_COMMAND_ENABLE_PAGING
	.comm	_LIMA_MMU_STATUS,4,2            ; @LIMA_MMU_STATUS
	.comm	_LIMA_MMU_STATUS_PAGING_ENABLED,4,2 ; @LIMA_MMU_STATUS_PAGING_ENABLED
.subsections_via_symbols
