	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_letter_priority            ## -- Begin function add_letter_priority
	.p2align	4, 0x90
_add_letter_priority:                   ## @add_letter_priority
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	%rcx, %rdi
	callq	_strlen
	movq	_MAX_LETTER_SIZE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jge	LBB0_18
## %bb.1:
	movq	_id_to_letter@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_map_ll_vptr_get
	testq	%rax, %rax
	je	LBB0_18
## %bb.2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	xorl	%r12d, %r12d
	movl	$0, %edi
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%r15)
	movl	$0, %edi
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	cmpq	$0, 8(%r15)
	setne	%dil
LBB0_5:
	callq	_assert
	movq	(%r15), %rbx
	movq	(%rbx), %rdi
	callq	_strlen
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpl	%r14d, 8(%rbx)
	setg	%dil
	callq	_assert
	movq	_letter_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movq	(%rax), %rsi
	incl	%r14d
	movl	%r14d, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_get_fields
	xorl	%edi, %edi
	cmpl	$4, %eax
	setge	%dil
	callq	_assert
	movq	_field_names@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_get_field
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movq	_field_value_len@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rbx
	xorl	%r12d, %r12d
	cmpl	$1, (%rcx,%rbx,4)
	sete	%r12b
	jmp	LBB0_8
LBB0_6:
	movq	$-1, %rbx
LBB0_8:
	movl	%r12d, %edi
	callq	_assert
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leal	48(%r15), %eax
	movq	_field_value@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movb	%al, (%rcx)
	movq	(%r14), %rax
	movq	_FIELDS_N@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	-16(%rax,%rcx,4), %edi
	callq	_get_field
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.10:
	movq	_field_n@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$-4, %ecx
	cmpl	%ecx, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_11
## %bb.12:
	movq	_field_value_len@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rbx
	xorl	%edi, %edi
	cmpl	$10, (%rcx,%rbx,4)
	sete	%dil
	jmp	LBB0_13
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_11:
	movslq	%eax, %rbx
	xorl	%edi, %edi
LBB0_13:
	callq	_assert
	movq	_field_value@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rbx
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r12,%rax), %edx
	decl	%edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movb	$34, (%rbx,%rax)
LBB0_14:
	movq	(%r14), %rax
	movq	_FIELDS_N@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	-12(%rax,%rcx,4), %edi
	callq	_get_field
	movq	_field_n@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	addl	$-3, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_15
## %bb.16:
	movq	_field_value_len@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rbx
	xorl	%edi, %edi
	cmpl	$10, (%rcx,%rbx,4)
	sete	%dil
	jmp	LBB0_17
LBB0_15:
	movslq	%eax, %rbx
	xorl	%edi, %edi
LBB0_17:
	callq	_assert
	movq	_field_value@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rbx
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movb	$34, (%rbx,%rax)
	movq	_field_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FIELDS_N@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	-4(%rax,%rcx,4), %edi
	callq	_get_field
	movl	%eax, %ebx
	movl	(%r14), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_assert
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rbx
	addq	$-12, %rbx
	movq	%r13, %rdi
	callq	_strlen
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_delete_letter
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r12d, %esi
	callq	_letter_add
	movl	$1, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LETTER_SIZE,8,3            ## @MAX_LETTER_SIZE
	.comm	_id_to_letter,4,2               ## @id_to_letter
	.comm	_letter_buf,8,3                 ## @letter_buf
	.comm	_field_names,8,3                ## @field_names
	.comm	_field_value_len,8,3            ## @field_value_len
	.comm	_field_value,8,3                ## @field_value
	.comm	_FIELDS_N,4,2                   ## @FIELDS_N
	.comm	_field_n,4,2                    ## @field_n
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%010d"

	.comm	_now,4,2                        ## @now
L_.str.1:                               ## @.str.1
	.asciz	"%010d:\"%s\";}"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_letter_priority            ; -- Begin function add_letter_priority
	.p2align	2
_add_letter_priority:                   ; @add_letter_priority
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x3
	bl	_strlen
Lloh0:
	adrp	x8, _MAX_LETTER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_LETTER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.1:
Lloh3:
	adrp	x0, _id_to_letter@GOTPAGE
Lloh4:
	ldr	x0, [x0, _id_to_letter@GOTPAGEOFF]
	mov	x1, x21
	bl	_map_ll_vptr_get
	cbz	x0, LBB0_20
; %bb.2:
	ldr	x24, [x0]
	cbz	x24, LBB0_6
; %bb.3:
	ldr	x8, [x24]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x24, #8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_20
LBB0_6:
	mov	w0, #0
