	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a6xx_gpu_init                  ## -- Begin function a6xx_gpu_init
	.p2align	4, 0x90
_a6xx_gpu_init:                         ## @a6xx_gpu_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	$0, 16(%rax)
	movq	_a6xx_register_offsets@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_funcs@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	$1, %r8d
	callq	_adreno_gpu_init
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_a6xx_gmu_init
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_a6xx_destroy
	movl	%ebx, %edi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rax), %edi
	movq	_a6xx_fault_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_msm_mmu_set_fault_handler
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_a6xx_register_offsets,4,2      ## @a6xx_register_offsets
	.comm	_funcs,4,2                      ## @funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qcom,gmu"

	.comm	_a6xx_fault_handler,4,2         ## @a6xx_fault_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a6xx_gpu_init                  ; -- Begin function a6xx_gpu_init
	.p2align	2
_a6xx_gpu_init:                         ; @a6xx_gpu_init
	.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, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	xzr, [x0, #16]
Lloh3:
	adrp	x8, _a6xx_register_offsets@GOTPAGE
Lloh4:
	ldr	x8, [x8, _a6xx_register_offsets@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #8]
Lloh6:
	adrp	x3, _funcs@GOTPAGE
Lloh7:
	ldr	x3, [x3, _funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #1
	bl	_adreno_gpu_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_a6xx_destroy
	mov	x0, x21
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	mov	x1, x20
	bl	_a6xx_gmu_init
	cbz	w0, LBB0_7
; %bb.5:
	mov	x20, x0
	mov	x0, x19
	bl	_a6xx_destroy
	mov	x0, x20
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _a6xx_fault_handler@GOTPAGE
Lloh14:
	ldr	x8, [x8, _a6xx_fault_handler@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_msm_mmu_set_fault_handler
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_a6xx_register_offsets,4,2      ; @a6xx_register_offsets
	.comm	_funcs,4,2                      ; @funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qcom,gmu"

	.comm	_a6xx_fault_handler,4,2         ; @a6xx_fault_handler
.subsections_via_symbols
