	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isns_do_connect
_isns_do_connect:                       ## @isns_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	16(%rax), %edi
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	callq	_socket
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	8(%r14), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movl	%ebx, %edi
	callq	_connect
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_log_warn
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_4
LBB0_1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_log_warn
LBB0_4:
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket(2) failed for %s"

L_.str.1:                               ## @.str.1
	.asciz	"connect(2) failed for %s"

	.no_dead_strip	_isns_do_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isns_do_connect
_isns_do_connect:                       ; @isns_do_connect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldp	w1, w0, [x8, #12]
	ldr	w2, [x8, #8]
	bl	_socket
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldp	w2, w1, [x8]
	bl	_connect
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w1, [x20]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_warn
	mov	x0, x19
	bl	_close
	b	LBB0_4
LBB0_3:
	ldr	w1, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_warn
LBB0_4:
	mov	w19, #-1
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket(2) failed for %s"

l_.str.1:                               ; @.str.1
	.asciz	"connect(2) failed for %s"

	.no_dead_strip	_isns_do_connect
.subsections_via_symbols
