	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a6xx_cp_init
_a6xx_cp_init:                          ## @a6xx_cp_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, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_CP_ME_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_OUT_PKT7
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_OUT_RING
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_OUT_RING
	movq	%rbx, %rdi
	movl	$536870912, %esi                ## imm = 0x20000000
	callq	_OUT_RING
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_OUT_RING
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_OUT_RING
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_OUT_RING
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_OUT_RING
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_OUT_RING
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_a6xx_flush
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_a6xx_idle
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testq	%rax, %rax
	cmovnel	%r15d, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_ME_INIT,4,2                 ## @CP_ME_INIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_a6xx_cp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a6xx_cp_init
_a6xx_cp_init:                          ; @a6xx_cp_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	x8, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _CP_ME_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_ME_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #8
	bl	_OUT_PKT7
	mov	x0, x20
	mov	w1, #47
	bl	_OUT_RING
	mov	x0, x20
	mov	w1, #3
	bl	_OUT_RING
	mov	x0, x20
	mov	w1, #536870912
	bl	_OUT_RING
	mov	x0, x20
	mov	w1, #0
	bl	_OUT_RING
	mov	x0, x20
	mov	w1, #0
	bl	_OUT_RING
	mov	x0, x20
	mov	w1, #0
	bl	_OUT_RING
	mov	x0, x20
	mov	w1, #0
	bl	_OUT_RING
	mov	x0, x20
	mov	w1, #0
	bl	_OUT_RING
	mov	x0, x19
	mov	x1, x20
	bl	_a6xx_flush
	mov	x0, x19
	mov	x1, x20
	bl	_a6xx_idle
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_ME_INIT,4,2                 ; @CP_ME_INIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_a6xx_cp_init
.subsections_via_symbols
