	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_collchar
_get_collchar:                          ## @get_collchar
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	%rdi, -56(%rbp)
	movq	_collchars@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rsi
	callq	_RB_FIND
	movq	%rax, %r13
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.1:
	testq	%r13, %r13
	jne	LBB0_7
## %bb.2:
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r13
	movq	_NUM_WT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_new_pri
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	%r15, (%r13)
	movl	(%r14), %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_RB_INSERT
	jmp	LBB0_7
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	xorl	%r13d, %r13d
LBB0_7:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_collchars,4,2                  ## @collchars
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_NUM_WT,4,2                     ## @NUM_WT
	.no_dead_strip	_get_collchar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_collchar
_get_collchar:                          ; @get_collchar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x20, x0
	str	x0, [sp]
Lloh0:
	adrp	x19, _collchars@GOTPAGE
Lloh1:
	ldr	x19, [x19, _collchars@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x2, sp
	mov	x1, x19
	bl	_RB_FIND
	mov	x21, x0
	cbz	w22, LBB0_8
; %bb.1:
	cbnz	x21, LBB0_8
; %bb.2:
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x22, _NUM_WT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NUM_WT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_new_pri
	ldr	x8, [x21, #8]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_5
LBB0_6:
	str	x20, [x21]
	ldr	w0, [x19]
	mov	x1, x19
	mov	x2, x21
	bl	_RB_INSERT
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_collchars,4,2                  ; @collchars
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_NUM_WT,4,2                     ; @NUM_WT
	.no_dead_strip	_get_collchar
.subsections_via_symbols
