	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_connect
_do_connect:                            ## @do_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	movq	8(%rdi), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_1
LBB0_14:
	movq	8(%rbx), %rdi
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_15
## %bb.21:
	movq	16(%rdi), %rdi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_udp_connect
	jmp	LBB0_18
LBB0_15:
	cmpl	$131, %eax
	je	LBB0_22
## %bb.16:
	cmpl	$132, %eax
	jne	LBB0_20
## %bb.17:
	movl	24(%rdi), %edi
	movl	4(%rbx), %esi
	callq	_raw_connect
LBB0_18:
	movq	8(%rbx), %rax
	movl	32(%rax), %edi
LBB0_19:
	movq	_MQ_MSG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rsi
	callq	_MQ_Send
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_14
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	xorl	%eax, %eax
	callq	_udp_new
	movq	8(%rbx), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	_UDP_FLAGS_NOCHKSUM@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_22:
	callq	_setuptcp
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	_do_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tcp_connect                    ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	callq	_udp_new
	movq	8(%rbx), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_UDP_FLAGS_UDPLITE@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_udp_setflags
	movq	8(%rbx), %rdx
	movq	16(%rdx), %rdi
	movq	_recv_udp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_udp_recv
	jmp	LBB0_14
LBB0_9:
	xorl	%eax, %eax
	callq	_udp_new
	movq	8(%rbx), %rdx
	movq	%rax, 16(%rdx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_recv_udp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_udp_recv
	jmp	LBB0_14
LBB0_12:
	xorl	%eax, %eax
	callq	_tcp_new
	movq	8(%rbx), %rcx
	movl	%eax, 8(%rcx)
	testl	%eax, %eax
	jne	LBB0_14
LBB0_4:
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rcx)
	movl	32(%rcx), %edi
	jmp	LBB0_19
LBB0_13:
	movl	(%rbx), %edi
	callq	_raw_new
	movq	8(%rbx), %rdx
	movl	%eax, 24(%rdx)
	movq	_recv_raw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_raw_recv
	jmp	LBB0_14
LBB0_10:
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rdx)
	movl	32(%rdx), %edi
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_recv_raw,4,2                   ## @recv_raw
	.comm	_ERR_MEM,8,3                    ## @ERR_MEM
	.comm	_MQ_MSG_BLOCK,4,2               ## @MQ_MSG_BLOCK
	.comm	_UDP_FLAGS_UDPLITE,4,2          ## @UDP_FLAGS_UDPLITE
	.comm	_recv_udp,4,2                   ## @recv_udp
	.comm	_UDP_FLAGS_NOCHKSUM,4,2         ## @UDP_FLAGS_NOCHKSUM
	.comm	_do_connected,4,2               ## @do_connected
	.no_dead_strip	_do_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_connect
_do_connect:                            ; @do_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_10
LBB0_1:
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.2:
	ldr	x0, [x0, #16]
	ldp	w2, w1, [x19]
	bl	_udp_connect
	b	LBB0_6
LBB0_3:
	cmp	w8, #131
	b.eq	LBB0_14
; %bb.4:
	cmp	w8, #132
	b.ne	LBB0_9
; %bb.5:
	ldr	w0, [x0, #24]
	ldr	w1, [x19, #4]
	bl	_raw_connect
LBB0_6:
	ldr	x8, [x19, #8]
LBB0_7:
	ldr	w0, [x8, #32]
LBB0_8:
Lloh0:
	adrp	x8, _MQ_MSG_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MQ_MSG_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_MQ_Send
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_1
; %bb.11:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	bl	_udp_new
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	cbz	x0, LBB0_21
; %bb.13:
Lloh5:
	adrp	x8, _UDP_FLAGS_NOCHKSUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UDP_FLAGS_NOCHKSUM@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
	bl	_setuptcp
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
Lloh7:
	adrp	x8, _do_connected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _do_connected@GOTPAGEOFF]
	ldp	w2, w1, [x19]
Lloh9:
	ldr	w3, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_tcp_connect
LBB0_15:
	bl	_udp_new
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	cbz	x0, LBB0_21
; %bb.16:
Lloh10:
	adrp	x8, _UDP_FLAGS_UDPLITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UDP_FLAGS_UDPLITE@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	bl	_udp_setflags
	ldr	x2, [x19, #8]
	ldr	x0, [x2, #16]
	b	LBB0_19
LBB0_18:
	bl	_udp_new
	ldr	x2, [x19, #8]
	str	x0, [x2, #16]
	cbz	x0, LBB0_23
LBB0_19:
Lloh12:
	adrp	x8, _recv_udp@GOTPAGE
Lloh13:
	ldr	x8, [x8, _recv_udp@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_udp_recv
	b	LBB0_1
LBB0_20:
	bl	_tcp_new
	ldr	x8, [x19, #8]
	str	w0, [x8, #8]
	cbnz	w0, LBB0_1
LBB0_21:
Lloh15:
	adrp	x9, _ERR_MEM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ERR_MEM@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	x9, [x8, #40]
	b	LBB0_7
LBB0_22:
	ldr	w0, [x19]
	bl	_raw_new
	ldr	x2, [x19, #8]
	str	w0, [x2, #24]
Lloh18:
	adrp	x8, _recv_raw@GOTPAGE
Lloh19:
	ldr	x8, [x8, _recv_raw@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_raw_recv
	b	LBB0_1
LBB0_23:
Lloh21:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x2, #40]
	ldr	w0, [x2, #32]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
	.byte	(LBB0_18-LBB0_12)>>2
	.byte	(LBB0_20-LBB0_12)>>2
	.byte	(LBB0_22-LBB0_12)>>2
                                        ; -- End function
	.comm	_recv_raw,4,2                   ; @recv_raw
	.comm	_ERR_MEM,8,3                    ; @ERR_MEM
	.comm	_MQ_MSG_BLOCK,4,2               ; @MQ_MSG_BLOCK
	.comm	_UDP_FLAGS_UDPLITE,4,2          ; @UDP_FLAGS_UDPLITE
	.comm	_recv_udp,4,2                   ; @recv_udp
	.comm	_UDP_FLAGS_NOCHKSUM,4,2         ; @UDP_FLAGS_NOCHKSUM
	.comm	_do_connected,4,2               ; @do_connected
	.no_dead_strip	_do_connect
.subsections_via_symbols
