	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_hc_insert
_tcp_hc_insert:                         ## @tcp_hc_insert
	.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	_V_tcp_use_hostcache@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_INC_ISIPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	leaq	12(%rbx), %rdi
	callq	_HOSTCACHE_HASH6
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_4:
	leaq	4(%rbx), %rdi
	callq	_HOSTCACHE_HASH
LBB0_5:
	movq	_V_tcp_hostcache@GOTPCREL(%rip), %rbx
	movq	24(%rbx), %r15
	movslq	%eax, %r13
	shlq	$4, %r13
	leaq	(%r15,%r13), %r12
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_THC_LOCK
	movq	(%r15,%r13), %rax
	cmpq	(%rbx), %rax
	jge	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jge	LBB0_7
## %bb.9:
	movl	36(%rbx), %edi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_uma_zalloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	jmp	LBB0_11
LBB0_7:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13), %r12
	addq	$8, %r12
	movq	_hc_qhead@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_TAILQ_LAST
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	movq	%rax, %r14
	movq	_rmx_q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movq	24(%rbx), %rax
	decq	(%rax,%r13)
	decq	8(%rbx)
	movq	_tcps_hc_bucketoverflow@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
LBB0_13:
	leaq	(%r15,%r13), %r12
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_bzero
	movq	_INC_ISIPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movl	12(%rcx), %eax
	movl	%eax, 24(%r14)
	movl	8(%rcx), %eax
	movl	%eax, 20(%r14)
	jmp	LBB0_16
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_11:
	callq	_THC_UNLOCK
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_15:
	movl	4(%rcx), %eax
	movl	%eax, 16(%r14)
LBB0_16:
	movq	%r12, 8(%r14)
	movl	32(%rbx), %eax
	movl	%eax, (%r14)
	leaq	(%r15,%r13), %rdi
	addq	$8, %rdi
	movq	_rmx_q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	24(%rbx), %rax
	incq	(%rax,%r13)
	incq	8(%rbx)
	movq	_tcps_hc_added@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTAT_INC
LBB0_17:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_tcp_use_hostcache,4,2        ## @V_tcp_use_hostcache
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp_hc_insert with NULL in_conninfo pointer"

	.comm	_INC_ISIPV6,4,2                 ## @INC_ISIPV6
	.comm	_V_tcp_hostcache,40,3           ## @V_tcp_hostcache
	.comm	_hc_qhead,4,2                   ## @hc_qhead
	.comm	_rmx_q,4,2                      ## @rmx_q
	.comm	_tcps_hc_bucketoverflow,4,2     ## @tcps_hc_bucketoverflow
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_tcps_hc_added,4,2              ## @tcps_hc_added
	.no_dead_strip	_tcp_hc_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_hc_insert
_tcp_hc_insert:                         ; @tcp_hc_insert
	.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
Lloh0:
	adrp	x8, _V_tcp_use_hostcache@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_tcp_use_hostcache@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w8, [x19]
Lloh5:
	adrp	x24, _INC_ISIPV6@GOTPAGE
Lloh6:
	ldr	x24, [x24, _INC_ISIPV6@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	add	x0, x19, #12
	bl	_HOSTCACHE_HASH6
	b	LBB0_5
LBB0_3:
	mov	x20, #0
	b	LBB0_15
LBB0_4:
	add	x0, x19, #4
	bl	_HOSTCACHE_HASH
LBB0_5:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh7:
	adrp	x23, _V_tcp_hostcache@GOTPAGE
Lloh8:
	ldr	x23, [x23, _V_tcp_hostcache@GOTPAGEOFF]
	ldr	x25, [x23, #24]
	sxtw	x20, w0
	add	x27, x25, w0, sxtw #4
	add	x21, x27, #12
	mov	x0, x21
	bl	_THC_LOCK
	ldr	x8, [x27]
	ldr	x9, [x23]
	lsl	x26, x20, #4
Lloh9:
	adrp	x28, _rmx_q@GOTPAGE
Lloh10:
	ldr	x28, [x28, _rmx_q@GOTPAGEOFF]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.6:
	ldp	x8, x9, [x23, #8]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.7:
	ldr	w0, [x23, #36]
Lloh11:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_uma_zalloc
	mov	x20, x0
	cbnz	x0, LBB0_10
	b	LBB0_12
LBB0_8:
	add	x8, x25, x20, lsl #4
	add	x22, x8, #8
Lloh14:
	adrp	x8, _hc_qhead@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hc_qhead@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_TAILQ_LAST
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.9:
	ldr	w2, [x28]
	mov	x0, x22
	mov	x1, x20
	bl	_TAILQ_REMOVE
	ldr	x8, [x23, #24]
	ldr	x9, [x8, x26]
	sub	x9, x9, #1
	str	x9, [x8, x26]
	ldr	x8, [x23, #8]
	sub	x8, x8, #1
	str	x8, [x23, #8]
Lloh17:
	adrp	x8, _tcps_hc_bucketoverflow@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tcps_hc_bucketoverflow@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
LBB0_10:
	mov	x0, x20
	mov	w1, #32
	bl	_bzero
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	ldr	d0, [x19, #8]
	stur	d0, [x20, #20]
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	bl	_THC_UNLOCK
	b	LBB0_15
LBB0_13:
	ldr	w8, [x19, #4]
	str	w8, [x20, #16]
LBB0_14:
	str	x27, [x20, #8]
	ldr	w8, [x23, #32]
	str	w8, [x20]
	add	x8, x25, x26
	add	x0, x8, #8
	ldr	w2, [x28]
	mov	x1, x20
	bl	_TAILQ_INSERT_HEAD
	ldr	x8, [x23, #24]
	ldr	x9, [x8, x26]
	add	x9, x9, #1
	str	x9, [x8, x26]
	ldr	x8, [x23, #8]
	add	x8, x8, #1
	str	x8, [x23, #8]
Lloh20:
	adrp	x8, _tcps_hc_added@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tcps_hc_added@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_TCPSTAT_INC
LBB0_15:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_V_tcp_use_hostcache,4,2        ; @V_tcp_use_hostcache
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp_hc_insert with NULL in_conninfo pointer"

	.comm	_INC_ISIPV6,4,2                 ; @INC_ISIPV6
	.comm	_V_tcp_hostcache,40,3           ; @V_tcp_hostcache
	.comm	_hc_qhead,4,2                   ; @hc_qhead
	.comm	_rmx_q,4,2                      ; @rmx_q
	.comm	_tcps_hc_bucketoverflow,4,2     ; @tcps_hc_bucketoverflow
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_tcps_hc_added,4,2              ; @tcps_hc_added
	.no_dead_strip	_tcp_hc_insert
.subsections_via_symbols
