	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v7_0_compute_queue_init
_gfx_v7_0_compute_queue_init:           ## @gfx_v7_0_compute_queue_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r12
	movslq	%esi, %rbx
	shlq	$4, %rbx
	leaq	(%r12,%rbx), %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AMDGPU_GEM_DOMAIN_GTT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-44(%rbp), %r9
	movl	$4, %esi
	movq	%r14, %r8
	callq	_amdgpu_bo_create_reserved
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	12(%r12,%rbx), %esi
	movl	4(%r12,%rbx), %ecx
	movl	8(%r12,%rbx), %edx
	movq	%r13, %rdi
	xorl	%r8d, %r8d
	callq	_cik_srbm_select
	movq	-56(%rbp), %rsi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movq	%r14, %rcx
	callq	_gfx_v7_0_mqd_init
	movq	%r13, %rdi
	callq	_gfx_v7_0_mqd_deactivate
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_gfx_v7_0_mqd_commit
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_cik_srbm_select
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	(%r14), %edi
	callq	_amdgpu_bo_kunmap
	movl	(%r14), %edi
	callq	_amdgpu_bo_unreserve
LBB0_3:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_GTT,4,2      ## @AMDGPU_GEM_DOMAIN_GTT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) create MQD bo failed\n"

	.no_dead_strip	_gfx_v7_0_compute_queue_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_queue_init
_gfx_v7_0_compute_queue_init:           ; @gfx_v7_0_compute_queue_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	add	x19, x23, w1, sxtw #4
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _AMDGPU_GEM_DOMAIN_GTT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMDGPU_GEM_DOMAIN_GTT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x5, sp, #12
	mov	x6, sp
	mov	w1, #4
	mov	x4, x19
	bl	_amdgpu_bo_create_reserved
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
	b	LBB0_3
LBB0_2:
	sxtw	x22, w22
	mov	x0, x21
	bl	_mutex_lock
	add	x8, x23, x22, lsl #4
	ldp	w2, w1, [x8, #8]
	ldr	w3, [x8, #4]
	mov	x0, x21
	mov	w4, #0
	bl	_cik_srbm_select
	ldr	x1, [sp]
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	x3, x19
	bl	_gfx_v7_0_mqd_init
	mov	x0, x21
	bl	_gfx_v7_0_mqd_deactivate
	ldr	x1, [sp]
	mov	x0, x21
	bl	_gfx_v7_0_mqd_commit
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_cik_srbm_select
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x19]
	bl	_amdgpu_bo_kunmap
	ldr	w0, [x19]
	bl	_amdgpu_bo_unreserve
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_GTT,4,2      ; @AMDGPU_GEM_DOMAIN_GTT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) create MQD bo failed\n"

	.no_dead_strip	_gfx_v7_0_compute_queue_init
.subsections_via_symbols
