	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_connected
_do_connected:                          ## @do_connected
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, -20(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	%rdx, 16(%rdi)
	movq	(%rdi), %rax
	movq	_NETCONN_TCP@GOTPCREL(%rip), %rcx
	movq	_ERR_OK@GOTPCREL(%rip), %r14
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	cmpq	%rdx, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_setuptcp
LBB0_5:
	movl	8(%rbx), %edi
	movq	_MQ_MSG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rsi
	callq	_MQ_Send
	jmp	LBB0_6
LBB0_1:
	movq	_ERR_VAL@GOTPCREL(%rip), %r14
LBB0_6:
	movq	(%r14), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_VAL,8,3                    ## @ERR_VAL
	.comm	_NETCONN_TCP,8,3                ## @NETCONN_TCP
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	_MQ_MSG_BLOCK,4,2               ## @MQ_MSG_BLOCK
	.no_dead_strip	_do_connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_connected
_do_connected:                          ; @do_connected
	.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
	str	wzr, [sp, #12]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x2, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NETCONN_TCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETCONN_TCP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ERR_OK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ERR_OK@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x2, #0, eq
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_setuptcp
LBB0_3:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _MQ_MSG_BLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MQ_MSG_BLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_MQ_Send
Lloh9:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _ERR_VAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_VAL@GOTPAGEOFF]
LBB0_5:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_VAL,8,3                    ; @ERR_VAL
	.comm	_NETCONN_TCP,8,3                ; @NETCONN_TCP
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	_MQ_MSG_BLOCK,4,2               ; @MQ_MSG_BLOCK
	.no_dead_strip	_do_connected
.subsections_via_symbols
