	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qm1d1c0042_set_params
_qm1d1c0042_set_params:                 ## @qm1d1c0042_set_params
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	movl	(%rdi), %r15d
	movq	(%r14), %rax
	movl	$240, %ecx
	andl	32(%rax), %ecx
	orl	$9, %ecx
	movl	%ecx, 32(%rax)
	movl	$159, %ecx
	andl	76(%rax), %ecx
	orl	$32, %ecx
	movl	%ecx, 76(%rax)
	movl	8(%rax), %edx
	andl	$15, %edx
	movq	_conv_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rsi
	movl	(%rsi), %ebx
	cmpl	(%rcx), %r15d
	jge	LBB0_3
## %bb.1:
	cmpl	%ebx, %r15d
	jge	LBB0_2
LBB0_3:
	movq	16(%rax), %r8
	movl	(%r8), %edi
	cmpl	%ebx, %r15d
	jge	LBB0_5
## %bb.4:
	movq	%rsi, %rcx
	cmpl	%edi, %r15d
	jge	LBB0_2
LBB0_5:
	movq	24(%rax), %rsi
	movl	(%rsi), %ebx
	cmpl	%edi, %r15d
	jge	LBB0_7
## %bb.6:
	movq	%r8, %rcx
	cmpl	%ebx, %r15d
	jge	LBB0_2
LBB0_7:
	movq	32(%rax), %r8
	movl	(%r8), %edi
	cmpl	%ebx, %r15d
	jge	LBB0_9
## %bb.8:
	movq	%rsi, %rcx
	cmpl	%edi, %r15d
	jge	LBB0_2
LBB0_9:
	movq	40(%rax), %rsi
	movl	(%rsi), %ebx
	cmpl	%edi, %r15d
	jge	LBB0_11
## %bb.10:
	movq	%r8, %rcx
	cmpl	%ebx, %r15d
	jge	LBB0_2
LBB0_11:
	movq	48(%rax), %r8
	movl	(%r8), %edi
	cmpl	%ebx, %r15d
	jge	LBB0_13
## %bb.12:
	movq	%rsi, %rcx
	cmpl	%edi, %r15d
	jge	LBB0_2
LBB0_13:
	movq	56(%rax), %rsi
	movl	(%rsi), %ebx
	cmpl	%edi, %r15d
	jge	LBB0_15
## %bb.14:
	movq	%r8, %rcx
	cmpl	%ebx, %r15d
	jl	LBB0_15
LBB0_2:
	movl	4(%rcx), %eax
	shll	$7, %eax
	orl	%edx, %eax
	movl	8(%rcx), %edx
	shll	$4, %edx
	orl	%eax, %edx
LBB0_17:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_38
## %bb.18:
	movl	8(%r14), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	movq	(%r14), %rax
	movl	24(%rax), %edx
	andl	$64, %edx
	leal	-12(%r12), %ecx
	leal	-9(%r12), %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	sarl	$2, %ebx
	orl	%ebx, %edx
	movl	%edx, 24(%rax)
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_38
## %bb.19:
	movq	(%r14), %rax
	movl	$240, %ecx
	andl	28(%rax), %ecx
	shll	$2, %ebx
	movl	%r12d, %edx
	subl	%ebx, %edx
	addl	$7, %edx
	andl	$15, %edx
	orl	%ecx, %edx
	movl	%edx, 28(%rax)
	movq	%r14, %rdi
	movl	$7, %esi
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_38
## %bb.20:
	movq	(%r14), %rax
	movl	32(%rax), %eax
	movl	%eax, %edx
	andl	$240, %edx
	orl	$2, %edx
	cmpq	$0, 16(%r14)
	cmovel	%eax, %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_38
## %bb.21:
	shll	$20, %r15d
	movl	8(%r14), %esi
	movl	%r15d, %edi
	callq	_div64_s64
	shll	$20, %r12d
	movslq	%r12d, %rcx
	subq	%rcx, %rax
	leal	4194304(%rax), %edx
	testq	%rax, %rax
	cmovnsl	%eax, %edx
	movq	(%r14), %rax
	movl	$192, %ecx
	andl	36(%rax), %ecx
	movzbl	%dh, %esi
	movzbl	%dl, %edi
	shrl	$16, %edx
	andl	$63, %edx
	orl	%ecx, %edx
	movl	%edx, 36(%rax)
	movl	%esi, 40(%rax)
	movl	%edi, 44(%rax)
	movq	%r14, %rdi
	movl	$9, %esi
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_38
## %bb.22:
	movq	(%r14), %rax
	movl	40(%rax), %edx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_38
