	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_socks_reply
_recv_socks_reply:                      ## @recv_socks_reply
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, 4(%rbx)
	xorl	%edi, %edi
	callq	_htons
	movl	%eax, (%rbx)
LBB0_2:
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$16, %r15d
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	%al, -80(%rbp,%r13)
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r13), %rax
	leal	5(%r15), %ecx
	cmpq	%rcx, %r13
	movq	%rax, %r13
	jae	LBB0_21
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-140(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_openvpn_fd_set
	movl	$5, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-112(%rbp), %r8
	callq	_select
	movl	%eax, %r14d
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_signal
	cmpl	$0, (%rbx)
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MSG_NOSIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	-81(%rbp), %rsi
	movl	$1, %edx
	callq	_recv
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$3, %r13
	movzbl	-81(%rbp), %eax
	movzbl	%r12b, %r12d
	cmovel	%eax, %r12d
	cmpq	$4, %r13
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movsbl	%r12b, %ecx
	cmpl	$1, %ecx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$4, %ecx
	je	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	cmpl	$3, %ecx
	je	LBB0_19
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$21, %r13
	jbe	LBB0_19
	jmp	LBB0_20
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$4, %r15d
	jmp	LBB0_19
LBB0_5:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_7:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_16
LBB0_9:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_16:
	xorl	%eax, %eax
	callq	_msg
LBB0_17:
	xorl	%ebx, %ebx
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.28:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	cmpb	$5, -80(%rbp)
	jne	LBB0_23
## %bb.22:
	cmpb	$0, -79(%rbp)
	jne	LBB0_23
## %bb.24:
	movl	$1, %ebx
	movq	-120(%rbp), %r13                ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_27
## %bb.25:
	cmpb	$1, %r12b
	jne	LBB0_27
## %bb.26:
	leaq	4(%r13), %rdi
	leaq	-76(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -112(%rbp)
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-112(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_print_openvpn_sockaddr
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_msg
	movq	%r15, %rdi
	callq	_gc_free
	jmp	LBB0_27
LBB0_23:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_msg
	jmp	LBB0_27
LBB0_15:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_16
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_D_LINK_ERRORS,4,2              ## @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ## @M_ERRNO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recv_socks_reply: TCP port read timeout expired"

L_.str.1:                               ## @.str.1
	.asciz	"recv_socks_reply: TCP port read failed on select()"

	.comm	_MSG_NOSIGNAL,4,2               ## @MSG_NOSIGNAL
L_.str.2:                               ## @.str.2
	.asciz	"recv_socks_reply: TCP port read failed on recv()"

L_.str.3:                               ## @.str.3
	.asciz	"recv_socks_reply: Socks proxy returned bad address type"

L_.str.4:                               ## @.str.4
	.asciz	"recv_socks_reply: Socks proxy returned bad reply"

	.comm	_M_INFO,4,2                     ## @M_INFO
L_.str.5:                               ## @.str.5
	.asciz	"SOCKS proxy wants us to send UDP to %s"

	.no_dead_strip	_recv_socks_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_socks_reply
_recv_socks_reply:                      ; @recv_socks_reply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	cbz	x1, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [x19, #4]
	mov	w0, #0
	bl	_htons
	str	w0, [x19]
LBB0_2:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x25, #0
	mov	w24, #0
	mov	w19, #0
	add	x22, x21, #1
	mov	w26, #5
Lloh9:
	adrp	x27, _MSG_NOSIGNAL@GOTPAGE
Lloh10:
	ldr	x27, [x27, _MSG_NOSIGNAL@GOTPAGEOFF]
	add	x28, sp, #50
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w19, #16
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	w8, [x28, x25]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x25, #1
	add	w9, w19, #5
	cmp	x25, x9
	mov	x25, x8
	b.hs	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #44
	bl	_FD_ZERO
	add	x1, sp, #44
	mov	x0, x21
	bl	_openvpn_fd_set
	str	w26, [sp, #24]
	str	xzr, [sp, #32]
	add	x1, sp, #44
	add	x4, sp, #24
	mov	x0, x22
	mov	x2, #0
	mov	x3, #0
	bl	_select
	mov	x23, x0
	mov	x0, x20
	bl	_get_signal
	ldr	w8, [x20]
	cbnz	w8, LBB0_27
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w23, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w23, #31, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w3, [x27]
	add	x1, sp, #23
	mov	x0, x21
	mov	w2, #1
	bl	_recv
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [sp, #23]
	cmp	x25, #3
	csel	w24, w8, w24, eq
	cmp	x25, #4
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	and	w9, w24, #0xff
	cmp	w9, #1
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	sxtb	w9, w24
	cmp	w9, #4
	b.eq	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x8
	cmp	w9, #3
	b.eq	LBB0_4
	b	LBB0_25
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x25, #21
	b.ls	LBB0_4
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w19, #4
	b	LBB0_4
LBB0_16:
Lloh11:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_26
LBB0_17:
Lloh19:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_26
LBB0_18:
Lloh27:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_26
LBB0_19:
	ldrb	w8, [sp, #50]
	cmp	w8, #5
	b.ne	LBB0_24
; %bb.20:
	ldrb	w8, [sp, #51]
	cbnz	w8, LBB0_24
; %bb.21:
	mov	w0, #1
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x21, LBB0_28
; %bb.22:
	and	w8, w24, #0xff
	cmp	w8, #1
	b.ne	LBB0_28
; %bb.23:
	add	x0, x21, #4
	add	x19, sp, #50
	add	x1, x19, #4
	mov	w2, #4
	bl	_memcpy
	add	x1, x19, #8
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	bl	_gc_new
	str	w0, [sp, #24]
Lloh35:
	adrp	x8, _M_INFO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _M_INFO@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
	add	x1, sp, #24
	mov	x0, x21
	bl	_print_openvpn_sockaddr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_msg
	add	x0, sp, #24
	bl	_gc_free
	mov	w0, #1
	b	LBB0_28
LBB0_24:
Lloh40:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_25:
Lloh45:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.3@PAGE
Lloh49:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_26:
	bl	_msg
LBB0_27:
	mov	w0, #0
LBB0_28:
	ldr	x8, [sp, #72]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_D_LINK_ERRORS,4,2              ; @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ; @M_ERRNO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recv_socks_reply: TCP port read timeout expired"

l_.str.1:                               ; @.str.1
	.asciz	"recv_socks_reply: TCP port read failed on select()"

	.comm	_MSG_NOSIGNAL,4,2               ; @MSG_NOSIGNAL
l_.str.2:                               ; @.str.2
	.asciz	"recv_socks_reply: TCP port read failed on recv()"

l_.str.3:                               ; @.str.3
	.asciz	"recv_socks_reply: Socks proxy returned bad address type"

l_.str.4:                               ; @.str.4
	.asciz	"recv_socks_reply: Socks proxy returned bad reply"

	.comm	_M_INFO,4,2                     ; @M_INFO
l_.str.5:                               ; @.str.5
	.asciz	"SOCKS proxy wants us to send UDP to %s"

	.no_dead_strip	_recv_socks_reply
.subsections_via_symbols
