	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_chunked_failure
_test_chunked_failure:                  ## @test_chunked_failure
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movl	$0, -48(%rbp)
	movq	%rsi, %rdi
	callq	_strdup
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_note
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, -64(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rsi
	callq	_phr_decode_chunked
	movl	%eax, %r13d
	xorl	%edi, %edi
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %eax
	sete	%dil
	callq	_ok
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_note
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_7
## %bb.1:
	incq	%rbx
	leaq	-48(%rbp), %r12
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movb	%al, (%r15)
	movq	$1, -64(%rbp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_phr_decode_chunked
	cmpl	$-2, %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_2
## %bb.6:
	movl	$-2, %r13d
LBB0_7:
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	sete	%al
	jmp	LBB0_9
LBB0_3:
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.4:
	cmpl	$-1, -52(%rbp)                  ## 4-byte Folded Reload
	sete	%al
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	movzbl	%al, %edi
	callq	_ok
	movq	%r15, %rdi
	callq	_free
	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	"testing failure at-once, source at line %d"

L_.str.1:                               ## @.str.1
	.asciz	"testing failure per-byte, source at line %d"

	.no_dead_strip	_test_chunked_failure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_chunked_failure
_test_chunked_failure:                  ; @test_chunked_failure
	.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, x2
	mov	x21, x1
	mov	x23, x0
	str	wzr, [sp, #8]
	mov	x0, x1
	bl	_strdup
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_note
	mov	x0, x19
	bl	_strlen
	str	x0, [sp]
	add	x0, sp, #8
	mov	x2, sp
	mov	x1, x19
	bl	_phr_decode_chunked
	mov	x22, x0
	cmp	w0, w20
	cset	w0, eq
	bl	_ok
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_note
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldrb	w8, [x21]
	cbz	w8, LBB0_5
; %bb.1:
	add	x21, x21, #1
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	strb	w8, [x19]
	str	x22, [sp]
	add	x0, sp, #8
	mov	x2, sp
	mov	x1, x19
	bl	_phr_decode_chunked
	cmn	w0, #2
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_2
; %bb.4:
	mov	w22, #-2
LBB0_5:
	cmp	w22, w20
	cset	w0, eq
	b	LBB0_7
LBB0_6:
	cmn	w20, #1
	cset	w8, eq
	cmn	w0, #1
	csel	w0, wzr, w8, ne
LBB0_7:
	bl	_ok
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testing failure at-once, source at line %d"

l_.str.1:                               ; @.str.1
	.asciz	"testing failure per-byte, source at line %d"

	.no_dead_strip	_test_chunked_failure
.subsections_via_symbols
