	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_kms_mmu_init
__dpu_kms_mmu_init:                     ## @_dpu_kms_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, %r14
	movq	_platform_bus_type@GOTPCREL(%rip), %rdi
	callq	_iommu_domain_alloc
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movabsq	$-4294963200, %rax              ## imm = 0xFFFFFFFF00001000
	movq	%rax, (%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rsi
	callq	_msm_gem_address_space_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rbx, %rdi
	callq	_iommu_domain_free
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	(%r12), %r13
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_iommu_ports@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DPU_ERROR
	movq	%r12, %rdi
	callq	_msm_gem_address_space_put
	movl	%ebx, %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%r12, (%r14)
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_platform_bus_type,4,2          ## @platform_bus_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dpu1"

	.comm	_iommu_ports,4,2                ## @iommu_ports
L_.str.1:                               ## @.str.1
	.asciz	"failed to attach iommu %d\n"

	.no_dead_strip	__dpu_kms_mmu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function _dpu_kms_mmu_init
lCPI0_0:
	.long	4096                            ; 0x1000
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
__dpu_kms_mmu_init:                     ; @_dpu_kms_mmu_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _platform_bus_type@GOTPAGE
Lloh1:
	ldr	x0, [x0, _platform_bus_type@GOTPAGEOFF]
	bl	_iommu_domain_alloc
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	bl	_msm_gem_address_space_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_iommu_domain_free
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	ldr	x21, [x20]
	ldr	x8, [x21]
	ldr	x23, [x8]
Lloh6:
	adrp	x8, _iommu_ports@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iommu_ports@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	blr	x23
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_DPU_ERROR
	mov	x0, x20
	bl	_msm_gem_address_space_put
	b	LBB0_6
LBB0_5:
	str	x20, [x19]
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_platform_bus_type,4,2          ; @platform_bus_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dpu1"

	.comm	_iommu_ports,4,2                ; @iommu_ports
l_.str.1:                               ; @.str.1
	.asciz	"failed to attach iommu %d\n"

	.no_dead_strip	__dpu_kms_mmu_init
.subsections_via_symbols
