	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_fastopen_check_cookie      ## -- Begin function tcp_fastopen_check_cookie
	.p2align	4, 0x90
_tcp_fastopen_check_cookie:             ## @tcp_fastopen_check_cookie
	.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, %r14
	movq	_V_tcp_fastopen_acceptany@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$0, (%r14)
	movl	$1, %ebx
	jmp	LBB0_17
LBB0_2:
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	-48(%rbp), %rdi
	callq	_TCP_FASTOPEN_KEYS_RLOCK
	movq	_TCP_FASTOPEN_COOKIE_LEN@GOTPCREL(%rip), %rcx
	movq	_V_tcp_fastopen_numkeys@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, (%rcx)
	jne	LBB0_3
## %bb.6:
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_V_tcp_fastopen_keys@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	decl	%r14d
	incl	%r12d
	movq	_V_tcp_fastopen_numkeys@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jae	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_V_tcp_fastopen_keys@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %edi
	movq	%r15, %rsi
	callq	_tcp_fastopen_make_cookie
	movl	%eax, -52(%rbp)
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	leaq	-52(%rbp), %rsi
	callq	_tcp_fastopen_find_cookie_match_locked
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_TCP_FASTOPEN_MAX_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_14
LBB0_3:
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_V_tcp_fastopen_keys@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rax,%rcx,4), %edi
	movq	%r15, %rsi
	callq	_tcp_fastopen_make_cookie
	movl	%eax, (%r14)
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_4:
	movl	$-1, %ebx
	jmp	LBB0_16
LBB0_11:
	movl	%eax, %ebx
LBB0_16:
	leaq	-48(%rbp), %rdi
	callq	_TCP_FASTOPEN_KEYS_RUNLOCK
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_tcp_fastopen_acceptany,8,3   ## @V_tcp_fastopen_acceptany
	.comm	_TCP_FASTOPEN_COOKIE_LEN,4,2    ## @TCP_FASTOPEN_COOKIE_LEN
	.comm	_V_tcp_fastopen_numkeys,4,2     ## @V_tcp_fastopen_numkeys
	.comm	_V_tcp_fastopen_keys,16,3       ## @V_tcp_fastopen_keys
	.comm	_TCP_FASTOPEN_MAX_KEYS,4,2      ## @TCP_FASTOPEN_MAX_KEYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_fastopen_check_cookie      ; -- Begin function tcp_fastopen_check_cookie
	.p2align	2
_tcp_fastopen_check_cookie:             ; @tcp_fastopen_check_cookie
	.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	x19, x3
Lloh0:
	adrp	x8, _V_tcp_fastopen_acceptany@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_tcp_fastopen_acceptany@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	str	wzr, [x19]
	mov	w22, #1
	b	LBB0_15
LBB0_2:
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_TCP_FASTOPEN_KEYS_RLOCK
Lloh3:
	adrp	x8, _TCP_FASTOPEN_COOKIE_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCP_FASTOPEN_COOKIE_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x23, _V_tcp_fastopen_numkeys@GOTPAGE
Lloh7:
	ldr	x23, [x23, _V_tcp_fastopen_numkeys@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w9, w22
	b.ne	LBB0_10
; %bb.3:
	cbz	w8, LBB0_9
; %bb.4:
	mov	w24, #0
Lloh8:
	adrp	x25, _V_tcp_fastopen_keys@GOTPAGE
Lloh9:
	ldr	x25, [x25, _V_tcp_fastopen_keys@GOTPAGEOFF]
	ldr	w26, [x25]
Lloh10:
	adrp	x27, _TCP_FASTOPEN_MAX_KEYS@GOTPAGE
Lloh11:
	ldr	x27, [x27, _TCP_FASTOPEN_MAX_KEYS@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	ldr	w0, [x8, w26, uxtw #2]
	mov	x1, x20
	bl	_tcp_fastopen_make_cookie
	str	w0, [sp, #4]
	cbnz	w24, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w0, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #4
	mov	x0, x21
	bl	_tcp_fastopen_find_cookie_match_locked
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	cmp	w26, #0
	csel	w8, w8, w26, eq
	sub	w26, w8, #1
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.lo	LBB0_5
LBB0_9:
	mov	w22, #0
	b	LBB0_14
LBB0_10:
	cbz	w8, LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _V_tcp_fastopen_keys@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V_tcp_fastopen_keys@GOTPAGEOFF]
	ldp	x8, x9, [x8]
	ldr	w0, [x9, x8, lsl #2]
	mov	x1, x20
	bl	_tcp_fastopen_make_cookie
	mov	w22, #0
	str	w0, [x19]
	b	LBB0_14
LBB0_12:
	mov	w22, #-1
	b	LBB0_14
LBB0_13:
	mov	x22, x0
LBB0_14:
	add	x0, sp, #8
	bl	_TCP_FASTOPEN_KEYS_RUNLOCK
LBB0_15:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V_tcp_fastopen_acceptany,8,3   ; @V_tcp_fastopen_acceptany
	.comm	_TCP_FASTOPEN_COOKIE_LEN,4,2    ; @TCP_FASTOPEN_COOKIE_LEN
	.comm	_V_tcp_fastopen_numkeys,4,2     ; @V_tcp_fastopen_numkeys
	.comm	_V_tcp_fastopen_keys,16,3       ; @V_tcp_fastopen_keys
	.comm	_TCP_FASTOPEN_MAX_KEYS,4,2      ; @TCP_FASTOPEN_MAX_KEYS
.subsections_via_symbols
