	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_ctloutput
_sdp_ctloutput:                         ## @sdp_ctloutput
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_sdp_sk
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	8(%r15), %ecx
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ecx
	jne	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_SDP_WLOCK
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_sdp_start_keepalive_timer
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_sdp_stop_keepalive_timer
LBB0_5:
	movq	%r14, %rdi
	callq	_SDP_WUNLOCK
	movq	(%r15), %rax
LBB0_6:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.7:
	movq	%r14, %rdi
	callq	_SDP_WLOCK
	movl	(%r14), %eax
	movq	_SDP_TIMEWAIT@GOTPCREL(%rip), %rcx
	movq	_SDP_DROPPED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_SDP_WUNLOCK
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	12(%r15), %ecx
	cmpl	$130, %ecx
	je	LBB0_17
## %bb.10:
	cmpl	$129, %ecx
	jne	LBB0_22
## %bb.11:
	movl	8(%r15), %ebx
	movq	%r14, %rdi
	callq	_SDP_WUNLOCK
	cmpl	$128, %ebx
	jne	LBB0_20
## %bb.12:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_sooptcopyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.13:
	movq	%r14, %rdi
	callq	_SDP_WLOCK_RECHECK
	movq	_SDP_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$0, -36(%rbp)
	je	LBB0_15
## %bb.14:
	orl	(%r14), %eax
	jmp	LBB0_16
LBB0_17:
	cmpl	$128, 8(%r15)
	jne	LBB0_19
## %bb.18:
	movq	_SDP_NODELAY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -36(%rbp)
	movq	%r14, %rdi
	callq	_SDP_WUNLOCK
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_sooptcopyout
	movl	%eax, %ebx
	jmp	LBB0_22
LBB0_19:
	movq	%r14, %rdi
	callq	_SDP_WUNLOCK
LBB0_20:
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_15:
	notl	%eax
	andl	(%r14), %eax
LBB0_16:
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_sdp_do_posts
	movq	%r14, %rdi
	callq	_SDP_WUNLOCK
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,8,3                 ## @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_SDP_TIMEWAIT,4,2               ## @SDP_TIMEWAIT
	.comm	_SDP_DROPPED,4,2                ## @SDP_DROPPED
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_SDP_NODELAY,4,2                ## @SDP_NODELAY
	.comm	_ENOPROTOOPT,4,2                ## @ENOPROTOOPT
	.no_dead_strip	_sdp_ctloutput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_ctloutput
_sdp_ctloutput:                         ; @sdp_ctloutput
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	bl	_sdp_sk
	mov	x19, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w9, [x20, #8]
Lloh3:
	adrp	x22, _SO_KEEPALIVE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SO_KEEPALIVE@GOTPAGEOFF]
	ldr	w10, [x22]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_SDP_WLOCK
	ldr	w8, [x21]
	ldr	w9, [x22]
	mov	x0, x21
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	bl	_sdp_start_keepalive_timer
	b	LBB0_5
LBB0_4:
	bl	_sdp_stop_keepalive_timer
LBB0_5:
	mov	x0, x19
	bl	_SDP_WUNLOCK
	ldr	x8, [x20]
LBB0_6:
Lloh5:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.7:
	mov	x0, x19
	bl	_SDP_WLOCK
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _SDP_TIMEWAIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDP_TIMEWAIT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _SDP_DROPPED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SDP_DROPPED@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_SDP_WUNLOCK
Lloh14:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_10:
	ldr	w9, [x20, #12]
	cmp	w9, #130
	b.eq	LBB0_16
; %bb.11:
	cmp	w9, #129
	b.ne	LBB0_22
; %bb.12:
	ldr	w21, [x20, #8]
	mov	x0, x19
	bl	_SDP_WUNLOCK
	cmp	w21, #128
	b.ne	LBB0_19
; %bb.13:
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	mov	w3, #4
	bl	_sooptcopyin
	cbnz	w0, LBB0_23
; %bb.14:
	mov	x0, x19
	bl	_SDP_WLOCK_RECHECK
Lloh16:
	adrp	x8, _SDP_NODELAY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDP_NODELAY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	cbz	w9, LBB0_20
; %bb.15:
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_21
LBB0_16:
	ldr	w9, [x20, #8]
	cmp	w9, #128
	b.ne	LBB0_18
; %bb.17:
Lloh19:
	adrp	x9, _SDP_NODELAY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SDP_NODELAY@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_SDP_WUNLOCK
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_sooptcopyout
	b	LBB0_23
LBB0_18:
	mov	x0, x19
	bl	_SDP_WUNLOCK
LBB0_19:
Lloh22:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
	b	LBB0_9
LBB0_20:
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_21:
	str	w8, [x19]
	mov	x0, x19
	bl	_sdp_do_posts
	mov	x0, x19
	bl	_SDP_WUNLOCK
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,8,3                 ; @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_SDP_TIMEWAIT,4,2               ; @SDP_TIMEWAIT
	.comm	_SDP_DROPPED,4,2                ; @SDP_DROPPED
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_SDP_NODELAY,4,2                ; @SDP_NODELAY
	.comm	_ENOPROTOOPT,4,2                ; @ENOPROTOOPT
	.no_dead_strip	_sdp_ctloutput
.subsections_via_symbols
