	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_ipsec_pcbctl
_tcp_ipsec_pcbctl:                      ## @tcp_ipsec_pcbctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	movq	_TCP_MD5SIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movq	_SOPT_GET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_INP_RLOCK
	movq	_INP_TIMEWAIT@GOTPCREL(%rip), %rax
	movq	_INP_DROPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r14)
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_INP_RUNLOCK
	jmp	LBB0_5
LBB0_1:
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_7:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_sooptcopyin
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	%r14, %rdi
	callq	_INP_WLOCK
	movq	_INP_TIMEWAIT@GOTPCREL(%rip), %rax
	movq	_INP_DROPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r14)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_INP_WUNLOCK
LBB0_5:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_6:
	movq	%r14, %rdi
	callq	_intotcpcb
	movq	_TF_SIGNATURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	setne	%dl
	movl	%edx, -20(%rbp)
	movq	%r14, %rdi
	callq	_INP_RUNLOCK
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_sooptcopyout
	jmp	LBB0_14
LBB0_10:
	movq	%r14, %rdi
	callq	_intotcpcb
	cmpl	$0, -20(%rbp)
	movq	_TF_SIGNATURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jle	LBB0_12
## %bb.11:
	orl	%ecx, (%rax)
	jmp	LBB0_13
LBB0_12:
	notl	%ecx
	andl	%ecx, (%rax)
LBB0_13:
	movq	%r14, %rdi
	callq	_INP_WUNLOCK
	xorl	%eax, %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_MD5SIG,8,3                 ## @TCP_MD5SIG
	.comm	_ENOPROTOOPT,4,2                ## @ENOPROTOOPT
	.comm	_SOPT_GET,8,3                   ## @SOPT_GET
	.comm	_INP_TIMEWAIT,4,2               ## @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ## @INP_DROPPED
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_TF_SIGNATURE,4,2               ## @TF_SIGNATURE
	.no_dead_strip	_tcp_ipsec_pcbctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_ipsec_pcbctl
_tcp_ipsec_pcbctl:                      ; @tcp_ipsec_pcbctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _TCP_MD5SIG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCP_MD5SIG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
Lloh3:
	adrp	x9, _SOPT_GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOPT_GET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_INP_RLOCK
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _INP_TIMEWAIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INP_TIMEWAIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _INP_DROPPED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _INP_DROPPED@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_INP_RUNLOCK
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_5:
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	mov	w3, #4
	bl	_sooptcopyin
	cbnz	w0, LBB0_14
; %bb.6:
	mov	x0, x19
	bl	_INP_WLOCK
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _INP_TIMEWAIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INP_TIMEWAIT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _INP_DROPPED@GOTPAGE
Lloh19:
	ldr	x10, [x10, _INP_DROPPED@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_INP_WUNLOCK
LBB0_8:
Lloh21:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_9:
	mov	x0, x19
	bl	_intotcpcb
	ldr	w8, [x0]
Lloh24:
	adrp	x9, _TF_SIGNATURE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TF_SIGNATURE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_INP_RUNLOCK
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_sooptcopyout
	b	LBB0_14
LBB0_10:
	mov	x0, x19
	bl	_intotcpcb
	ldr	w9, [sp, #12]
Lloh27:
	adrp	x8, _TF_SIGNATURE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TF_SIGNATURE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.11:
	ldr	w9, [x0]
	orr	w8, w9, w8
	b	LBB0_13
LBB0_12:
	ldr	w9, [x0]
	bic	w8, w9, w8
LBB0_13:
	str	w8, [x0]
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_MD5SIG,8,3                 ; @TCP_MD5SIG
	.comm	_ENOPROTOOPT,4,2                ; @ENOPROTOOPT
	.comm	_SOPT_GET,8,3                   ; @SOPT_GET
	.comm	_INP_TIMEWAIT,4,2               ; @INP_TIMEWAIT
	.comm	_INP_DROPPED,4,2                ; @INP_DROPPED
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_TF_SIGNATURE,4,2               ; @TF_SIGNATURE
	.no_dead_strip	_tcp_ipsec_pcbctl
.subsections_via_symbols
