	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_panfrost_mmu_init              ## -- Begin function panfrost_mmu_init
	.p2align	4, 0x90
_panfrost_mmu_init:                     ## @panfrost_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_platform_device
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_platform_get_irq_byname
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movq	_panfrost_mmu_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_panfrost_mmu_irq_handler_thread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	%r14, (%rsp)
	leaq	L_.str(%rip), %r9
	movl	%eax, %esi
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmu"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_panfrost_mmu_irq_handler,4,2   ## @panfrost_mmu_irq_handler
	.comm	_panfrost_mmu_irq_handler_thread,4,2 ## @panfrost_mmu_irq_handler_thread
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"failed to request mmu irq"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_panfrost_mmu_init              ; -- Begin function panfrost_mmu_init
	.p2align	2
_panfrost_mmu_init:                     ; @panfrost_mmu_init
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_platform_device
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_platform_get_irq_byname
	cmp	w0, #0
	b.le	LBB0_3
; %bb.1:
	mov	x1, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _panfrost_mmu_irq_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _panfrost_mmu_irq_handler@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _panfrost_mmu_irq_handler_thread@GOTPAGE
Lloh6:
	ldr	x8, [x8, _panfrost_mmu_irq_handler_thread@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x5, l_.str@PAGE
Lloh12:
	add	x5, x5, l_.str@PAGEOFF
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmu"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_panfrost_mmu_irq_handler,4,2   ; @panfrost_mmu_irq_handler
	.comm	_panfrost_mmu_irq_handler_thread,4,2 ; @panfrost_mmu_irq_handler_thread
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"failed to request mmu irq"

.subsections_via_symbols
