	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ack_decode
_test_ack_decode:                       ## @test_ack_decode
	.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
	movl	$4168, %eax                     ## imm = 0x1048
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.test_ack_decode.pat(%rip), %xmm0
	movaps	%xmm0, -4192(%rbp)
	leaq	-4192(%rbp), %r15
	movq	%r15, -4200(%rbp)
	leaq	-4128(%rbp), %r14
	leaq	-4200(%rbp), %rdi
	leaq	-4144(%rbp), %rdx
	xorl	%r13d, %r13d
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_quicly_decode_ack_frame
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	%r14, -4200(%rbp)
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpl	$52, -4144(%rbp)
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	$0, -4136(%rbp)
	sete	%dil
	callq	_ok
	movq	-4128(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$18, (%rax)
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpl	$35, -4120(%rbp)
	sete	%dil
	callq	_ok
	movaps	l___const.test_ack_decode.pat.1+16(%rip), %xmm0
	movaps	%xmm0, -4176(%rbp)
	movaps	l___const.test_ack_decode.pat.1(%rip), %xmm0
	movaps	%xmm0, -4192(%rbp)
	movq	%r15, -4200(%rbp)
	leaq	-4064(%rbp), %r15
	leaq	-4200(%rbp), %rdi
	leaq	-4144(%rbp), %r14
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_quicly_decode_ack_frame
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	%r15, -4200(%rbp)
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpl	$52, -4144(%rbp)
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	$2, -4136(%rbp)
	sete	%dil
	callq	_ok
	movq	-4128(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$1, (%rax)
	sete	%dil
	callq	_ok
	movq	-4112(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$2, (%rax)
	sete	%dil
	callq	_ok
	movq	-4128(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$3, 4(%rax)
	sete	%dil
	callq	_ok
	movq	-4112(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$4, 4(%rax)
	sete	%dil
	callq	_ok
	movq	-4128(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$5, 8(%rax)
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpl	$38, -4120(%rbp)
	sete	%dil
	callq	_ok
	movq	%r14, -4200(%rbp)
	movq	%r14, %rdi
	movl	$64000, %esi                    ## imm = 0xFA00
	callq	_quicly_encodev
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_quicly_encodev
	movq	_QUICLY_ACK_MAX_GAPS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	addl	$30, %esi
	movq	%rax, %rdi
	callq	_quicly_encodev
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_quicly_encodev
	movq	%rax, %r14
	cmpl	$-29, (%r15)
	jl	LBB0_3
## %bb.1:
	movl	$3435973837, %r12d              ## imm = 0xCCCCCCCD
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	imulq	%r12, %rax
	shrq	$35, %rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %ebx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_quicly_encodev
	movl	%r13d, %esi
	subl	%ebx, %esi
	movq	%rax, %rdi
	callq	_quicly_encodev
	movq	%rax, %r14
	leal	1(%r13), %eax
	movl	(%r15), %ecx
	addl	$29, %ecx
	cmpl	%ecx, %r13d
	movl	%eax, %r13d
	jl	LBB0_2
LBB0_3:
	leaq	-4200(%rbp), %rdi
	leaq	-4192(%rbp), %rdx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_quicly_decode_ack_frame
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpl	$64000, -4192(%rbp)             ## imm = 0xFA00
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	$0, -4152(%rbp)
	sete	%dil
	callq	_ok
	movslq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	%rax, -4184(%rbp)
	sete	%dil
	callq	_ok
	movq	-4176(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$9, (%rax)
	sete	%dil
	callq	_ok
	movq	-4176(%rbp), %rax
	movl	(%rax), %r12d
	cmpq	$0, -4184(%rbp)
	jle	LBB0_6
## %bb.4:
	movq	-4160(%rbp), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	movl	$3435973837, %edx               ## imm = 0xCCCCCCCD
	imulq	%rdx, %rcx
	shrq	$35, %rcx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %r15d
	movl	(%rax,%rbx,4), %eax
	leaq	1(%rbx), %r13
	xorl	%edi, %edi
	cmpq	%rax, %r13
	sete	%dil
	callq	_ok
	movq	-4176(%rbp), %rax
	movl	%ebx, %ecx
	subl	%r15d, %ecx
	incl	%ecx
	xorl	%edi, %edi
	cmpl	4(%rax,%rbx,4), %ecx
	sete	%dil
	callq	_ok
	movq	-4160(%rbp), %rax
	movq	-4176(%rbp), %rcx
	addl	(%rax,%rbx,4), %r12d
	addl	4(%rcx,%rbx,4), %r12d
	movq	%r13, %rbx
	cmpq	%r13, -4184(%rbp)
	jg	LBB0_5
LBB0_6:
	xorl	%edi, %edi
	cmpq	%r14, -4200(%rbp)
	sete	%dil
	callq	_ok
	movl	$64001, %eax                    ## imm = 0xFA01
	subl	%r12d, %eax
	xorl	%edi, %edi
	cmpl	%eax, -4168(%rbp)
	sete	%dil
	callq	_ok
	movq	_test_ack_decode_underflow@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_subtest
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$4168, %rsp                     ## imm = 0x1048
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.test_ack_decode.pat
L___const.test_ack_decode.pat:
	.long	52                              ## 0x34
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	17                              ## 0x11

	.section	__TEXT,__const
	.p2align	4                               ## @__const.test_ack_decode.pat.1
l___const.test_ack_decode.pat.1:
	.long	52                              ## 0x34
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4

	.comm	_QUICLY_ACK_MAX_GAPS,4,2        ## @QUICLY_ACK_MAX_GAPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"underflow"

	.comm	_test_ack_decode_underflow,4,2  ## @test_ack_decode_underflow
	.no_dead_strip	_test_ack_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ack_decode
_test_ack_decode:                       ; @test_ack_decode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #4176
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #80
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	adrp	x9, l___const.test_ack_decode.pat@PAGE
	add	x9, x9, l___const.test_ack_decode.pat@PAGEOFF
	stur	x8, [x29, #-88]
	ldr	q0, [x9]
	str	q0, [sp, #16]
	add	x20, sp, #16
	str	x20, [sp, #8]
	add	x19, x20, #64
	add	x0, sp, #8
	add	x2, sp, #72
	mov	x1, x19
	mov	w3, #0
	bl	_quicly_decode_ack_frame
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #8]
	cmp	x8, x19
	cset	w0, eq
	bl	_ok
	ldr	w8, [sp, #72]
	cmp	w8, #52
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #80]
	cmp	x8, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #88]
	ldr	w8, [x8]
	cmp	w8, #18
	cset	w0, eq
	bl	_ok
	ldr	w8, [sp, #96]
	cmp	w8, #35
	cset	w0, eq
	bl	_ok
Lloh5:
	adrp	x8, l___const.test_ack_decode.pat.1@PAGE
Lloh6:
	add	x8, x8, l___const.test_ack_decode.pat.1@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	str	x20, [sp, #8]
	add	x19, x20, #128
	add	x20, sp, #72
	add	x0, sp, #8
	add	x2, sp, #72
	mov	x1, x19
	mov	w3, #0
	bl	_quicly_decode_ack_frame
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #8]
	cmp	x8, x19
	cset	w0, eq
	bl	_ok
	ldr	w8, [sp, #72]
	cmp	w8, #52
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #80]
	cmp	x8, #2
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #88]
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #104]
	ldr	w8, [x8]
	cmp	w8, #2
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #88]
	ldr	w8, [x8, #4]
	cmp	w8, #3
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #104]
	ldr	w8, [x8, #4]
	cmp	w8, #4
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #88]
	ldr	w8, [x8, #8]
	cmp	w8, #5
	cset	w0, eq
	bl	_ok
	ldr	w8, [sp, #96]
	cmp	w8, #38
	cset	w0, eq
	bl	_ok
	str	x20, [sp, #8]
	mov	w22, #64000
	add	x0, sp, #72
	mov	w1, #64000
	bl	_quicly_encodev
	mov	w1, #0
	bl	_quicly_encodev
Lloh7:
	adrp	x21, _QUICLY_ACK_MAX_GAPS@GOTPAGE
Lloh8:
	ldr	x21, [x21, _QUICLY_ACK_MAX_GAPS@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w1, w8, #30
	bl	_quicly_encodev
	mov	w1, #8
	bl	_quicly_encodev
	mov	x19, x0
	ldr	w8, [x21]
	cmn	w8, #29
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
	mov	w23, #52429
	movk	w23, #52428, lsl #16
	mov	w24, #-10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	umull	x8, w20, w23
	lsr	x25, x8, #35
	mov	x0, x19
	mov	x1, x20
	bl	_quicly_encodev
	madd	w1, w25, w24, w20
	bl	_quicly_encodev
	mov	x19, x0
	add	w8, w20, #1
	ldr	w9, [x21]
	add	w9, w9, #29
	cmp	w20, w9
	mov	x20, x8
	b.lt	LBB0_2
LBB0_3:
	add	x0, sp, #8
	add	x2, sp, #16
	mov	x1, x19
	mov	w3, #0
	bl	_quicly_decode_ack_frame
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	ldr	w8, [sp, #16]
	cmp	w8, w22
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #56]
	cmp	x8, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #24]
	ldrsw	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #32]
	ldr	w8, [x8]
	cmp	w8, #9
	cset	w0, eq
	bl	_ok
	ldp	x9, x8, [sp, #24]
	ldr	w20, [x8]
	cmp	x9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
	ldr	x8, [sp, #48]
	mov	w21, #52429
	movk	w21, #52428, lsl #16
	mov	w22, #-10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	x9, x23, #0xffffffff
	mul	x9, x9, x21
	lsr	x24, x9, #35
	lsl	x25, x23, #2
	ldr	w8, [x8, x25]
	add	x26, x23, #1
	cmp	x26, x8
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #32]
	add	x8, x8, x25
	ldr	w8, [x8, #4]
	madd	w9, w24, w22, w23
	add	w9, w9, #1
	cmp	w9, w8
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #48]
	ldr	w9, [x8, x25]
	ldp	x11, x10, [sp, #24]
	add	x10, x10, x25
	ldr	w10, [x10, #4]
	add	w9, w9, w20
	add	w20, w9, w10
	mov	x23, x26
	cmp	x11, x26
	b.gt	LBB0_5
LBB0_6:
	ldr	x8, [sp, #8]
	cmp	x8, x19
	cset	w0, eq
	bl	_ok
	ldr	w8, [sp, #40]
	mov	w9, #64001
	sub	w9, w9, w20
	cmp	w8, w9
	cset	w0, eq
	bl	_ok
Lloh9:
	adrp	x8, _test_ack_decode_underflow@GOTPAGE
Lloh10:
	ldr	x8, [x8, _test_ack_decode_underflow@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_subtest
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.test_ack_decode.pat
l___const.test_ack_decode.pat:
	.long	52                              ; 0x34
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	17                              ; 0x11

	.section	__TEXT,__const
	.p2align	2                               ; @__const.test_ack_decode.pat.1
l___const.test_ack_decode.pat.1:
	.long	52                              ; 0x34
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4

	.comm	_QUICLY_ACK_MAX_GAPS,4,2        ; @QUICLY_ACK_MAX_GAPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"underflow"

	.comm	_test_ack_decode_underflow,4,2  ; @test_ack_decode_underflow
	.no_dead_strip	_test_ack_decode
.subsections_via_symbols
