	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_connect
_sdp_connect:                           ## @sdp_connect
	.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
	cmpl	$16, (%rsi)
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %r12
	movq	(%rsi), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	8(%r12), %edi
	callq	_ntohl
	movl	%eax, %edi
	callq	_IN_MULTICAST
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	8(%r12), %rsi
	movl	(%r14), %edi
	callq	_prison_remote_ip4
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:
	movq	%r15, %rdi
	callq	_sdp_sk
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_SDP_WLOCK
	movq	_SDP_TIMEWAIT@GOTPCREL(%rip), %rax
	movq	_SDP_DROPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r15)
	je	LBB0_10
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_sdp_start_connect
	movl	%eax, %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_SDP_WUNLOCK
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_SDP_TIMEWAIT,4,2               ## @SDP_TIMEWAIT
	.comm	_SDP_DROPPED,4,2                ## @SDP_DROPPED
	.no_dead_strip	_sdp_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_connect
_sdp_connect:                           ; @sdp_connect
	.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
	ldr	w8, [x1]
	cmp	w8, #16
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x19, x2
	mov	x21, x0
	mov	x22, x20
	ldr	w0, [x22, #8]!
	bl	_ntohl
	bl	_IN_MULTICAST
	cbz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w22, [x8]
LBB0_6:
	mov	x0, x22
	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
LBB0_7:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_prison_remote_ip4
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.8:
	mov	x0, x21
	bl	_sdp_sk
	mov	x21, x0
	bl	_SDP_WLOCK
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _SDP_TIMEWAIT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SDP_TIMEWAIT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _SDP_DROPPED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SDP_DROPPED@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sdp_start_connect
	mov	x22, x0
LBB0_11:
	mov	x0, x21
	bl	_SDP_WUNLOCK
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_SDP_TIMEWAIT,4,2               ; @SDP_TIMEWAIT
	.comm	_SDP_DROPPED,4,2                ; @SDP_DROPPED
	.no_dead_strip	_sdp_connect
.subsections_via_symbols
