	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_closed
_sdp_closed:                            ## @sdp_closed
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_SDP_WLOCK_ASSERT
	movq	_SDP_DROPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_soisdisconnected
	movq	_SDP_SOCKREF@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_SS_PROTOREF@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	andl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_SDP_WUNLOCK
	movq	%r14, %rdi
	callq	_SOCK_LOCK
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_sofree
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDP_DROPPED,4,2                ## @SDP_DROPPED
	.comm	_SDP_SOCKREF,4,2                ## @SDP_SOCKREF
	.comm	_SS_PROTOREF,4,2                ## @SS_PROTOREF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdp_closed: !SS_PROTOREF"

	.no_dead_strip	_sdp_closed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_closed
_sdp_closed:                            ; @sdp_closed
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_SDP_WLOCK_ASSERT
Lloh0:
	adrp	x8, _SDP_DROPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDP_DROPPED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x20, [x19, #8]
	mov	x0, x20
	bl	_soisdisconnected
	ldr	w8, [x19]
Lloh3:
	adrp	x21, _SDP_SOCKREF@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SDP_SOCKREF@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x20]
Lloh5:
	adrp	x22, _SS_PROTOREF@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SS_PROTOREF@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w0, w9, w8
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_SDP_WUNLOCK
	mov	x0, x20
	bl	_SOCK_LOCK
	ldr	w8, [x22]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_sofree
	mov	x19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SDP_DROPPED,4,2                ; @SDP_DROPPED
	.comm	_SDP_SOCKREF,4,2                ; @SDP_SOCKREF
	.comm	_SS_PROTOREF,4,2                ; @SS_PROTOREF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdp_closed: !SS_PROTOREF"

	.no_dead_strip	_sdp_closed
.subsections_via_symbols
