	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_large_chunked_message   ## -- Begin function create_large_chunked_message
	.p2align	4, 0x90
_create_large_chunked_message:          ## @create_large_chunked_message
	.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	%rsi, %rbx
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rax, %r15
	imull	$1031, %r12d, %eax              ## imm = 0x407
	cltq
	leaq	(%r15,%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax), %rdi
	addq	$6, %rdi
	callq	_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	testl	%r12d, %r12d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.1:
	movq	%r15, %rbx
	addq	%r14, %rbx
	leaq	L_.str(%rip), %r13
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$5, %edx
	callq	_memcpy
	leaq	5(%rbx), %rdi
	movl	$67, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	leaq	1029(%rbx), %rdi
	movq	%r14, %rsi
	callq	_strcpy
	addq	$1031, %r15                     ## imm = 0x407
	addq	$1031, %rbx                     ## imm = 0x407
	decl	%r12d
	jne	LBB0_2
LBB0_3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	addq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$6, %edx
	callq	_memcpy
	xorl	%edi, %edi
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	sete	%dil
	callq	_assert
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"400\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"0\r\n\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_large_chunked_message   ; -- Begin function create_large_chunked_message
	.p2align	2
_create_large_chunked_message:          ; @create_large_chunked_message
	.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, x1
	mov	x21, x0
	mov	x0, x1
	bl	_strlen
	mov	x19, x0
	mov	w8, #1031
	mul	w8, w21, w8
	add	x25, x0, w8, sxtw
	add	x0, x25, #6
	bl	_malloc
	mov	x20, x0
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x20, x19
	mov	x0, x24
	mov	x1, x22
	mov	w2, #5
	bl	_memcpy
	add	x0, x24, #5
	mov	w1, #67
	mov	w2, #1024
	bl	_memset
	add	x0, x24, #1029
	mov	x1, x23
	bl	_strcpy
	add	x19, x19, #1031
	subs	w21, w21, #1
	b.ne	LBB0_2
LBB0_3:
	add	x0, x20, x19
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #6
	bl	_memcpy
	cmp	x19, x25
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"400\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"0\r\n\r\n"

.subsections_via_symbols
