	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_mqd
_init_mqd:                              ## @init_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	%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	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	8(%rdx), %rbx
	movl	(%rdx), %r13d
	movl	$48, %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ALIGN
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movabsq	$7519406080, %rax               ## imm = 0x1C0310800
	movq	%rax, (%rbx)
	pcmpeqd	%xmm0, %xmm0
	movdqu	%xmm0, 8(%rbx)
	movq	_DEFAULT_CP_HQD_PERSISTENT_STATE@GOTPCREL(%rip), %rax
	movq	_PRELOAD_REQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	_MQD_CONTROL_PRIV_STATE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	%r13d, %edi
	callq	_lower_32_bits
	movl	%eax, 40(%rbx)
	movl	%r13d, %edi
	callq	_upper_32_bits
	movl	%eax, 36(%rbx)
	movq	_QUANTUM_EN@GOTPCREL(%rip), %rax
	movq	_QUANTUM_SCALE_1MS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movl	$10, %edi
	callq	_QUANTUM_DURATION
	orl	%r12d, %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_priority
	movq	(%r14), %rax
	movq	_KFD_QUEUE_FORMAT_AQL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_AQL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r13d, (%rax)
LBB0_4:
	movq	(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_CP_HQD_PERSISTENT_STATE,4,2 ## @DEFAULT_CP_HQD_PERSISTENT_STATE
	.comm	_PRELOAD_REQ,4,2                ## @PRELOAD_REQ
	.comm	_MQD_CONTROL_PRIV_STATE_EN,4,2  ## @MQD_CONTROL_PRIV_STATE_EN
	.comm	_QUANTUM_EN,4,2                 ## @QUANTUM_EN
	.comm	_QUANTUM_SCALE_1MS,4,2          ## @QUANTUM_SCALE_1MS
	.comm	_KFD_QUEUE_FORMAT_AQL,8,3       ## @KFD_QUEUE_FORMAT_AQL
	.comm	_AQL_ENABLE,4,2                 ## @AQL_ENABLE
	.no_dead_strip	_init_mqd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function init_mqd
lCPI0_0:
	.long	3224438784                      ; 0xc0310800
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_init_mqd:                              ; @init_mqd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x22, x3
	mov	x24, x1
	mov	x21, x0
	ldr	x20, [x2, #8]
	ldr	w23, [x2]
	mov	w0, #48
	mov	w1, #256
	bl	_ALIGN
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	mov	x8, #-1
	stp	x8, x8, [x20, #8]
Lloh2:
	adrp	x8, _DEFAULT_CP_HQD_PERSISTENT_STATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEFAULT_CP_HQD_PERSISTENT_STATE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PRELOAD_REQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PRELOAD_REQ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #24]
Lloh8:
	adrp	x8, _MQD_CONTROL_PRIV_STATE_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MQD_CONTROL_PRIV_STATE_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #44]
	mov	x0, x23
	bl	_lower_32_bits
	str	w0, [x20, #40]
	mov	x0, x23
	bl	_upper_32_bits
Lloh11:
	adrp	x8, _QUANTUM_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QUANTUM_EN@GOTPAGEOFF]
	str	w0, [x20, #36]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _QUANTUM_SCALE_1MS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QUANTUM_SCALE_1MS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w25, w9, w8
	mov	w0, #10
	bl	_QUANTUM_DURATION
	orr	w8, w25, w0
	str	w8, [x20, #28]
	mov	x0, x20
	mov	x1, x19
	bl	_set_priority
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _KFD_QUEUE_FORMAT_AQL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _KFD_QUEUE_FORMAT_AQL@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh20:
	adrp	x8, _AQL_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AQL_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20, #32]
LBB0_2:
	str	x20, [x24]
	cbz	x22, LBB0_4
; %bb.3:
	str	w23, [x22]
LBB0_4:
	ldr	x3, [x21]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x3
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_CP_HQD_PERSISTENT_STATE,4,2 ; @DEFAULT_CP_HQD_PERSISTENT_STATE
	.comm	_PRELOAD_REQ,4,2                ; @PRELOAD_REQ
	.comm	_MQD_CONTROL_PRIV_STATE_EN,4,2  ; @MQD_CONTROL_PRIV_STATE_EN
	.comm	_QUANTUM_EN,4,2                 ; @QUANTUM_EN
	.comm	_QUANTUM_SCALE_1MS,4,2          ; @QUANTUM_SCALE_1MS
	.comm	_KFD_QUEUE_FORMAT_AQL,8,3       ; @KFD_QUEUE_FORMAT_AQL
	.comm	_AQL_ENABLE,4,2                 ; @AQL_ENABLE
	.no_dead_strip	_init_mqd
.subsections_via_symbols
