	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gpummu_new                 ## -- Begin function msm_gpummu_new
	.p2align	4, 0x90
_msm_gpummu_new:                        ## @msm_gpummu_new
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_TABLE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$32, %rsi
	movq	%rbx, %rdx
	addq	$20, %rdx
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r12), %ecx
	movq	_DMA_ATTR_FORCE_CONTIGUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	callq	_dma_alloc_attrs
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r15, 8(%rbx)
	movq	_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_msm_mmu_init
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TABLE_SIZE,8,3                 ## @TABLE_SIZE
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_DMA_ATTR_FORCE_CONTIGUOUS,4,2  ## @DMA_ATTR_FORCE_CONTIGUOUS
	.comm	_funcs,4,2                      ## @funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gpummu_new                 ; -- Begin function msm_gpummu_new
	.p2align	2
_msm_gpummu_new:                        ; @msm_gpummu_new
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _TABLE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TABLE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x1, x8, #32
	add	x2, x0, #20
Lloh5:
	adrp	x8, ___GFP_ZERO@GOTPAGE
Lloh6:
	ldr	x8, [x8, ___GFP_ZERO@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh7:
	ldr	w8, [x8]
	orr	w3, w8, w9
Lloh8:
	adrp	x8, _DMA_ATTR_FORCE_CONTIGUOUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_ATTR_FORCE_CONTIGUOUS@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_dma_alloc_attrs
	str	w0, [x20, #16]
	cbz	w0, LBB0_3
; %bb.2:
	str	x21, [x20, #8]
Lloh11:
	adrp	x2, _funcs@GOTPAGE
Lloh12:
	ldr	x2, [x2, _funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_msm_mmu_init
	mov	x0, x20
	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
LBB0_3:
	mov	x0, x20
	bl	_kfree
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TABLE_SIZE,8,3                 ; @TABLE_SIZE
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_DMA_ATTR_FORCE_CONTIGUOUS,4,2  ; @DMA_ATTR_FORCE_CONTIGUOUS
	.comm	_funcs,4,2                      ; @funcs
.subsections_via_symbols
