	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_usrclosed
_sdp_usrclosed:                         ## @sdp_usrclosed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_SDP_WLOCK_ASSERT
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_SDP_NEEDFIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
	jmp	LBB0_8
LBB0_2:
	movl	$133, (%rbx)
	movq	%rbx, %rdi
	callq	_SDP_WUNLOCK
	movq	%rbx, %rdi
	callq	_sdp_destroy_cma
	movq	%rbx, %rdi
	callq	_SDP_WLOCK
LBB0_3:
	movq	%rbx, %rdi
	callq	_sdp_closed
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	(%rbx), %eax
	jmp	LBB0_8
LBB0_6:
	movq	_TCPS_LAST_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_SDP_NEEDFIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	_TCPS_FIN_WAIT_1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_8:
	movq	_TCPS_FIN_WAIT_2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_9
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	jne	LBB0_10
## %bb.12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sdp_2msl_wait                  ## TAILCALL
LBB0_10:
	movl	4(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_soisdisconnected               ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdp_usrclosed: sdp_closed() returned NULL"

	.comm	_SDP_NEEDFIN,4,2                ## @SDP_NEEDFIN
	.comm	_TCPS_FIN_WAIT_1,4,2            ## @TCPS_FIN_WAIT_1
	.comm	_TCPS_LAST_ACK,4,2              ## @TCPS_LAST_ACK
	.comm	_TCPS_FIN_WAIT_2,4,2            ## @TCPS_FIN_WAIT_2
	.no_dead_strip	_sdp_usrclosed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_usrclosed
_sdp_usrclosed:                         ; @sdp_usrclosed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_SDP_WLOCK_ASSERT
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_8
; %bb.1:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x9, _SDP_NEEDFIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SDP_NEEDFIN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
	b	LBB0_8
LBB0_3:
	mov	w8, #133
	str	w8, [x19]
	mov	x0, x19
	bl	_SDP_WUNLOCK
	mov	x0, x19
	bl	_sdp_destroy_cma
	mov	x0, x19
	bl	_SDP_WLOCK
LBB0_4:
	mov	x0, x19
	bl	_sdp_closed
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w8, [x19]
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _TCPS_LAST_ACK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TCPS_LAST_ACK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _SDP_NEEDFIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDP_NEEDFIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, _TCPS_FIN_WAIT_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TCPS_FIN_WAIT_1@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_8:
Lloh14:
	adrp	x9, _TCPS_FIN_WAIT_2@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TCPS_FIN_WAIT_2@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdp_2msl_wait
LBB0_12:
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_soisdisconnected
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdp_usrclosed: sdp_closed() returned NULL"

	.comm	_SDP_NEEDFIN,4,2                ; @SDP_NEEDFIN
	.comm	_TCPS_FIN_WAIT_1,4,2            ; @TCPS_FIN_WAIT_1
	.comm	_TCPS_LAST_ACK,4,2              ; @TCPS_LAST_ACK
	.comm	_TCPS_FIN_WAIT_2,4,2            ; @TCPS_FIN_WAIT_2
	.no_dead_strip	_sdp_usrclosed
.subsections_via_symbols
