	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_ipsec_output
_tcp_ipsec_output:                      ## @tcp_ipsec_output
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_setsockaddrs
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_IPSEC_MODE_TCPMD5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_key_allocsa_tcpmd5
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%r14, %rcx
	callq	_tcp_signature_compute
	leaq	-32(%rbp), %rdi
	callq	_key_freesav
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_tcps_sig_err_buildsig@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_KMOD_TCPSTAT_INC
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_IPSEC_MODE_TCPMD5,4,2          ## @IPSEC_MODE_TCPMD5
	.comm	_tcps_sig_err_buildsig,4,2      ## @tcps_sig_err_buildsig
	.comm	_EACCES,4,2                     ## @EACCES
	.no_dead_strip	_tcp_ipsec_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_ipsec_output
_tcp_ipsec_output:                      ; @tcp_ipsec_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x8, sp, #8
	add	x1, x8, #20
	add	x2, x8, #16
	bl	_setsockaddrs
Lloh0:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IPSEC_MODE_TCPMD5@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPSEC_MODE_TCPMD5@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	str	xzr, [sp, #8]
	add	x0, sp, #8
	bl	_key_allocsa_tcpmd5
	str	x0, [sp]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_tcp_signature_compute
	mov	x0, sp
	bl	_key_freesav
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _tcps_sig_err_buildsig@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tcps_sig_err_buildsig@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_KMOD_TCPSTAT_INC
Lloh9:
	adrp	x8, _EACCES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_3:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_IPSEC_MODE_TCPMD5,4,2          ; @IPSEC_MODE_TCPMD5
	.comm	_tcps_sig_err_buildsig,4,2      ; @tcps_sig_err_buildsig
	.comm	_EACCES,4,2                     ; @EACCES
	.no_dead_strip	_tcp_ipsec_output
.subsections_via_symbols
