	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp_add_cs_buf
_mp_add_cs_buf:                         ## @mp_add_cs_buf
	.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	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	_CHARSIZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$3, %rdi
	callq	_hcmalloc
	movq	%rbx, %rsi
	movq	%rax, %rbx
	shlq	$4, %r14
	leaq	(%rsi,%r14), %r12
	cmpq	$0, (%rsi,%r14)
	je	LBB0_3
## %bb.1:
	movq	8(%rsi,%r14), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	movq	$1, (%rbx,%rdx,8)
	incq	%rcx
	cmpq	(%r12), %rcx
	jb	LBB0_2
LBB0_3:
	testq	%r15, %r15
	je	LBB0_10
## %bb.4:
	leaq	(%rsi,%r14), %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	%r14, %r15
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%r14,8), %eax
	movq	_OPTS_TYPE_PT_UPPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r13)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_toupper
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$1, (%rbx,%rax,8)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$1, (%rbx,%rax,8)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%r12), %rdx
	movq	%rax, (%rcx,%rdx,8)
	incq	(%r12)
	jmp	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	callq	_hcfree
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHARSIZ,4,2                    ## @CHARSIZ
	.comm	_OPTS_TYPE_PT_UPPER,4,2         ## @OPTS_TYPE_PT_UPPER
	.no_dead_strip	_mp_add_cs_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp_add_cs_buf
_mp_add_cs_buf:                         ; @mp_add_cs_buf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _CHARSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHARSIZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	lsl	x0, x8, #3
	bl	_hcmalloc
	mov	x21, x0
	add	x25, x23, x22, lsl #4
	ldr	x8, [x25]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x9, [x25, #8]
	mov	w10, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x8, lsl #3]
	str	x10, [x21, x11, lsl #3]
	add	x8, x8, #1
	ldr	x11, [x25]
	cmp	x8, x11
	b.lo	LBB0_2
LBB0_3:
	cbz	x19, LBB0_10
; %bb.4:
	add	x8, x23, x22, lsl #4
	add	x22, x8, #8
Lloh3:
	adrp	x23, _OPTS_TYPE_PT_UPPER@GOTPAGE
Lloh4:
	ldr	x23, [x23, _OPTS_TYPE_PT_UPPER@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #8
	subs	x19, x19, #1
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x20]
	ldr	w8, [x24]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_toupper
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, x0, lsl #3]
	cmp	x8, #1
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x26, [x21, x0, lsl #3]
	ldr	x8, [x22]
	ldr	x9, [x25]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x25]
	add	x8, x8, #1
	str	x8, [x25]
	b	LBB0_5
LBB0_10:
	mov	x0, x21
	bl	_hcfree
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CHARSIZ,4,2                    ; @CHARSIZ
	.comm	_OPTS_TYPE_PT_UPPER,4,2         ; @OPTS_TYPE_PT_UPPER
	.no_dead_strip	_mp_add_cs_buf
.subsections_via_symbols
