	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_hiq_sdma_mqd
_allocate_hiq_sdma_mqd:                 ## @allocate_hiq_sdma_mqd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	_KFD_MQD_TYPE_SDMA@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %r8
	movq	8(%rcx), %rdx
	movl	(%rdx), %esi
	imull	(%r8), %esi
	imull	4(%rdx), %esi
	movq	_KFD_MQD_TYPE_HIQ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %rax
	addl	(%rax), %esi
	movl	(%rcx), %eax
	leaq	16(%rdi), %rdx
	leaq	8(%rdi), %r8
	leaq	12(%rdi), %rcx
	movl	%eax, %edi
	movl	$1, %r9d
	popq	%rbp
	jmp	_amdgpu_amdkfd_alloc_gtt_mem    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KFD_MQD_TYPE_SDMA,8,3          ## @KFD_MQD_TYPE_SDMA
	.comm	_KFD_MQD_TYPE_HIQ,8,3           ## @KFD_MQD_TYPE_HIQ
	.no_dead_strip	_allocate_hiq_sdma_mqd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_hiq_sdma_mqd
_allocate_hiq_sdma_mqd:                 ; @allocate_hiq_sdma_mqd
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _KFD_MQD_TYPE_SDMA@GOTPAGE
Lloh1:
	ldr	x10, [x10, _KFD_MQD_TYPE_SDMA@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x10, [x9, x10, lsl #3]
	ldr	w10, [x10]
	ldr	x11, [x8, #8]
	ldp	w12, w11, [x11]
	mul	w10, w12, w10
Lloh3:
	adrp	x12, _KFD_MQD_TYPE_HIQ@GOTPAGE
Lloh4:
	ldr	x12, [x12, _KFD_MQD_TYPE_HIQ@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	ldr	x9, [x9, x12, lsl #3]
	ldr	w9, [x9]
	madd	w1, w10, w11, w9
	ldr	w8, [x8]
	add	x2, x0, #16
	add	x4, x0, #8
	add	x3, x0, #12
	mov	x0, x8
	mov	w5, #1
	b	_amdgpu_amdkfd_alloc_gtt_mem
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KFD_MQD_TYPE_SDMA,8,3          ; @KFD_MQD_TYPE_SDMA
	.comm	_KFD_MQD_TYPE_HIQ,8,3           ; @KFD_MQD_TYPE_HIQ
	.no_dead_strip	_allocate_hiq_sdma_mqd
.subsections_via_symbols
