	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socks_username_password_auth
_socks_username_password_auth:          ## @socks_username_password_auth
	.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	$600, %rsp                      ## imm = 0x258
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -608(%rbp)
	movl	(%rdi), %esi
	movq	_UP_TYPE_SOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GET_USER_PASS_MANAGEMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-624(%rbp), %rdi
	callq	_get_user_pass
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-624(%rbp), %rdi
	callq	_strlen
	cmpl	$255, %eax
	jg	LBB0_4
## %bb.3:
	movq	-616(%rbp), %rdi
	callq	_strlen
	cmpl	$256, %eax                      ## imm = 0x100
	jl	LBB0_5
LBB0_4:
	movq	_M_NONFATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_19
LBB0_1:
	movq	_M_NONFATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_19:
	callq	_msg
	xorl	%ebx, %ebx
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.21:
	movl	%ebx, %eax
	addq	$600, %rsp                      ## imm = 0x258
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, -632(%rbp)                ## 8-byte Spill
	movq	-624(%rbp), %rdi
	callq	_strlen
	movl	%eax, %r13d
	movq	-624(%rbp), %r12
	movq	-616(%rbp), %rdi
	callq	_strlen
	movq	-616(%rbp), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	leaq	-576(%rbp), %r14
	movq	%r14, %rdi
	movl	$516, %esi                      ## imm = 0x204
	movl	%r13d, %ecx
	movq	%r12, %r8
	movl	%eax, %r9d
	callq	_openvpn_snprintf
	movq	%r14, %rdi
	callq	_strlen
	movq	_MSG_NOSIGNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_send
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_strlen
	cmpl	%eax, %ebx
	jne	LBB0_22
