	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_chunked_per_byte
_test_chunked_per_byte:                 ## @test_chunked_per_byte
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r13d
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	$0, -72(%rbp)
	movq	%rdx, %rdi
	callq	_strlen
	leal	1(%rax), %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %r15
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	movl	$0, %eax
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	cmovnsl	%r14d, %eax
	subq	%rax, %r15
	movl	%r13d, -72(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_note
	movq	%r15, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	decq	%r15
	je	LBB0_5
## %bb.1:
	leaq	-48(%rbp), %r13
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%r14), %eax
	leaq	(%rbx,%r12), %rsi
	movb	%al, (%rbx,%r12)
	movq	$1, -48(%rbp)
	leaq	-72(%rbp), %rdi
	movq	%r13, %rdx
	callq	_phr_decode_chunked
	cmpl	$-2, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	-48(%rbp), %r12
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_2
LBB0_5:
	leaq	(%rbx,%r12), %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rsi
	decq	%rsi
	movq	%r14, %rdi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, -48(%rbp)
	leaq	-72(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	callq	_phr_decode_chunked
	movl	%eax, %r13d
	xorl	%edi, %edi
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, %eax
	sete	%dil
	callq	_ok
	addq	-48(%rbp), %r12
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_strlen
	xorl	%edi, %edi
	cmpq	%rax, %r12
	sete	%dil
	callq	_ok
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_bufis
	movl	%eax, %edi
	callq	_ok
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.6:
	xorl	%edi, %edi
	cmpl	%r14d, %r13d
	jne	LBB0_8
## %bb.7:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	addq	%r12, %rdi
	movl	%r14d, %esi
	callq	_bufis
	movl	%eax, %edi
	jmp	LBB0_8
LBB0_3:
	xorl	%edi, %edi
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ok
LBB0_9:
	movq	%rbx, %rdi
	callq	_free
	addq	$56, %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 per-byte, source at line %d"

	.no_dead_strip	_test_chunked_per_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_chunked_per_byte
_test_chunked_per_byte:                 ; @test_chunked_per_byte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	str	xzr, [sp, #8]
	mov	x0, x2
	bl	_strlen
	add	w0, w0, #1
	bl	_malloc
	mov	x19, x0
	mov	x0, x22
	bl	_strlen
	bic	w8, w20, w20, asr #31
	sub	x25, x0, x8
	str	w23, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_note
	mov	x24, #0
	subs	x23, x25, #1
	b.eq	LBB0_4
; %bb.1:
	mov	w26, #1
	mov	x27, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x27]
	add	x1, x19, x24
	strb	w8, [x1]
	str	x26, [sp]
	add	x0, sp, #8
	mov	x2, sp
	bl	_phr_decode_chunked
	cmn	w0, #2
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp]
	add	x24, x8, x24
	add	x27, x27, #1
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_4:
	add	x23, x19, x24
	add	x22, x22, x25
	sub	x1, x22, #1
	mov	x0, x23
	bl	_strcpy
	mov	x0, x23
	bl	_strlen
	str	x0, [sp]
	add	x0, sp, #8
	mov	x2, sp
	mov	x1, x23
	bl	_phr_decode_chunked
	mov	x23, x0
	cmp	w0, w20
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp]
	add	x24, x8, x24
	mov	x0, x21
	bl	_strlen
	cmp	x24, x0
	cset	w0, eq
	bl	_ok
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	bl	_bufis
	bl	_ok
	tbnz	w20, #31, LBB0_9
; %bb.5:
	cmp	w23, w20
	b.ne	LBB0_7
; %bb.6:
	add	x0, x19, x24
	mov	x1, x20
	mov	x2, x22
	bl	_bufis
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	bl	_ok
LBB0_9:
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testing per-byte, source at line %d"

	.no_dead_strip	_test_chunked_per_byte
.subsections_via_symbols
