	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writeCHARS
_writeCHARS:                            ## @writeCHARS
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	(%rdx), %edx
	leal	7(%rdx), %ebx
	testl	%edx, %edx
	cmovnsl	%edx, %ebx
	cmpl	$1928, %edx                     ## imm = 0x788
	jl	LBB0_1
## %bb.2:
	movq	_code@GOTPCREL(%rip), %rax
	movl	$4096, %ecx                     ## imm = 0x1000
	orl	(%rax), %ecx
	movq	%r8, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_checksum
	movl	$16, (%r14)
	movl	$2, %ebx
	testl	%r12d, %r12d
	jne	LBB0_5
	jmp	LBB0_4
LBB0_1:
	sarl	$3, %ebx
	testl	%r12d, %r12d
	jne	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %r12d
	movslq	%ebx, %rax
	incl	%ebx
	movb	%r12b, (%r13,%rax)
LBB0_5:
	movslq	%ebx, %rbx
	addq	%rbx, %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	addl	%r12d, %ebx
	shll	$3, %ebx
	movl	%ebx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_code,4,2                       ## @code
	.no_dead_strip	_writeCHARS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writeCHARS
_writeCHARS:                            ; @writeCHARS
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w2, [x2]
	add	w8, w2, #7
	cmp	w2, #0
	csel	w8, w8, w2, lt
	cmp	w2, #1928
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _code@GOTPAGE
Lloh1:
	ldr	x8, [x8, _code@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w3, w8, #0x1000
	mov	x0, x4
	mov	x1, x22
	bl	_checksum
	mov	w8, #16
	str	w8, [x19]
	mov	w23, #2
	cbnz	w20, LBB0_4
	b	LBB0_3
LBB0_2:
	asr	w23, w8, #3
	cbnz	w20, LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_strlen
	mov	x20, x0
	strb	w0, [x22, w23, sxtw]
	add	w23, w23, #1
LBB0_4:
	add	x0, x22, w23, sxtw
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	add	w8, w23, w20
	lsl	w8, w8, #3
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_code,4,2                       ; @code
	.no_dead_strip	_writeCHARS
.subsections_via_symbols
