	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function extract_rq_regs
LCPI0_0:
	.quad	0x3ff8000000000000              ## double 1.5
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0x3f90000000000000              ## double 0.015625
LCPI0_3:
	.quad	0x4008000000000000              ## double 3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_extract_rq_regs:                       ## @extract_rq_regs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	addq	$40, %rsi
	movl	40(%rbp), %r14d
	movl	%r14d, %edx
	callq	_extract_rq_sizing_regs
	movl	60(%rbp), %edi
	callq	_dml_log2
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_dml_floor
	addq	$-3, %rax
	movq	%rax, 48(%rbx)
	movq	32(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	leaq	24(%rbx), %rsi
	leaq	16(%rbp), %rax
	movl	28(%rax), %edx
	movq	%r15, %rdi
	callq	_extract_rq_sizing_regs
	leaq	16(%rbp), %rax
	movl	36(%rax), %edi
	callq	_dml_log2
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_dml_floor
	addq	$-3, %rax
	movq	%rax, 32(%rbx)
LBB0_2:
	leaq	16(%rbp), %r15
	movl	40(%r15), %edi
	callq	_dml_log2
	movq	%rax, 40(%rbx)
	movl	32(%r15), %edi
	callq	_dml_log2
	xorl	%ecx, %ecx
	cmpl	$32768, %r14d                   ## imm = 0x8000
	setl	%cl
	addl	%ecx, %ecx
	movq	%rax, 24(%rbx)
	movl	%ecx, (%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%rbx)
	movl	$1, 12(%rbx)
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	shll	$10, %r12d
	leaq	16(%rbp), %rax
	cvtsi2sdq	8(%rax), %xmm0
	cvtsi2sdq	(%rax), %xmm1
	divsd	%xmm1, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movl	%r12d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	jae	LBB0_5
## %bb.6:
	addsd	%xmm0, %xmm0
	divsd	LCPI0_3(%rip), %xmm0
	cvttsd2si	%xmm0, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$256, %esi                      ## imm = 0x100
	xorl	%edx, %edx
	callq	_dml_round_to_multiple
	jmp	LBB0_7
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	mulsd	LCPI0_1(%rip), %xmm0
LBB0_7:
	mulsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
LBB0_8:
	movl	%eax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_extract_rq_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_rq_regs
_extract_rq_regs:                       ; @extract_rq_regs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w22, [x0]
	add	x1, x1, #40
	ldr	w2, [x2, #24]
	bl	_extract_rq_sizing_regs
	ldr	w0, [x20, #44]
	bl	_dml_log2
	mov	w23, #1
	mov	w1, #1
	bl	_dml_floor
	sub	x8, x0, #3
	str	x8, [x19, #48]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	add	x1, x19, #24
	ldr	w2, [x20, #28]
	mov	x0, x21
	bl	_extract_rq_sizing_regs
	ldr	w0, [x20, #36]
	bl	_dml_log2
	mov	w1, #1
	bl	_dml_floor
	sub	x8, x0, #3
	str	x8, [x19, #32]
LBB0_2:
	ldr	w0, [x20, #40]
	bl	_dml_log2
	str	x0, [x19, #40]
	ldr	w0, [x20, #32]
	bl	_dml_log2
	str	x0, [x19, #24]
	ldr	w8, [x20, #24]
	cmp	w8, #8, lsl #12                 ; =32768
	cset	w8, lt
	lsl	w8, w8, #1
	str	w8, [x19]
	movi.2s	v0, #1
	stur	d0, [x19, #4]
	str	w23, [x19, #12]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.3:
	lsl	w8, w22, #10
	ldp	d1, d0, [x20]
	scvtf	d0, d0
	scvtf	d1, d1
	fdiv	d1, d0, d1
	ucvtf	d0, w8
	fmov	d2, #1.50000000
	fcmp	d1, d2
	b.ls	LBB0_5
; %bb.4:
	fadd	d0, d0, d0
	fmov	d1, #3.00000000
	fdiv	d0, d0, d1
	fcvtzu	w0, d0
	mov	w1, #256
	mov	w2, #0
	bl	_dml_round_to_multiple
	b	LBB0_6
LBB0_5:
	fmov	d1, #0.50000000
	fmul	d0, d0, d1
LBB0_6:
	mov	x8, #4580160821035794432
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvtzu	w8, d0
LBB0_7:
	str	w8, [x19, #16]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_extract_rq_regs
.subsections_via_symbols
