	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_ctloutput                  ## -- Begin function tcp_ctloutput
	.p2align	4, 0x90
_tcp_ctloutput:                         ## @tcp_ctloutput
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_sotoinpcb
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	(%rbx), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_INP_WLOCK
	movq	_INP_TIMEWAIT@GOTPCREL(%rip), %rax
	movq	_INP_DROPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 4(%r12)
	je	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	callq	_INP_WUNLOCK
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r13d
LBB0_4:
	movl	%r13d, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	callq	_intotcpcb
	movq	%rax, %r15
	movl	12(%rbx), %eax
	movq	_SOPT_SET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
## %bb.7:
	movl	8(%rbx), %ecx
	movq	_TCP_FUNCTION_BLK@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_30
## %bb.8:
	movq	%r12, %rdi
	callq	_INP_WUNLOCK
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	callq	_sooptcopyin
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.9:
	movq	%r12, %rdi
	callq	_INP_WLOCK_RECHECK
	leaq	-56(%rbp), %rdi
	callq	_find_and_ref_tcp_functions
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	cmpq	%rax, 24(%r15)
	je	LBB0_12
## %bb.13:
	movq	(%r15), %rax
	movq	_TCPS_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.14:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	*%rax
	movl	%eax, %r13d
	jmp	LBB0_17
LBB0_30:
	movq	_SOPT_GET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_33
## %bb.31:
	movl	8(%rbx), %eax
	movq	_TCP_FUNCTION_BLK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_32
LBB0_33:
	movq	24(%r15), %rax
	movq	24(%rax), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_12:
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_refcount_release
	movq	%r12, %rdi
	callq	_INP_WUNLOCK
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_32:
	movq	%r15, %rdi
	callq	_tcp_ctloutput.cold.1
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_17:
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.18:
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_refcount_release
	jmp	LBB0_29
LBB0_19:
	movq	_TCP_FUNC_BEING_REMOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_21
## %bb.20:
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_refcount_release
LBB0_10:
	movq	%r12, %rdi
	callq	_INP_WUNLOCK
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_21:
	movq	24(%r15), %rax
	movq	40(%rax), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_23:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movq	%r15, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_28
## %bb.25:
	movl	%eax, %r13d
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_refcount_release
	movq	24(%r15), %rax
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.26:
	movq	%r15, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_29
## %bb.27:
	movq	%r12, %rdi
	callq	_INP_WUNLOCK
	movq	%r14, %rdi
	callq	_soabort
	jmp	LBB0_4
LBB0_28:
	movq	24(%r15), %rdi
	addq	$32, %rdi
	callq	_refcount_release
	movq	%rbx, 24(%r15)
	xorl	%r13d, %r13d
LBB0_29:
	movq	%r12, %rdi
	callq	_INP_WUNLOCK
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function tcp_ctloutput.cold.1
_tcp_ctloutput.cold.1:                  ## @tcp_ctloutput.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rdi), %rax
	movl	36(%rax), %esi
	movq	_TCP_FUNCTION_NAME_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	ud2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp_ctloutput: inp == NULL"

	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_INP_TIMEWAIT,4,2               ## @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ## @INP_DROPPED
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_SOPT_SET,4,2                   ## @SOPT_SET
	.comm	_TCP_FUNCTION_BLK,4,2           ## @TCP_FUNCTION_BLK
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_TCPS_CLOSED,8,3                ## @TCPS_CLOSED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TCP_FUNC_BEING_REMOVED,4,2     ## @TCP_FUNC_BEING_REMOVED
	.comm	_SOPT_GET,4,2                   ## @SOPT_GET
	.comm	_TCP_FUNCTION_NAME_LEN_MAX,4,2  ## @TCP_FUNCTION_NAME_LEN_MAX
	.comm	_HPTS_REMOVE_ALL,4,2            ## @HPTS_REMOVE_ALL
	.comm	_INC_IPV6MINMTU,4,2             ## @INC_IPV6MINMTU
	.comm	_INC_ISIPV6,4,2                 ## @INC_ISIPV6
	.comm	_INP_IPV6PROTO,4,2              ## @INP_IPV6PROTO
	.comm	_IP6PO_MINMTU_ALL,8,3           ## @IP6PO_MINMTU_ALL
	.comm	_IPPROTO_IPV6,8,3               ## @IPPROTO_IPV6
	.comm	_IPV6_USE_MIN_MTU,4,2           ## @IPV6_USE_MIN_MTU
	.comm	_TCP6_MSS,8,3                   ## @TCP6_MSS
	.comm	_TCPS_SYN_SENT,8,3              ## @TCPS_SYN_SENT
	.comm	_TF_TOE,4,2                     ## @TF_TOE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_ctloutput                  ; -- Begin function tcp_ctloutput
	.p2align	2
_tcp_ctloutput:                         ; @tcp_ctloutput
	.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	x22, x1
	mov	x20, x0
	bl	_sotoinpcb
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.1:
	mov	x0, x19
	bl	_INP_WLOCK
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _INP_TIMEWAIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INP_TIMEWAIT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _INP_DROPPED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _INP_DROPPED@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_INP_WUNLOCK
Lloh11:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
LBB0_3:
	ldr	w22, [x8]
	b	LBB0_17