LBB0_7:
	bl	_assert
	ldr	x25, [x24]
	ldr	x0, [x25]
	bl	_strlen
	mov	x23, x0
	ldr	w8, [x25, #8]
	cmp	w8, w23
	cset	w0, gt
	bl	_assert
Lloh5:
	adrp	x25, _letter_buf@GOTPAGE
Lloh6:
	ldr	x25, [x25, _letter_buf@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w0, [x8]
	ldr	x8, [x24]
	ldr	x1, [x8]
	add	w2, w23, #1
	bl	_memcpy
	ldr	x8, [x25]
	ldr	w0, [x8]
	bl	_get_fields
	cmp	w0, #3
	cset	w0, gt
	bl	_assert
Lloh7:
	adrp	x24, _field_names@GOTPAGE
Lloh8:
	ldr	x24, [x24, _field_names@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_get_field
                                        ; kill: def $w0 killed $w0 def $x0
Lloh9:
	adrp	x8, _field_value_len@GOTPAGE
Lloh10:
	ldr	x8, [x8, _field_value_len@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.8:
	mov	x28, x8
	ldr	x8, [x8]
	sxtw	x23, w0
	ldr	w8, [x8, w0, sxtw #2]
	cmp	w8, #1
	cset	w0, eq
	b	LBB0_10
LBB0_9:
	mov	x28, x8
	mov	w0, #0
	mov	x23, #-1
LBB0_10:
	bl	_assert
	add	w8, w19, #48
Lloh11:
	adrp	x25, _field_value@GOTPAGE
Lloh12:
	ldr	x25, [x25, _field_value@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	x9, [x9, x23, lsl #3]
	strb	w8, [x9]
	ldr	x8, [x24]
Lloh13:
	adrp	x26, _FIELDS_N@GOTPAGE
Lloh14:
	ldr	x26, [x26, _FIELDS_N@GOTPAGEOFF]
	ldrsw	x9, [x26]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-16]
	bl	_get_field
                                        ; kill: def $w0 killed $w0 def $x0
Lloh15:
	adrp	x27, _field_n@GOTPAGE
Lloh16:
	ldr	x27, [x27, _field_n@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.11:
	ldr	w8, [x27]
	sub	w8, w8, #4
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x28]
	mov	x9, x0
	sxtw	x23, w9
	ldr	w8, [x8, w0, sxtw #2]
	cmp	w8, #10
	cset	w8, eq
	b	LBB0_15
LBB0_13:
	mov	w20, #0
	b	LBB0_16
LBB0_14:
	mov	w8, #0
	sxtw	x23, w0
LBB0_15:
	mov	x0, x8
	bl	_assert
	ldr	x8, [x25]
	ldr	x23, [x8, x23, lsl #3]
Lloh17:
	adrp	x8, _now@GOTPAGE
Lloh18:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	add	w8, w20, w8
	sub	w2, w8, #1
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_sprintf
	mov	w8, #34
	strb	w8, [x23, x0]
LBB0_16:
	ldr	x8, [x24]
	ldrsw	x9, [x26]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-12]
	bl	_get_field
	mov	x8, x0
	ldr	w9, [x27]
	sub	w9, w9, #3
	cmp	w0, w9
	b.ne	LBB0_18
; %bb.17:
	ldr	x9, [x28]
	mov	x10, x8
	sxtw	x23, w10
	ldr	w8, [x9, w8, sxtw #2]
	cmp	w8, #10
	cset	w0, eq
	b	LBB0_19
LBB0_18:
	mov	w0, #0
	sxtw	x23, w8
LBB0_19:
	bl	_assert
	ldr	x8, [x25]
	ldr	x23, [x8, x23, lsl #3]
Lloh22:
	adrp	x8, _now@GOTPAGE
Lloh23:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_sprintf
	mov	w8, #34
	strb	w8, [x23, x0]
	ldr	x8, [x24]
	ldrsw	x9, [x26]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-4]
	bl	_get_field
	mov	x23, x0
	ldr	w8, [x27]
	sub	w8, w8, #1
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x25]
	ldr	x8, [x8, w23, sxtw #3]
	sub	x23, x8, #12
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	str	x22, [sp]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_sprintf
	mov	x0, x21
	bl	_delete_letter
	mov	x0, x19
	mov	x1, x20
	bl	_letter_add
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LETTER_SIZE,8,3            ; @MAX_LETTER_SIZE
	.comm	_id_to_letter,4,2               ; @id_to_letter
	.comm	_letter_buf,8,3                 ; @letter_buf
	.comm	_field_names,8,3                ; @field_names
	.comm	_field_value_len,8,3            ; @field_value_len
	.comm	_field_value,8,3                ; @field_value
	.comm	_FIELDS_N,4,2                   ; @FIELDS_N
	.comm	_field_n,4,2                    ; @field_n
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%010d"

	.comm	_now,4,2                        ; @now
l_.str.1:                               ; @.str.1
	.asciz	"%010d:\"%s\";}"

.subsections_via_symbols
