	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CHadd
_CHadd:                                 ## @CHadd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movl	%edx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	_NC@GOTPCREL(%rip), %r15
	cmpl	%ebx, (%r15)
	jle	LBB0_2
## %bb.1:
	movl	%ebx, %ecx
	andb	$7, %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	(%r14), %rcx
	movl	%ebx, %edx
	sarl	$3, %edx
	movslq	%edx, %rdx
	orl	%eax, (%rcx,%rdx,4)
	cmpq	$0, 16(%r14)
	jne	LBB0_5
	jmp	LBB0_9
LBB0_2:
	movq	8(%r14), %rdi
	movq	24(%r14), %rsi
	incq	%rsi
	movl	$4, %edx
	callq	_reallocarray
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, 8(%r14)
	movq	24(%r14), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 24(%r14)
	movl	%ebx, (%rax,%rcx,4)
	cmpq	$0, 16(%r14)
	je	LBB0_9
LBB0_5:
	movl	%ebx, %edi
	callq	_towlower
	cmpl	(%r15), %eax
	jge	LBB0_7
## %bb.6:
	movl	%eax, %ecx
	andb	$7, %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	(%r14), %rcx
	sarl	$3, %eax
	cltq
	orl	%edx, (%rcx,%rax,4)
LBB0_7:
	movl	%ebx, %edi
	callq	_towupper
	cmpl	(%r15), %eax
	jge	LBB0_9
## %bb.8:
	movl	%eax, %ecx
	andb	$7, %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	(%r14), %rcx
	sarl	$3, %eax
	cltq
	orl	%edx, (%rcx,%rax,4)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_REG_ESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SETERROR                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NC,4,2                         ## @NC
	.comm	_REG_ESPACE,4,2                 ## @REG_ESPACE
	.no_dead_strip	_CHadd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CHadd
_CHadd:                                 ; @CHadd
	.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
	mov	x20, x2
	mov	x19, x1
	mvn	w8, w2
	lsr	w0, w8, #31
	bl	_assert
Lloh0:
	adrp	x21, _NC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NC@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w20
	b.le	LBB0_2
; %bb.1:
	and	w8, w20, #0x7
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x19]
	asr	w10, w20, #3
	sbfiz	x10, x10, #2, #32
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_4
	b	LBB0_8
LBB0_2:
	ldr	x0, [x19, #8]
	ldr	x8, [x19, #24]
	add	x1, x8, #1
	mov	w2, #4
	bl	_reallocarray
	cbz	x0, LBB0_9
; %bb.3:
	str	x0, [x19, #8]
	ldr	x8, [x19, #24]
	add	x9, x8, #1
	str	x9, [x19, #24]
	str	w20, [x0, x8, lsl #2]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_towlower
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.5:
	and	w8, w0, #0x7
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x19]
	asr	w10, w0, #3
	sbfiz	x10, x10, #2, #32
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
LBB0_6:
	mov	x0, x20
	bl	_towupper
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_8
; %bb.7:
	and	w8, w0, #0x7
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x19]
	asr	w10, w0, #3
	sbfiz	x10, x10, #2, #32
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
LBB0_8:
	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_9:
Lloh2:
	adrp	x8, _REG_ESPACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_ESPACE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	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
	b	_SETERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NC,4,2                         ; @NC
	.comm	_REG_ESPACE,4,2                 ; @REG_ESPACE
	.no_dead_strip	_CHadd
.subsections_via_symbols
