	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_shutdown
_sdp_shutdown:                          ## @sdp_shutdown
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_sdp_sk
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SDP_WLOCK
	movq	_SDP_TIMEWAIT@GOTPCREL(%rip), %rax
	movq	_SDP_DROPPED@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	callq	_socantsendmore
	movq	%rbx, %rdi
	callq	_sdp_usrclosed
	movl	(%r15), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_sdp_output_disconnect
LBB0_4:
	movq	%rbx, %rdi
	callq	_SDP_WUNLOCK
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDP_TIMEWAIT,4,2               ## @SDP_TIMEWAIT
	.comm	_SDP_DROPPED,4,2                ## @SDP_DROPPED
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.no_dead_strip	_sdp_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_shutdown
_sdp_shutdown:                          ; @sdp_shutdown
	.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	x20, x0
	bl	_sdp_sk
	mov	x19, x0
	bl	_SDP_WLOCK
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SDP_TIMEWAIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDP_TIMEWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x21, _SDP_DROPPED@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SDP_DROPPED@GOTPAGEOFF]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_socantsendmore
	mov	x0, x19
	bl	_sdp_usrclosed
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_sdp_output_disconnect
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_SDP_WUNLOCK
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SDP_TIMEWAIT,4,2               ; @SDP_TIMEWAIT
	.comm	_SDP_DROPPED,4,2                ; @SDP_DROPPED
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.no_dead_strip	_sdp_shutdown
.subsections_via_symbols
