	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_fastopen_ccache_create
_tcp_fastopen_ccache_create:            ## @tcp_fastopen_ccache_create
	.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	%r8, %r12
	movl	%ecx, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_CCB_LOCK_ASSERT
	movq	(%r14), %rcx
	movq	_V_tcp_fastopen_ccache@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_2
## %bb.1:
	movl	8(%rax), %edi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_uma_zalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %rbx
	incq	(%r14)
	jmp	LBB0_6
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %r12
	movq	_bucket_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_TAILQ_LAST
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_cce_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_6:
	addq	$8, %r14
	movq	_cce_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	_INC_ISIPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	%rax, %rcx
	andl	(%r13), %edx
	je	LBB0_8
## %bb.7:
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
LBB0_8:
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	cmpq	(%rax), %rcx
	jne	LBB0_10
## %bb.9:
	movl	20(%r13), %eax
	movl	%eax, 52(%rbx)
	movl	16(%r13), %eax
	movl	%eax, 44(%rbx)
	jmp	LBB0_11
LBB0_10:
	movl	12(%r13), %eax
	movl	%eax, 48(%rbx)
	movl	8(%r13), %eax
	movl	%eax, 40(%rbx)
LBB0_11:
	movl	4(%r13), %eax
	movl	%eax, 36(%rbx)
	testb	$1, %r15b
	jne	LBB0_15
## %bb.12:
	movq	_TCP_FASTOPEN_MIN_COOKIE_LEN@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jg	LBB0_15
## %bb.13:
	movq	_TCP_FASTOPEN_MAX_COOKIE_LEN@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jl	LBB0_15
## %bb.14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movl	%r15d, 8(%rbx)
	movl	32(%rbx), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_15:
	movq	$0, 24(%rbx)
	movl	$0, 8(%rbx)
	xorl	%eax, %eax
	callq	_getsbinuptime
LBB0_16:
	movq	%rax, 16(%rbx)
	jmp	LBB0_17
LBB0_3:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_tcp_fastopen_ccache,16,3     ## @V_tcp_fastopen_ccache
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_bucket_entries,4,2             ## @bucket_entries
	.comm	_cce_link,4,2                   ## @cce_link
	.comm	_INC_ISIPV6,4,2                 ## @INC_ISIPV6
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_TCP_FASTOPEN_MIN_COOKIE_LEN,4,2 ## @TCP_FASTOPEN_MIN_COOKIE_LEN
	.comm	_TCP_FASTOPEN_MAX_COOKIE_LEN,4,2 ## @TCP_FASTOPEN_MAX_COOKIE_LEN
	.no_dead_strip	_tcp_fastopen_ccache_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_fastopen_ccache_create
_tcp_fastopen_ccache_create:            ; @tcp_fastopen_ccache_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	bl	_CCB_LOCK_ASSERT
	ldr	x9, [x24]
Lloh0:
	adrp	x8, _V_tcp_fastopen_ccache@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_tcp_fastopen_ccache@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh2:
	adrp	x26, _cce_link@GOTPAGE
Lloh3:
	ldr	x26, [x26, _cce_link@GOTPAGEOFF]
	cmp	x9, x10
	b.ge	LBB0_3
; %bb.1:
	ldr	w0, [x8, #8]
Lloh4:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_uma_zalloc
	cbz	x0, LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	x8, [x24]
	add	x8, x8, #1
	str	x8, [x24]
	b	LBB0_5
LBB0_3:
	add	x25, x24, #8
Lloh7:
	adrp	x8, _bucket_entries@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bucket_entries@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_TAILQ_LAST
	mov	x22, x0
	cbz	x0, LBB0_14
; %bb.4:
	ldr	w2, [x26]
	mov	x0, x25
	mov	x1, x22
	bl	_TAILQ_REMOVE
LBB0_5:
	add	x0, x24, #8
	ldr	w2, [x26]
	mov	x1, x22
	bl	_TAILQ_INSERT_HEAD
Lloh10:
	adrp	x8, _INC_ISIPV6@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INC_ISIPV6@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x10, _AF_INET6@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AF_INET6@GOTPAGEOFF]
Lloh15:
	adrp	x11, _AF_INET@GOTPAGE
Lloh16:
	ldr	x11, [x11, _AF_INET@GOTPAGEOFF]
	tst	w8, w9
	csel	x8, x11, x10, eq
	ldr	x8, [x8]
	str	x8, [x22]
	ldr	x9, [x11]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldp	w9, w8, [x23, #16]
	str	w8, [x22, #52]
	str	w9, [x22, #44]
	b	LBB0_8
LBB0_7:
	ldp	w9, w8, [x23, #8]
	str	w8, [x22, #48]
	str	w9, [x22, #40]
LBB0_8:
	ldr	w8, [x23, #4]
	str	w8, [x22, #36]
	tbnz	w19, #0, LBB0_12
; %bb.9:
Lloh17:
	adrp	x8, _TCP_FASTOPEN_MIN_COOKIE_LEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TCP_FASTOPEN_MIN_COOKIE_LEN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w19
	b.gt	LBB0_12
; %bb.10:
Lloh20:
	adrp	x8, _TCP_FASTOPEN_MAX_COOKIE_LEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCP_FASTOPEN_MAX_COOKIE_LEN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w19
	b.lt	LBB0_12
; %bb.11:
	str	x21, [x22, #24]
	str	w19, [x22, #8]
	ldr	w0, [x22, #32]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	x0, #0
	b	LBB0_13
LBB0_12:
	str	xzr, [x22, #24]
	str	wzr, [x22, #8]
	bl	_getsbinuptime
LBB0_13:
	str	x0, [x22, #16]
LBB0_14:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_V_tcp_fastopen_ccache,16,3     ; @V_tcp_fastopen_ccache
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_bucket_entries,4,2             ; @bucket_entries
	.comm	_cce_link,4,2                   ; @cce_link
	.comm	_INC_ISIPV6,4,2                 ; @INC_ISIPV6
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_TCP_FASTOPEN_MIN_COOKIE_LEN,4,2 ; @TCP_FASTOPEN_MIN_COOKIE_LEN
	.comm	_TCP_FASTOPEN_MAX_COOKIE_LEN,4,2 ; @TCP_FASTOPEN_MAX_COOKIE_LEN
	.no_dead_strip	_tcp_fastopen_ccache_create
.subsections_via_symbols
