	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qc_set
_qc_set:                                ## @qc_set
	.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	%rdi, %rbx
	callq	_qc_reset
	movq	%rbx, %rdi
	movl	$11, %esi
	callq	_qc_command
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_qc_command
	movl	4(%rbx), %eax
	cltd
	idivl	8(%rbx)
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$17, %esi
	callq	_qc_command
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_qc_command
	movq	_QC_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%rbx), %eax
	movq	_QC_UNIDIR@GOTPCREL(%rip), %rdx
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edi
	cmpl	(%rdx), %eax
	jne	LBB0_3
## %bb.1:
	cmpl	$6, %ecx
	jne	LBB0_3
## %bb.2:
	movl	8(%rbx), %esi
	shll	$2, %esi
	jmp	LBB0_4
LBB0_3:
	imull	%ecx, %edi
	movq	_QC_BIDIR@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	sete	%sil
	shll	$4, %esi
	orl	$8, %esi
	imull	8(%rbx), %esi
LBB0_4:
	callq	_DIV_ROUND_UP
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$19, %esi
	callq	_qc_command
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_qc_command
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_qc_command
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	callq	_qc_command
	movq	%rbx, %rdi
	movl	$15, %esi
	callq	_qc_command
	movl	28(%rbx), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movq	%rbx, %rdi
	callq	_qc_command
	movq	%rbx, %rdi
	movl	$25, %esi
	callq	_qc_command
	movl	32(%rbx), %esi
	movq	%rbx, %rdi
	callq	_qc_command
	movq	%rbx, %rdi
	movl	$31, %esi
	callq	_qc_command
	movl	36(%rbx), %esi
	movq	%rbx, %rdi
	callq	_qc_command
	movq	_QC_PARAM_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 40(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QC_MODE_MASK,4,2               ## @QC_MODE_MASK
	.comm	_QC_UNIDIR,4,2                  ## @QC_UNIDIR
	.comm	_QC_BIDIR,4,2                   ## @QC_BIDIR
	.comm	_QC_PARAM_CHANGE,4,2            ## @QC_PARAM_CHANGE
	.no_dead_strip	_qc_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qc_set
_qc_set:                                ; @qc_set
	.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, x0
	bl	_qc_reset
	mov	x0, x19
	mov	w1, #11
	bl	_qc_command
	ldr	w1, [x19]
	mov	x0, x19
	bl	_qc_command
	ldp	w8, w9, [x19, #4]
	sdiv	w20, w8, w9
	mov	x0, x19
	mov	w1, #17
	bl	_qc_command
	mov	x0, x19
	mov	x1, x20
	bl	_qc_command
Lloh0:
	adrp	x8, _QC_MODE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QC_MODE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #12]
	and	w8, w8, w10
Lloh3:
	adrp	x10, _QC_UNIDIR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QC_UNIDIR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ldr	w0, [x19, #20]
	cmp	w8, w10
	ccmp	w9, #6, #0, eq
	b.eq	LBB0_2
; %bb.1:
	mul	w0, w9, w0
Lloh6:
	adrp	x9, _QC_BIDIR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QC_BIDIR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	w10, #8
	mov	w11, #24
	cmp	w8, w9
	csel	w8, w11, w10, eq
	ldr	w9, [x19, #8]
	mul	w1, w8, w9
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #8]
	lsl	w1, w8, #2
LBB0_3:
	bl	_DIV_ROUND_UP
	mov	x20, x0
	mov	x0, x19
	mov	w1, #19
	bl	_qc_command
	mov	x0, x19
	mov	x1, x20
	bl	_qc_command
	mov	x0, x19
	mov	w1, #13
	bl	_qc_command
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_qc_command
	mov	x0, x19
	mov	w1, #15
	bl	_qc_command
	ldr	w8, [x19, #28]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	mov	x0, x19
	bl	_qc_command
	mov	x0, x19
	mov	w1, #25
	bl	_qc_command
	ldr	w1, [x19, #32]
	mov	x0, x19
	bl	_qc_command
	mov	x0, x19
	mov	w1, #31
	bl	_qc_command
	ldr	w1, [x19, #36]
	mov	x0, x19
	bl	_qc_command
Lloh9:
	adrp	x8, _QC_PARAM_CHANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QC_PARAM_CHANGE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	bic	w8, w9, w8
	str	w8, [x19, #40]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QC_MODE_MASK,4,2               ; @QC_MODE_MASK
	.comm	_QC_UNIDIR,4,2                  ; @QC_UNIDIR
	.comm	_QC_BIDIR,4,2                   ; @QC_BIDIR
	.comm	_QC_PARAM_CHANGE,4,2            ; @QC_PARAM_CHANGE
	.no_dead_strip	_qc_set
.subsections_via_symbols
