	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocate_sdma_mqd              ## -- Begin function allocate_sdma_mqd
	.p2align	4, 0x90
_allocate_sdma_mqd:                     ## @allocate_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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movslq	(%r14), %rdx
	movq	(%rbx), %rcx
	movq	8(%rbx), %rsi
	movslq	(%rsi), %rsi
	imulq	%rdx, %rsi
	movslq	4(%r14), %rdx
	addq	%rsi, %rdx
	movq	24(%rcx), %rsi
	movq	_KFD_MQD_TYPE_SDMA@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	(%rsi,%rdi,8), %rdi
	movslq	(%rdi), %rdi
	imulq	%rdx, %rdi
	movq	_KFD_MQD_TYPE_HIQ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rsi,%rdx,8), %rdx
	movslq	(%rdx), %rdx
	addq	%rdi, %rdx
	movl	16(%rcx), %esi
	addl	%edx, %esi
	movslq	%esi, %rsi
	movq	%rsi, 16(%rax)
	movq	%rdx, %rsi
	addq	8(%rcx), %rsi
	movq	%rsi, 8(%rax)
	movl	(%rcx), %ecx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, (%rax)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_KFD_MQD_TYPE_SDMA,8,3          ## @KFD_MQD_TYPE_SDMA
	.comm	_KFD_MQD_TYPE_HIQ,8,3           ## @KFD_MQD_TYPE_HIQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocate_sdma_mqd              ; -- Begin function allocate_sdma_mqd
	.p2align	2
_allocate_sdma_mqd:                     ; @allocate_sdma_mqd
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x9, x8, [x20]
	ldrsw	x8, [x8]
	ldpsw	x10, x11, [x19]
	madd	x8, x8, x10, x11
	ldr	x10, [x9, #24]
Lloh3:
	adrp	x11, _KFD_MQD_TYPE_SDMA@GOTPAGE
Lloh4:
	ldr	x11, [x11, _KFD_MQD_TYPE_SDMA@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	x11, [x10, x11, lsl #3]
	ldrsw	x11, [x11]
Lloh6:
	adrp	x12, _KFD_MQD_TYPE_HIQ@GOTPAGE
Lloh7:
	ldr	x12, [x12, _KFD_MQD_TYPE_HIQ@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	ldr	x10, [x10, x12, lsl #3]
	ldrsw	x10, [x10]
	madd	x8, x11, x8, x10
	ldr	w10, [x9, #16]
	add	w10, w8, w10
	sxtw	x10, w10
	str	x10, [x0, #16]
	ldr	x10, [x9, #8]
	add	x10, x10, x8
	ldr	w9, [x9]
	add	w8, w8, w9
	sxtw	x8, w8
	stp	x8, x10, [x0]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_KFD_MQD_TYPE_SDMA,8,3          ; @KFD_MQD_TYPE_SDMA
	.comm	_KFD_MQD_TYPE_HIQ,8,3           ; @KFD_MQD_TYPE_HIQ
.subsections_via_symbols
