	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v7_0_compute_pipe_init
_gfx_v7_0_compute_pipe_init:            ## @gfx_v7_0_compute_pipe_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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	4(%rdi), %ebx
	imull	%esi, %ebx
	addl	%edx, %ebx
	movq	_GFX7_MEC_HPD_SIZE@GOTPCREL(%rip), %r13
	imull	(%r13), %ebx
	addl	%ebx, %ebx
	callq	_mutex_lock
	addl	8(%r14), %ebx
	incl	%r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_cik_srbm_select
	movq	_mmCP_HPD_EOP_BASE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	sarl	$8, %esi
	callq	_WREG32
	movq	_mmCP_HPD_EOP_BASE_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_upper_32_bits
	sarl	$8, %eax
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmCP_HPD_EOP_VMID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_mmCP_HPD_EOP_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	movq	_CP_HPD_EOP_CONTROL__EOP_SIZE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r13), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	callq	_order_base_2
	orl	%eax, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_WREG32
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_cik_srbm_select
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFX7_MEC_HPD_SIZE,4,2          ## @GFX7_MEC_HPD_SIZE
	.comm	_mmCP_HPD_EOP_BASE_ADDR,4,2     ## @mmCP_HPD_EOP_BASE_ADDR
	.comm	_mmCP_HPD_EOP_BASE_ADDR_HI,4,2  ## @mmCP_HPD_EOP_BASE_ADDR_HI
	.comm	_mmCP_HPD_EOP_VMID,4,2          ## @mmCP_HPD_EOP_VMID
	.comm	_mmCP_HPD_EOP_CONTROL,4,2       ## @mmCP_HPD_EOP_CONTROL
	.comm	_CP_HPD_EOP_CONTROL__EOP_SIZE_MASK,4,2 ## @CP_HPD_EOP_CONTROL__EOP_SIZE_MASK
	.no_dead_strip	_gfx_v7_0_compute_pipe_init
.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_compute_pipe_init
_gfx_v7_0_compute_pipe_init:            ; @gfx_v7_0_compute_pipe_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0, #4]
	madd	w8, w8, w1, w2
Lloh0:
	adrp	x23, _GFX7_MEC_HPD_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFX7_MEC_HPD_SIZE@GOTPAGEOFF]
	ldr	w9, [x23]
	mul	w22, w9, w8
	bl	_mutex_lock
	ldr	w8, [x19, #8]
	add	w22, w8, w22, lsl #1
	add	w1, w21, #1
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	bl	_cik_srbm_select
Lloh2:
	adrp	x8, _mmCP_HPD_EOP_BASE_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmCP_HPD_EOP_BASE_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	asr	w1, w22, #8
	bl	_WREG32
Lloh5:
	adrp	x8, _mmCP_HPD_EOP_BASE_ADDR_HI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmCP_HPD_EOP_BASE_ADDR_HI@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	x0, x22
	bl	_upper_32_bits
	asr	w1, w0, #8
	mov	x0, x20
	bl	_WREG32
Lloh8:
	adrp	x8, _mmCP_HPD_EOP_VMID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmCP_HPD_EOP_VMID@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_WREG32
Lloh11:
	adrp	x20, _mmCP_HPD_EOP_CONTROL@GOTPAGE
Lloh12:
	ldr	x20, [x20, _mmCP_HPD_EOP_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
Lloh13:
	adrp	x8, _CP_HPD_EOP_CONTROL__EOP_SIZE_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CP_HPD_EOP_CONTROL__EOP_SIZE_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w21, w0, w8
	ldr	w8, [x23]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	bl	_order_base_2
	orr	w1, w0, w21
	ldr	w0, [x20]
	bl	_WREG32
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_cik_srbm_select
	mov	x0, x19
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFX7_MEC_HPD_SIZE,4,2          ; @GFX7_MEC_HPD_SIZE
	.comm	_mmCP_HPD_EOP_BASE_ADDR,4,2     ; @mmCP_HPD_EOP_BASE_ADDR
	.comm	_mmCP_HPD_EOP_BASE_ADDR_HI,4,2  ; @mmCP_HPD_EOP_BASE_ADDR_HI
	.comm	_mmCP_HPD_EOP_VMID,4,2          ; @mmCP_HPD_EOP_VMID
	.comm	_mmCP_HPD_EOP_CONTROL,4,2       ; @mmCP_HPD_EOP_CONTROL
	.comm	_CP_HPD_EOP_CONTROL__EOP_SIZE_MASK,4,2 ; @CP_HPD_EOP_CONTROL__EOP_SIZE_MASK
	.no_dead_strip	_gfx_v7_0_compute_pipe_init
.subsections_via_symbols