## %bb.6:
	leaq	1(%r15), %r13
	leaq	-584(%rbp), %r14
	movq	%r14, %rdi
	callq	_FD_ZERO
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_openvpn_fd_set
	movl	$5, -600(%rbp)
	movq	$0, -592(%rbp)
	xorl	%ebx, %ebx
	leaq	-600(%rbp), %r8
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	movl	%eax, %r12d
	movq	-632(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_get_signal
	cmpl	$0, (%r14)
	jne	LBB0_20
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.8:
	leaq	L_.str.5(%rip), %rsi
	js	LBB0_10
## %bb.9:
	movq	_MSG_NOSIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-577(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_recv
	leaq	L_.str.6(%rip), %rsi
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.11:
	movb	-577(%rbp), %al
	movb	%al, -578(%rbp)                 ## 1-byte Spill
	leaq	-584(%rbp), %r12
	movq	%r12, %rdi
	callq	_FD_ZERO
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_openvpn_fd_set
	movl	$5, -600(%rbp)
	movq	$0, -592(%rbp)
	leaq	-600(%rbp), %r8
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_get_signal
	cmpl	$0, (%r14)
	jne	LBB0_20
## %bb.12:
	movb	-578(%rbp), %r14b               ## 1-byte Reload
	testl	%r12d, %r12d
	leaq	L_.str.4(%rip), %rsi
	je	LBB0_10
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	js	LBB0_10
## %bb.14:
	movq	_MSG_NOSIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-577(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_recv
	leaq	L_.str.6(%rip), %rsi
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.15:
	cmpb	$5, %r14b
	je	LBB0_16
## %bb.17:
	cmpb	$0, -577(%rbp)
	movl	$1, %ebx
	je	LBB0_20
## %bb.18:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_19
LBB0_22:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_19
LBB0_10:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_msg
	jmp	LBB0_20
LBB0_16:
	movl	$1, %ebx
	jmp	LBB0_20
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UP_TYPE_SOCKS,4,2              ## @UP_TYPE_SOCKS
	.comm	_GET_USER_PASS_MANAGEMENT,4,2   ## @GET_USER_PASS_MANAGEMENT
	.comm	_M_NONFATAL,4,2                 ## @M_NONFATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SOCKS failed to get username/password."

L_.str.1:                               ## @.str.1
	.asciz	"SOCKS username and/or password exceeds 255 characters.  Authentication not possible."

L_.str.2:                               ## @.str.2
	.asciz	"\001%c%s%c%s"

	.comm	_MSG_NOSIGNAL,4,2               ## @MSG_NOSIGNAL
	.comm	_D_LINK_ERRORS,4,2              ## @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ## @M_ERRNO
L_.str.3:                               ## @.str.3
	.asciz	"socks_username_password_auth: TCP port write failed on send()"

L_.str.4:                               ## @.str.4
	.asciz	"socks_username_password_auth: TCP port read timeout expired"

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

L_.str.6:                               ## @.str.6
	.asciz	"socks_username_password_auth: TCP port read failed on recv()"

L_.str.7:                               ## @.str.7
	.asciz	"socks_username_password_auth: server refused the authentication"

	.no_dead_strip	_socks_username_password_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socks_username_password_auth
_socks_username_password_auth:          ; @socks_username_password_auth
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #592
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #56]
	ldr	w1, [x0]
Lloh3:
	adrp	x8, _UP_TYPE_SOCKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UP_TYPE_SOCKS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _GET_USER_PASS_MANAGEMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GET_USER_PASS_MANAGEMENT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x0, sp, #40
	bl	_get_user_pass
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x0, [sp, #40]
	bl	_strlen
	cmp	w0, #255
	b.gt	LBB0_3
; %bb.2:
	ldr	x0, [sp, #48]
	bl	_strlen
	cmp	w0, #256
	b.lt	LBB0_9
LBB0_3:
Lloh9:
	adrp	x8, _M_NONFATAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_NONFATAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _M_NONFATAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _M_NONFATAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	bl	_msg
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.8:
	add	sp, sp, #592
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [sp, #40]
	bl	_strlen
	mov	x21, x0
	ldp	x22, x0, [sp, #40]
	bl	_strlen
	mov	x5, x0
	ldr	x6, [sp, #48]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #68
	mov	w1, #516
	mov	x3, x21
	mov	x4, x22
	bl	_openvpn_snprintf
	add	x0, sp, #68
	bl	_strlen
	mov	x2, x0
Lloh24:
	adrp	x23, _MSG_NOSIGNAL@GOTPAGE
Lloh25:
	ldr	x23, [x23, _MSG_NOSIGNAL@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x1, sp, #68
	mov	x0, x19
	bl	_send
	mov	x21, x0
	add	x0, sp, #68
	bl	_strlen
	cmp	w21, w0
	b.ne	LBB0_21
; %bb.10:
	add	x21, x19, #1
	add	x0, sp, #36
	bl	_FD_ZERO
	add	x1, sp, #36
	mov	x0, x19
	bl	_openvpn_fd_set
	mov	w8, #5
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	add	x1, sp, #36
	add	x4, sp, #16
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_select
	mov	x22, x0
	mov	x0, x20
	bl	_get_signal
	ldr	w8, [x20]
	cbnz	w8, LBB0_6
; %bb.11:
	cbz	w22, LBB0_22
; %bb.12:
	tbnz	w22, #31, LBB0_23
; %bb.13:
	ldr	w3, [x23]
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_recv
	cmp	w0, #1
	b.ne	LBB0_24
; %bb.14:
	ldrb	w22, [sp, #15]
	add	x0, sp, #36
	bl	_FD_ZERO
	add	x1, sp, #36
	mov	x0, x19
	bl	_openvpn_fd_set
	mov	w8, #5
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	add	x1, sp, #36
	add	x4, sp, #16
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_select
	mov	x21, x0
	mov	x0, x20
	bl	_get_signal
	ldr	w8, [x20]
	cbnz	w8, LBB0_6
; %bb.15:
	cbz	w21, LBB0_22
; %bb.16:
	tbnz	w21, #31, LBB0_23
; %bb.17:
	ldr	w3, [x23]
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_recv
	cmp	w0, #1
	b.ne	LBB0_24
; %bb.18:
	cmp	w22, #5
	b.eq	LBB0_7
; %bb.19:
	ldrb	w8, [sp, #15]
	cbz	w8, LBB0_7
; %bb.20:
Lloh26:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_5
LBB0_21:
Lloh31:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh35:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_22:
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_23:
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_25:
Lloh45:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh49:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_5
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_UP_TYPE_SOCKS,4,2              ; @UP_TYPE_SOCKS
	.comm	_GET_USER_PASS_MANAGEMENT,4,2   ; @GET_USER_PASS_MANAGEMENT
	.comm	_M_NONFATAL,4,2                 ; @M_NONFATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SOCKS failed to get username/password."

l_.str.1:                               ; @.str.1
	.asciz	"SOCKS username and/or password exceeds 255 characters.  Authentication not possible."

l_.str.2:                               ; @.str.2
	.asciz	"\001%c%s%c%s"

	.comm	_MSG_NOSIGNAL,4,2               ; @MSG_NOSIGNAL
	.comm	_D_LINK_ERRORS,4,2              ; @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ; @M_ERRNO
l_.str.3:                               ; @.str.3
	.asciz	"socks_username_password_auth: TCP port write failed on send()"

l_.str.4:                               ; @.str.4
	.asciz	"socks_username_password_auth: TCP port read timeout expired"

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

l_.str.6:                               ; @.str.6
	.asciz	"socks_username_password_auth: TCP port read failed on recv()"

l_.str.7:                               ; @.str.7
	.asciz	"socks_username_password_auth: server refused the authentication"

	.no_dead_strip	_socks_username_password_auth
.subsections_via_symbols
