	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_mqd_hiq
_update_mqd_hiq:                        ## @update_mqd_hiq
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	callq	_get_mqd
	movq	_DEFAULT_RPTR_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movq	_DEFAULT_MIN_AVAIL_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_PRIV_STATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_KMD_QUEUE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	%rax, %r14
	movl	%edx, (%rax)
	movl	(%rbx), %eax
	leal	3(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$2, %edi
	callq	_order_base_2
	decl	%eax
	orl	%eax, (%r14)
	movl	24(%rbx), %edi
	sarl	$8, %edi
	callq	_lower_32_bits
	movq	%rax, 40(%r14)
	movl	24(%rbx), %edi
	sarl	$8, %edi
	callq	_upper_32_bits
	movq	%rax, 32(%r14)
	movl	16(%rbx), %edi
	callq	_lower_32_bits
	movq	%rax, 24(%r14)
	movl	16(%rbx), %edi
	callq	_upper_32_bits
	movq	%rax, 16(%r14)
	movl	12(%rbx), %edi
	callq	_DOORBELL_OFFSET
	movl	%eax, 8(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 4(%r14)
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_QUEUE_IS_ACTIVE
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_set_priority                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_RPTR_BLOCK_SIZE,4,2    ## @DEFAULT_RPTR_BLOCK_SIZE
	.comm	_DEFAULT_MIN_AVAIL_SIZE,4,2     ## @DEFAULT_MIN_AVAIL_SIZE
	.comm	_PRIV_STATE,4,2                 ## @PRIV_STATE
	.comm	_KMD_QUEUE,4,2                  ## @KMD_QUEUE
	.no_dead_strip	_update_mqd_hiq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_mqd_hiq
_update_mqd_hiq:                        ; @update_mqd_hiq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x2
	mov	x0, x1
	bl	_get_mqd
	mov	x20, x0
Lloh0:
	adrp	x8, _DEFAULT_RPTR_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_RPTR_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DEFAULT_MIN_AVAIL_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEFAULT_MIN_AVAIL_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _PRIV_STATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PRIV_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _KMD_QUEUE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KMD_QUEUE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0]
	ldr	w8, [x19]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	bl	_order_base_2
	sub	w8, w0, #1
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w8, [x19, #24]
	asr	w0, w8, #8
	bl	_lower_32_bits
	str	x0, [x20, #40]
	ldr	w8, [x19, #24]
	asr	w0, w8, #8
	bl	_upper_32_bits
	str	x0, [x20, #32]
	ldr	w0, [x19, #16]
	bl	_lower_32_bits
	str	x0, [x20, #24]
	ldr	w0, [x19, #16]
	bl	_upper_32_bits
	str	x0, [x20, #16]
	ldr	w0, [x19, #12]
	bl	_DOORBELL_OFFSET
	str	w0, [x20, #8]
	ldr	w8, [x19, #8]
	str	w8, [x20, #4]
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_QUEUE_IS_ACTIVE
	str	w0, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_set_priority
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_RPTR_BLOCK_SIZE,4,2    ; @DEFAULT_RPTR_BLOCK_SIZE
	.comm	_DEFAULT_MIN_AVAIL_SIZE,4,2     ; @DEFAULT_MIN_AVAIL_SIZE
	.comm	_PRIV_STATE,4,2                 ; @PRIV_STATE
	.comm	_KMD_QUEUE,4,2                  ; @KMD_QUEUE
	.no_dead_strip	_update_mqd_hiq
.subsections_via_symbols
