	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phase2_socks_client
_phase2_socks_client:                   ## @phase2_socks_client
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	32(%rdi), %r15
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movl	(%rax), %r12d
	movl	40(%rdi), %edi
	callq	_get_server_poll_remaining_time
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_socket_connect
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.1:
	movl	36(%rbx), %edi
	movl	28(%rbx), %edx
	movl	32(%rbx), %esi
	leaq	24(%rbx), %rcx
	movq	%r14, %r8
	callq	_establish_socks_proxy_udpassoc
	cmpq	$0, (%r14)
	je	LBB0_2
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	16(%rbx), %eax
	movl	%eax, 20(%rbx)
	movl	8(%rbx), %eax
	movl	%eax, 12(%rbx)
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_addr_zero_host
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_freeaddrinfo
	movq	(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
LBB0_4:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_resolve_remote                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_phase2_socks_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phase2_socks_client
_phase2_socks_client:                   ; @phase2_socks_client
	.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
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #32
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	w22, [x8]
	ldr	w0, [x0, #40]
	bl	_get_server_poll_remaining_time
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	bl	_socket_connect
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	ldp	w1, w0, [x20, #32]
	add	x3, x20, #24
	ldr	w2, [x20, #28]
	mov	x4, x19
	bl	_establish_socks_proxy_udpassoc
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_2:
	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_3:
	ldr	w8, [x20, #16]
	str	w8, [x20, #20]
	ldr	w8, [x20, #8]
	str	w8, [x20, #12]
	ldr	x8, [x20]
	add	x0, x8, #16
	bl	_addr_zero_host
	ldr	x8, [x20]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_freeaddrinfo
	ldr	x8, [x20]
	stp	xzr, xzr, [x8]
LBB0_5:
	mov	x0, x20
	mov	w1, #1
	mov	x2, #0
	mov	x3, x19
	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
	b	_resolve_remote
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_phase2_socks_client
.subsections_via_symbols
