	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_fastopen_connect           ## -- Begin function tcp_fastopen_connect
	.p2align	4, 0x90
_tcp_fastopen_connect:                  ## @tcp_fastopen_connect
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	movq	24(%rdi), %rdi
	leaq	-32(%rbp), %rsi
	callq	_tcp_fastopen_ccache_lookup
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.10:
	xorl	%eax, %eax
	callq	_getsbinuptime
	movq	_TF_FASTOPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
LBB0_11:
	movq	-32(%rbp), %rdi
	callq	_CCB_UNLOCK
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_tcp_mss
	jmp	LBB0_12
LBB0_2:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	jle	LBB0_5
## %bb.3:
	movq	(%r14), %rax
	movq	_TCP_FASTOPEN_PSK_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	20(%r14), %edi
	movq	24(%rbx), %rsi
	callq	_tcp_fastopen_make_psk_cookie
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	setne	%r15b
	jmp	LBB0_6
LBB0_5:
	movq	%rdx, (%r14)
	movl	20(%r14), %edi
	movq	24(%rbx), %rsi
	callq	_memcpy
	xorl	%r15d, %r15d
LBB0_6:
	movl	16(%rbx), %ebx
	movq	-32(%rbp), %rdi
	callq	_CCB_UNLOCK
	movq	(%r14), %rax
	movq	_TCP_FASTOPEN_PSK_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	testb	%r15b, %r15b
	je	LBB0_9
## %bb.8:
	movq	_TCP_FASTOPEN_COOKIE_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	movl	20(%r14), %edi
	movq	(%rax), %rdx
	leaq	-40(%rbp), %rsi
	callq	_memcpy
LBB0_9:
	xorl	%esi, %esi
	cmpl	$1, %ebx
	sbbl	%esi, %esi
	orl	%ebx, %esi
	movq	%r14, %rdi
	callq	_tcp_mss
	movl	12(%r14), %eax
	movl	%eax, 16(%r14)
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_FASTOPEN_PSK_LEN,8,3       ## @TCP_FASTOPEN_PSK_LEN
	.comm	_TCP_FASTOPEN_COOKIE_LEN,8,3    ## @TCP_FASTOPEN_COOKIE_LEN
	.comm	_V_tcp_fastopen_path_disable_time,8,3 ## @V_tcp_fastopen_path_disable_time
	.comm	_TF_FASTOPEN,4,2                ## @TF_FASTOPEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_fastopen_connect           ; -- Begin function tcp_fastopen_connect
	.p2align	2
_tcp_fastopen_connect:                  ; @tcp_fastopen_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp]
	ldr	x0, [x0, #24]
	add	x1, sp, #8
	bl	_tcp_fastopen_ccache_lookup
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
	bl	_getsbinuptime
Lloh0:
	adrp	x8, _TF_FASTOPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TF_FASTOPEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
LBB0_3:
	ldr	x0, [sp, #8]
	bl	_CCB_UNLOCK
	mov	x0, x19
	mov	w1, #-1
	bl	_tcp_mss
	b	LBB0_11
LBB0_4:
	ldr	x2, [x20, #8]
Lloh3:
	adrp	x21, _TCP_FASTOPEN_PSK_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TCP_FASTOPEN_PSK_LEN@GOTPAGEOFF]
	cmp	x2, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x19, #20]
	ldr	x1, [x20, #24]
	bl	_tcp_fastopen_make_psk_cookie
	str	x0, [sp]
	cmp	x0, #0
	cset	w22, ne
	b	LBB0_8
LBB0_7:
	str	x2, [x19]
	ldr	w0, [x19, #20]
	ldr	x1, [x20, #24]
	bl	_memcpy
	mov	w22, #0
LBB0_8:
	ldr	w20, [x20, #16]
	ldr	x0, [sp, #8]
	bl	_CCB_UNLOCK
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	ccmp	w22, #0, #4, eq
	b.eq	LBB0_10
; %bb.9:
Lloh5:
	adrp	x8, _TCP_FASTOPEN_COOKIE_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCP_FASTOPEN_COOKIE_LEN@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19]
	ldr	w0, [x19, #20]
	ldr	x2, [x8]
	mov	x1, sp
	bl	_memcpy
LBB0_10:
	cmp	w20, #0
	csinv	w1, w20, wzr, ne
	mov	x0, x19
	bl	_tcp_mss
	ldr	w8, [x19, #12]
	str	w8, [x19, #16]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_FASTOPEN_PSK_LEN,8,3       ; @TCP_FASTOPEN_PSK_LEN
	.comm	_TCP_FASTOPEN_COOKIE_LEN,8,3    ; @TCP_FASTOPEN_COOKIE_LEN
	.comm	_V_tcp_fastopen_path_disable_time,8,3 ; @V_tcp_fastopen_path_disable_time
	.comm	_TF_FASTOPEN,4,2                ; @TF_FASTOPEN
.subsections_via_symbols
