	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_establish_socks_proxy_udpassoc ## -- Begin function establish_socks_proxy_udpassoc
	.p2align	4, 0x90
_establish_socks_proxy_udpassoc:        ## @establish_socks_proxy_udpassoc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movl	%esi, %ebx
	movq	%r8, %rdx
	callq	_socks_handshake
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_MSG_NOSIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	l_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	$10, %edx
	callq	_send
	cmpl	$10, %eax
	jne	LBB0_2
## %bb.3:
	movl	(%r14), %edi
	callq	_CLEAR
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_recv_socks_reply
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_4
LBB0_2:
	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
	callq	_msg
LBB0_4:
	cmpl	$0, (%r15)
	jne	LBB0_6
## %bb.5:
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"\005\003\000\001\000\000\000\000\000\000"

	.comm	_MSG_NOSIGNAL,4,2               ## @MSG_NOSIGNAL
	.comm	_D_LINK_ERRORS,4,2              ## @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ## @M_ERRNO
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"establish_socks_proxy_passthru: TCP port write failed on send()"

	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_establish_socks_proxy_udpassoc ; -- Begin function establish_socks_proxy_udpassoc
	.p2align	2
_establish_socks_proxy_udpassoc:        ; @establish_socks_proxy_udpassoc
	.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, x4
	mov	x20, x3
	mov	x21, x1
	mov	x2, x4
	bl	_socks_handshake
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MSG_NOSIGNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_NOSIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #10
	bl	_send
	cmp	w0, #10
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20]
	bl	_CLEAR
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_recv_socks_reply
	cbnz	w0, LBB0_6
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
LBB0_4:
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"\005\003\000\001\000\000\000\000\000\000"

	.comm	_MSG_NOSIGNAL,4,2               ; @MSG_NOSIGNAL
	.comm	_D_LINK_ERRORS,4,2              ; @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ; @M_ERRNO
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"establish_socks_proxy_passthru: TCP port write failed on send()"

	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
.subsections_via_symbols
