	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_chunked_at_once
_test_chunked_at_once:                  ## @test_chunked_at_once
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%edi, %eax
	movq	$0, -56(%rbp)
	movl	%esi, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_note
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rsi
	callq	_phr_decode_chunked
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpq	%r15, %rax
	sete	%dil
	callq	_ok
	movq	-48(%rbp), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strlen
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%dil
	callq	_ok
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_bufis
	movl	%eax, %edi
	callq	_ok
	testq	%r15, %r15
	js	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	cmpq	%r15, %r13
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %r14
	addq	%r12, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rax, %rbx
	subq	%r15, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_bufis
	movl	%eax, %edi
LBB0_3:
	callq	_ok
LBB0_4:
	movq	%r12, %rdi
	callq	_free
	addq	$40, %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	"testing at-once, source at line %d"

	.no_dead_strip	_test_chunked_at_once
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_chunked_at_once
_test_chunked_at_once:                  ; @test_chunked_at_once
	.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	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x8, x0
	str	xzr, [sp, #8]
	str	w1, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_note
	mov	x0, x21
	bl	_strdup
	mov	x19, x0
	bl	_strlen
	str	x0, [sp]
	add	x0, sp, #8
	mov	x2, sp
	mov	x1, x19
	bl	_phr_decode_chunked
	mov	x22, x0
	cmp	x0, x20
	cset	w0, eq
	bl	_ok
	ldr	x24, [sp]
	mov	x0, x23
	bl	_strlen
	cmp	x24, x0
	cset	w0, eq
	bl	_ok
	ldr	x1, [sp]
	mov	x0, x19
	mov	x2, x23
	bl	_bufis
	bl	_ok
	tbnz	x20, #63, LBB0_5
; %bb.1:
	cmp	x22, x20
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [sp]
	add	x22, x19, x8
	mov	x0, x21
	bl	_strlen
	add	x8, x21, x0
	sub	x2, x8, x20
	mov	x0, x22
	mov	x1, x20
	bl	_bufis
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	bl	_ok
LBB0_5:
	mov	x0, x19
	bl	_free
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testing at-once, source at line %d"

	.no_dead_strip	_test_chunked_at_once
.subsections_via_symbols