## %bb.23:
	movq	(%r14), %rax
	movl	44(%rax), %edx
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_reg_write
	testl	%eax, %eax
	je	LBB0_24
LBB0_38:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	16(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_27
## %bb.25:
	movq	(%r14), %rax
	movl	76(%rax), %edx
	movq	%r14, %rdi
	movl	$19, %esi
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_38
## %bb.26:
	movq	16(%r14), %rax
LBB0_27:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	shll	$6, %ebx
	orl	$63, %ebx
	movq	(%r14), %rax
	movl	48(%rax), %edx
	andl	%ebx, %edx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_38
## %bb.28:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	movq	(%r14), %rax
	notl	%ebx
	orl	48(%rax), %ebx
	movq	%r14, %rdi
	movl	$12, %esi
	movl	%ebx, %edx
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_38
## %bb.29:
	cmpq	$0, 16(%r14)
	je	LBB0_31
## %bb.30:
	leaq	32(%r14), %rax
	jmp	LBB0_34
LBB0_15:
	cmpl	%ebx, %r15d
	jge	LBB0_17
## %bb.16:
	movq	64(%rax), %rax
	movq	%rsi, %rcx
	cmpl	(%rax), %r15d
	jge	LBB0_2
	jmp	LBB0_17
LBB0_31:
	movq	(%r14), %rax
	testb	$1, 12(%rax)
	jne	LBB0_32
## %bb.33:
	leaq	24(%r14), %rax
	jmp	LBB0_34
LBB0_32:
	leaq	28(%r14), %rax
LBB0_34:
	movl	(%rax), %edi
	callq	_msleep
	cmpq	$0, 16(%r14)
	je	LBB0_37
## %bb.35:
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$9, %edx
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_38
## %bb.36:
	movq	(%r14), %rax
	movl	76(%rax), %edx
	movq	%r14, %rdi
	movl	$19, %esi
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_38
LBB0_37:
	xorl	%eax, %eax
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_conv_table,8,3                 ## @conv_table
	.no_dead_strip	_qm1d1c0042_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qm1d1c0042_set_params
_qm1d1c0042_set_params:                 ; @qm1d1c0042_set_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0, #8]
	ldr	w20, [x0]
	ldr	x8, [x19]
	ldr	w9, [x8, #32]
	and	w9, w9, #0xf0
	mov	w10, #9
	orr	w9, w9, w10
	str	w9, [x8, #32]
	ldr	w9, [x8, #76]
	mov	w10, #159
	and	w9, w9, w10
	orr	w9, w9, #0x20
	str	w9, [x8, #76]
	ldr	w8, [x8, #8]
	and	w2, w8, #0xf
Lloh0:
	adrp	x8, _conv_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conv_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [x8]
	ldr	w11, [x9]
	ldr	w12, [x10]
	cmp	w20, w11
	ccmp	w20, w12, #8, lt
	b.ge	LBB0_9
; %bb.1:
	ldr	x11, [x8, #16]
	ldr	w13, [x11]
	cmp	w20, w12
	ccmp	w20, w13, #8, lt
	mov	x9, x10
	b.ge	LBB0_9
; %bb.2:
	ldr	x10, [x8, #24]
	ldr	w12, [x10]
	cmp	w20, w13
	ccmp	w20, w12, #8, lt
	mov	x9, x11
	b.ge	LBB0_9
; %bb.3:
	ldr	x11, [x8, #32]
	ldr	w13, [x11]
	cmp	w20, w12
	ccmp	w20, w13, #8, lt
	mov	x9, x10
	b.ge	LBB0_9
; %bb.4:
	ldr	x10, [x8, #40]
	ldr	w12, [x10]
	cmp	w20, w13
	ccmp	w20, w12, #8, lt
	mov	x9, x11
	b.ge	LBB0_9
; %bb.5:
	ldr	x11, [x8, #48]
	ldr	w13, [x11]
	cmp	w20, w12
	ccmp	w20, w13, #8, lt
	mov	x9, x10
	b.ge	LBB0_9
; %bb.6:
	ldr	x10, [x8, #56]
	ldr	w12, [x10]
	cmp	w20, w13
	ccmp	w20, w12, #8, lt
	mov	x9, x11
	b.ge	LBB0_9
; %bb.7:
	cmp	w20, w12
	b.ge	LBB0_10
; %bb.8:
	ldr	x8, [x8, #64]
	ldr	w8, [x8]
	mov	x9, x10
	cmp	w20, w8
	b.lt	LBB0_10
LBB0_9:
	ldp	w8, w9, [x9, #4]
	bfi	w2, w8, #7, #25
	orr	w2, w2, w9, lsl #4
LBB0_10:
	mov	x0, x19
	mov	w1, #2
	bl	_reg_write
	tbnz	w0, #31, LBB0_17
; %bb.11:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cinc	w9, w8, lt
	add	w9, w20, w9, asr #1
	sdiv	w21, w9, w8
	ldr	x8, [x19]
	ldr	w9, [x8, #24]
	and	w9, w9, #0x40
	sub	w10, w21, #12
	sub	w11, w21, #9
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w22, w10, #2
	orr	w2, w9, w22
	str	w2, [x8, #24]
	mov	x0, x19
	mov	w1, #6
	bl	_reg_write
	tbnz	w0, #31, LBB0_17
; %bb.12:
	ldr	x8, [x19]
	ldr	w9, [x8, #28]
	and	w2, w9, #0xf0
	sub	w9, w21, w22, lsl #2
	add	w9, w9, #7
	bfxil	w2, w9, #0, #4
	str	w2, [x8, #28]
	mov	x0, x19
	mov	w1, #7
	bl	_reg_write
	tbnz	w0, #31, LBB0_17
; %bb.13:
	ldr	x8, [x19]
	ldr	w8, [x8, #32]
	ldr	x9, [x19, #16]
	and	w10, w8, #0xf0
	orr	w10, w10, #0x2
	cmp	x9, #0
	csel	w2, w8, w10, eq
	mov	x0, x19
	mov	w1, #8
	bl	_reg_write
	tbnz	w0, #31, LBB0_17
; %bb.14:
	lsl	w0, w20, #20
	ldr	w1, [x19, #8]
	bl	_div64_s64
	lsl	w8, w21, #20
	sub	x8, x0, w8, sxtw
	add	w9, w8, #1024, lsl #12          ; =4194304
	cmp	x8, #0
	csel	w8, w9, w8, lt
	ldr	x9, [x19]
	ldr	w10, [x9, #36]
	and	w2, w10, #0xc0
	bfxil	w2, w8, #16, #6
	ubfx	w10, w8, #8, #8
	stp	w2, w10, [x9, #36]
	and	w8, w8, #0xff
	str	w8, [x9, #44]
	mov	x0, x19
	mov	w1, #9
	bl	_reg_write
	cbnz	w0, LBB0_17
; %bb.15:
	ldr	x8, [x19]
	ldr	w2, [x8, #40]
	mov	x0, x19
	mov	w1, #10
	bl	_reg_write
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	x8, [x19]
	ldr	w2, [x8, #44]
	mov	x0, x19
	mov	w1, #11
	bl	_reg_write
	cbz	w0, LBB0_18
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_21
; %bb.19:
	ldr	x8, [x19]
	ldr	w2, [x8, #76]
	mov	x0, x19
	mov	w1, #19
	bl	_reg_write
	tbnz	w0, #31, LBB0_17
; %bb.20:
	ldr	x8, [x19, #16]
LBB0_21:
	cmp	x8, #0
	mov	w8, #63
	mov	w9, #127
	csel	w20, w9, w8, eq
	ldr	x8, [x19]
	ldr	w8, [x8, #48]
	and	w2, w8, w20
	mov	x0, x19
	mov	w1, #12
	bl	_reg_write
	tbnz	w0, #31, LBB0_17
; %bb.22:
	mov	w0, #2000
	mov	w1, #3000
	bl	_usleep_range
	ldr	x8, [x19]
	ldr	w8, [x8, #48]
	orn	w2, w8, w20
	mov	x0, x19
	mov	w1, #12
	bl	_reg_write
	tbnz	w0, #31, LBB0_17
; %bb.23:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_25
; %bb.24:
	add	x8, x19, #32
	b	LBB0_28
LBB0_25:
	ldr	x8, [x19]
	ldrb	w8, [x8, #12]
	tbnz	w8, #0, LBB0_27
; %bb.26:
	add	x8, x19, #24
	b	LBB0_28
LBB0_27:
	add	x8, x19, #28
LBB0_28:
	ldr	w0, [x8]
	bl	_msleep
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_31
; %bb.29:
	mov	x0, x19
	mov	w1, #8
	mov	w2, #9
	bl	_reg_write
	tbnz	w0, #31, LBB0_17
; %bb.30:
	ldr	x8, [x19]
	ldr	w2, [x8, #76]
	mov	x0, x19
	mov	w1, #19
	bl	_reg_write
	tbnz	w0, #31, LBB0_17
LBB0_31:
	mov	w0, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_conv_table,8,3                 ; @conv_table
	.no_dead_strip	_qm1d1c0042_set_params
.subsections_via_symbols
