	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v7_0_cp_compute_resume
_gfx_v7_0_cp_compute_resume:            ## @gfx_v7_0_cp_compute_resume
	.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	%rdi, %r14
	movq	_mmCP_CPF_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
	orl	$8388608, %eax                  ## imm = 0x800000
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_WREG32
	movl	16(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.1:
	movl	20(%r14), %eax
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpl	%ecx, %r15d
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_gfx_v7_0_compute_pipe_init
	incl	%ebx
	movl	20(%r14), %eax
	cmpl	%eax, %ebx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r14), %ecx
	jmp	LBB0_6
LBB0_7:
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_gfx_v7_0_compute_queue_init
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_10
LBB0_12:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_gfx_v7_0_cp_compute_enable
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.14:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%r12, %rdi
	callq	_amdgpu_ring_test_helper
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_15
	jmp	LBB0_16
LBB0_11:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_gfx_v7_0_cp_compute_fini
	jmp	LBB0_16
LBB0_13:
	xorl	%r15d, %r15d
LBB0_16:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCP_CPF_DEBUG,4,2             ## @mmCP_CPF_DEBUG
	.no_dead_strip	_gfx_v7_0_cp_compute_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v7_0_cp_compute_resume
_gfx_v7_0_cp_compute_resume:            ; @gfx_v7_0_cp_compute_resume
	.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	x19, x0
Lloh0:
	adrp	x20, _mmCP_CPF_DEBUG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mmCP_CPF_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
	orr	w1, w0, #0x800000
	ldr	w0, [x20]
	bl	_WREG32
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w20, #0
	ldr	w8, [x19, #20]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	cmp	w20, w9
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_gfx_v7_0_compute_pipe_init
	add	w21, w21, #1
	ldr	w8, [x19, #20]
	cmp	w21, w8
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #16]
	b	LBB0_2
LBB0_7:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	w20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_gfx_v7_0_compute_queue_init
	cbnz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_9
LBB0_11:
	mov	x0, x19
	mov	w1, #1
	bl	_gfx_v7_0_cp_compute_enable
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x20, #0
	mov	x21, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_amdgpu_ring_test_helper
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_13
LBB0_14:
	mov	w21, #0
	b	LBB0_16
LBB0_15:
	mov	x21, x0
	mov	x0, x19
	bl	_gfx_v7_0_cp_compute_fini
LBB0_16:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCP_CPF_DEBUG,4,2             ; @mmCP_CPF_DEBUG
	.no_dead_strip	_gfx_v7_0_cp_compute_resume
.subsections_via_symbols