LBB0_4:
	mov	x0, x19
	bl	_intotcpcb
	mov	x21, x0
	ldr	w8, [x22, #12]
Lloh13:
	adrp	x9, _SOPT_SET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SOPT_SET@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.5:
	ldr	w9, [x22, #8]
Lloh16:
	adrp	x10, _TCP_FUNCTION_BLK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TCP_FUNCTION_BLK@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	x1, sp
	mov	x0, x22
	mov	w2, #16
	mov	w3, #16
	bl	_sooptcopyin
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.7:
	mov	x0, x19
	bl	_INP_WLOCK_RECHECK
	mov	x0, sp
	bl	_find_and_ref_tcp_functions
	cbz	x0, LBB0_23
; %bb.8:
	mov	x23, x0
	ldr	x8, [x21, #24]
	cmp	x8, x0
	b.eq	LBB0_15
; %bb.9:
	ldr	x8, [x21]
Lloh19:
	adrp	x9, _TCPS_CLOSED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TCPS_CLOSED@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.10:
	ldr	x8, [x23]
	cbz	x8, LBB0_18
; %bb.11:
	mov	x0, x21
	blr	x8
	mov	x22, x0
	b	LBB0_19
LBB0_12:
Lloh22:
	adrp	x9, _SOPT_GET@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SOPT_GET@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x22, #8]
Lloh25:
	adrp	x9, _TCP_FUNCTION_BLK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TCP_FUNCTION_BLK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_33
LBB0_14:
	ldr	x8, [x21, #24]
	ldr	x4, [x8, #24]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	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
	br	x4
LBB0_15:
	add	x0, x23, #32
	bl	_refcount_release
	mov	x0, x19
	bl	_INP_WUNLOCK
LBB0_16:
	mov	w22, #0
LBB0_17:
	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
	add	sp, sp, #80
	ret
LBB0_18:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w22, [x8]
LBB0_19:
	cbz	w22, LBB0_21
; %bb.20:
	add	x0, x23, #32
	bl	_refcount_release
	b	LBB0_32
LBB0_21:
	ldr	w8, [x23, #8]
Lloh31:
	adrp	x9, _TCP_FUNC_BEING_REMOVED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TCP_FUNC_BEING_REMOVED@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.22:
	add	x0, x23, #32
	bl	_refcount_release
LBB0_23:
	mov	x0, x19
	bl	_INP_WUNLOCK
Lloh34:
	adrp	x8, _ENOENT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_3
LBB0_24:
	ldr	x8, [x21, #24]
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_26
; %bb.25:
	mov	x0, x21
	mov	w1, #0
	blr	x8
LBB0_26:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_31
; %bb.27:
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_31
; %bb.28:
	mov	x22, x0
	add	x0, x23, #32
	bl	_refcount_release
	ldr	x8, [x21, #24]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_32
; %bb.29:
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_32
; %bb.30:
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	x0, x20
	bl	_soabort
	b	LBB0_17
LBB0_31:
	ldr	x8, [x21, #24]
	add	x0, x8, #32
	bl	_refcount_release
	mov	w22, #0
	str	x23, [x21, #24]
LBB0_32:
	mov	x0, x19
	bl	_INP_WUNLOCK
	b	LBB0_17
LBB0_33:
	mov	x0, x21
	bl	_tcp_ctloutput.cold.1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function tcp_ctloutput.cold.1
_tcp_ctloutput.cold.1:                  ; @tcp_ctloutput.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #24]
	ldr	w1, [x8, #36]
Lloh36:
	adrp	x8, _TCP_FUNCTION_NAME_LEN_MAX@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TCP_FUNCTION_NAME_LEN_MAX@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_strncpy
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp_ctloutput: inp == NULL"

	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_INP_TIMEWAIT,4,2               ; @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ; @INP_DROPPED
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_SOPT_SET,4,2                   ; @SOPT_SET
	.comm	_TCP_FUNCTION_BLK,4,2           ; @TCP_FUNCTION_BLK
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_TCPS_CLOSED,8,3                ; @TCPS_CLOSED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TCP_FUNC_BEING_REMOVED,4,2     ; @TCP_FUNC_BEING_REMOVED
	.comm	_SOPT_GET,4,2                   ; @SOPT_GET
	.comm	_TCP_FUNCTION_NAME_LEN_MAX,4,2  ; @TCP_FUNCTION_NAME_LEN_MAX
	.comm	_HPTS_REMOVE_ALL,4,2            ; @HPTS_REMOVE_ALL
	.comm	_INC_IPV6MINMTU,4,2             ; @INC_IPV6MINMTU
	.comm	_INC_ISIPV6,4,2                 ; @INC_ISIPV6
	.comm	_INP_IPV6PROTO,4,2              ; @INP_IPV6PROTO
	.comm	_IP6PO_MINMTU_ALL,8,3           ; @IP6PO_MINMTU_ALL
	.comm	_IPPROTO_IPV6,8,3               ; @IPPROTO_IPV6
	.comm	_IPV6_USE_MIN_MTU,4,2           ; @IPV6_USE_MIN_MTU
	.comm	_TCP6_MSS,8,3                   ; @TCP6_MSS
	.comm	_TCPS_SYN_SENT,8,3              ; @TCPS_SYN_SENT
	.comm	_TF_TOE,4,2                     ; @TF_TOE
.subsections_via_symbols
