	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_token
_validate_token:                        ## @validate_token
	.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	%rcx, %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	*(%rdi)
	movq	%rax, %r15
	subq	(%rbx), %r15
	xorl	%r14d, %r14d
	testq	%r15, %r15
	cmovleq	%r14, %r15
	movl	(%r13), %eax
	cmpl	40(%rbx), %eax
	jne	LBB0_14
## %bb.1:
	cmpl	$128, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_14
## %bb.3:
	movl	4(%r13), %eax
	cmpl	36(%rbx), %eax
	jne	LBB0_14
## %bb.4:
	leaq	32(%rbx), %r13
	movl	$129, %eax
	cmpq	$0, 16(%rbx)
	je	LBB0_12
LBB0_8:
	cmpq	$30000, %r15                    ## imm = 0x7530
	ja	LBB0_14
## %bb.9:
	cmpl	%eax, (%r13)
	jne	LBB0_14
## %bb.10:
	movq	_ptls_openssl_sha256@GOTPCREL(%rip), %rdi
	leaq	-56(%rbp), %rcx
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_quicly_retry_calc_cidpair_hash
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movq	8(%rbx), %rax
	cmpq	-56(%rbp), %rax
	je	LBB0_13
	jmp	LBB0_14
LBB0_5:
	leaq	4(%r13), %rdi
	leaq	28(%rbx), %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movl	24(%rbx), %eax
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
LBB0_12:
	cmpq	$600000, %r15                   ## imm = 0x927C0
	ja	LBB0_14
LBB0_13:
	movl	$1, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,8,3                        ## @ctx
	.comm	_ptls_openssl_sha256,4,2        ## @ptls_openssl_sha256
	.no_dead_strip	_validate_token
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_token
_validate_token:                        ; @validate_token
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ctx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	x8, [x0]
	blr	x8
	ldr	x8, [x19]
	sub	x8, x0, x8
	cmp	x8, #0
	csel	x23, x8, xzr, gt
	ldr	w8, [x22]
	ldr	w9, [x19, #40]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.1:
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.3:
	ldr	w8, [x22, #4]
	ldr	w9, [x19, #36]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.4:
	add	x22, x19, #32
	mov	w8, #129
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_10
LBB0_5:
	ldr	w9, [x22]
	mov	w10, #30000
	cmp	x23, x10
	ccmp	w9, w8, #0, ls
	b.ne	LBB0_11
; %bb.6:
Lloh3:
	adrp	x0, _ptls_openssl_sha256@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ptls_openssl_sha256@GOTPAGEOFF]
	add	x3, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_quicly_retry_calc_cidpair_hash
	cbnz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_11
	b	LBB0_13
LBB0_8:
	add	x0, x22, #4
	add	x1, x19, #28
	mov	w2, #4
	bl	_memcmp
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	w8, [x19, #24]
	ldr	x9, [x19, #16]
	cbnz	x9, LBB0_5
LBB0_10:
	mov	w8, #10176
	movk	w8, #9, lsl #16
	cmp	x23, x8
	b.ls	LBB0_13
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
LBB0_13:
	mov	w0, #1
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,8,3                        ; @ctx
	.comm	_ptls_openssl_sha256,4,2        ; @ptls_openssl_sha256
	.no_dead_strip	_validate_token
.subsections_via_symbols
