	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function optional_tags_init
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_optional_tags_init:                    ## @optional_tags_init
	.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	_Q_optional_tags@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	movq	_Q_words@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	_QT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_3
## %bb.15:
	xorl	%eax, %eax
	movl	%edx, %ebx
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_4:
	movq	_MAX_OPTIONAL_TAGS@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jle	LBB0_5
## %bb.6:
	leal	-1(%rdx), %ecx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.7:
	xorl	%r13d, %r13d
	movq	_QOTW@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%r14)
	movq	_IHT@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rax
	movq	_QW@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %esi
	movq	(%r12), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_ihe_init
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	movq	(%r12), %rcx
	movslq	(%r14), %rdx
	addl	(%rcx,%rdx,8), %r13d
	testl	%edx, %edx
	jg	LBB0_12
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %edx
	movq	(%r15), %rax
	testl	%edx, %edx
	jle	LBB0_17
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MAX_OPTIONAL_TAGS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_QT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	leal	-1(%rdx), %ecx
	cmpq	$0, (%rsi,%rcx,8)
	jne	LBB0_8
	jmp	LBB0_17
LBB0_5:
	xorl	%eax, %eax
LBB0_16:
	xorl	%r13d, %r13d
LBB0_17:
	movq	_Q_K_Opt_Tag@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r13d
	cvtsi2sd	%r13d, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	divsd	%xmm0, %xmm1
	movq	_optional_tags_mult_coeff@GOTPCREL(%rip), %rcx
	movsd	%xmm1, (%rcx)
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rax, %rcx
	callq	_vkprintf
	movl	(%r14), %eax
	subl	%ebx, %eax
	movq	_MAX_PRIORITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.18:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movq	_QRP@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rax)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_optional_tags,8,3            ## @Q_optional_tags
	.comm	_Q_words,4,2                    ## @Q_words
	.comm	_QT,8,3                         ## @QT
	.comm	_MAX_OPTIONAL_TAGS,8,3          ## @MAX_OPTIONAL_TAGS
	.comm	_IHT,8,3                        ## @IHT
	.comm	_QW,8,3                         ## @QW
	.comm	_QOTW,8,3                       ## @QOTW
	.comm	_Q_K_Opt_Tag,4,2                ## @Q_K_Opt_Tag
	.comm	_optional_tags_mult_coeff,8,3   ## @optional_tags_mult_coeff
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Q_words = %d, optinal_tags = %d\n"

	.comm	_MAX_PRIORITY,4,2               ## @MAX_PRIORITY
	.comm	_QRP,8,3                        ## @QRP
	.no_dead_strip	_optional_tags_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optional_tags_init
_optional_tags_init:                    ; @optional_tags_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _Q_optional_tags@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Q_optional_tags@GOTPAGEOFF]
	str	xzr, [x21]
Lloh2:
	adrp	x19, _Q_words@GOTPAGE
Lloh3:
	ldr	x19, [x19, _Q_words@GOTPAGEOFF]
	ldr	w2, [x19]
	subs	w8, w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
Lloh4:
	adrp	x22, _QT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _QT@GOTPAGEOFF]
	ldr	x9, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x20, lsl #3]
	cbz	x10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x2, x20
	b.ne	LBB0_2
; %bb.4:
	mov	x3, #0
	mov	w23, #0
	mov	x20, x2
	b	LBB0_16
LBB0_5:
	mov	x3, #0
	mov	w20, #0
	b	LBB0_15
LBB0_6:
Lloh6:
	adrp	x24, _MAX_OPTIONAL_TAGS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MAX_OPTIONAL_TAGS@GOTPAGEOFF]
	ldr	x10, [x24]
	cmp	x10, #0
	b.le	LBB0_14
; %bb.7:
	ldr	x9, [x9, w8, uxtw #3]
	cbz	x9, LBB0_14
; %bb.8:
	mov	w23, #0
	mov	x3, #0
Lloh8:
	adrp	x25, _IHT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _IHT@GOTPAGEOFF]
Lloh10:
	adrp	x26, _QW@GOTPAGE
Lloh11:
	ldr	x26, [x26, _QW@GOTPAGEOFF]
Lloh12:
	adrp	x27, _QOTW@GOTPAGE
Lloh13:
	ldr	x27, [x27, _QOTW@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x19]
	ldr	x9, [x25]
	add	x0, x9, x3
	ldr	x9, [x26]
	ldr	w1, [x9, x8, lsl #2]
	ldr	x9, [x27]
	ldr	x3, [x9, x8, lsl #3]
	mov	w2, #1
	bl	_ihe_init
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
	add	x3, x8, #1
	str	x3, [x21]
	ldr	x8, [x27]
	ldrsw	x2, [x19]
	ldr	x8, [x8, x2, lsl #3]
	add	w23, w23, w8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x19]
	ldr	x3, [x21]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x24]
	subs	w8, w2, #1
	ccmp	x3, x9, #0, ge
	b.ge	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x22]
	ldr	x9, [x9, w8, uxtw #3]
	cbnz	x9, LBB0_9
	b	LBB0_16
LBB0_14:
	mov	x3, #0
LBB0_15:
	mov	w23, #0
LBB0_16:
Lloh14:
	adrp	x8, _Q_K_Opt_Tag@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Q_K_Opt_Tag@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mul	w8, w8, w23
	scvtf	d0, w8
	fmov	d1, #1.00000000
	fadd	d0, d0, d1
	fdiv	d0, d1, d0
Lloh17:
	adrp	x8, _optional_tags_mult_coeff@GOTPAGE
Lloh18:
	ldr	x8, [x8, _optional_tags_mult_coeff@GOTPAGEOFF]
Lloh19:
	str	d0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_vkprintf
Lloh22:
	adrp	x8, _MAX_PRIORITY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAX_PRIORITY@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh24:
	ldr	w8, [x8]
	sub	w9, w9, w20
	cmp	w9, w8
	csel	w8, w9, w8, lt
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.17:
	scvtf	d0, w8
Lloh25:
	adrp	x8, _QRP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _QRP@GOTPAGEOFF]
	ldr	d1, [x8]
	fdiv	d0, d1, d0
	str	d0, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_optional_tags,8,3            ; @Q_optional_tags
	.comm	_Q_words,4,2                    ; @Q_words
	.comm	_QT,8,3                         ; @QT
	.comm	_MAX_OPTIONAL_TAGS,8,3          ; @MAX_OPTIONAL_TAGS
	.comm	_IHT,8,3                        ; @IHT
	.comm	_QW,8,3                         ; @QW
	.comm	_QOTW,8,3                       ; @QOTW
	.comm	_Q_K_Opt_Tag,4,2                ; @Q_K_Opt_Tag
	.comm	_optional_tags_mult_coeff,8,3   ; @optional_tags_mult_coeff
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Q_words = %d, optinal_tags = %d\n"

	.comm	_MAX_PRIORITY,4,2               ; @MAX_PRIORITY
	.comm	_QRP,8,3                        ; @QRP
	.no_dead_strip	_optional_tags_init
.subsections_via_symbols
