	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_prime
_handle_prime:                          ## @handle_prime
	.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	_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_salt@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	8(%r14), %rdx
	callq	_EAD_DATA
	movq	%rax, %rbx
	movl	(%rax), %edx
	movl	%edx, (%r14)
	movq	8(%r14), %rdi
	movl	12(%rax), %esi
	callq	_memcpy
	movq	_auth_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAD_AUTH_MD5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_pw_salt@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movl	8(%rbx), %esi
	movq	_MAXSALTLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_memcpy
	movq	(%r14), %rax
	movslq	(%r15), %rcx
	movq	$0, -8(%rax,%rcx,8)
LBB0_2:
	movl	4(%rbx), %edi
	callq	_t_getpreparam
	movq	_tcp@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_username@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	4(%rax), %rsi
	movq	_salt@GOTPCREL(%rip), %rcx
	movq	%rax, %rdx
	callq	_t_clientopen
	movl	%eax, %ecx
	movq	_tc@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msg,4,2                        ## @msg
	.comm	_salt,16,3                      ## @salt
	.comm	_auth_type,8,3                  ## @auth_type
	.comm	_EAD_AUTH_MD5,8,3               ## @EAD_AUTH_MD5
	.comm	_pw_salt,8,3                    ## @pw_salt
	.comm	_MAXSALTLEN,4,2                 ## @MAXSALTLEN
	.comm	_tcp,8,3                        ## @tcp
	.comm	_username,4,2                   ## @username
	.comm	_tc,4,2                         ## @tc
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Client open failed\n"

	.no_dead_strip	_handle_prime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_prime
_handle_prime:                          ; @handle_prime
	.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
Lloh0:
	adrp	x8, _msg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _msg@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _salt@GOTPAGE
Lloh4:
	ldr	x20, [x20, _salt@GOTPAGEOFF]
	ldp	x1, x2, [x20]
	bl	_EAD_DATA
	mov	x19, x0
	ldr	w2, [x0]
	str	w2, [x20]
	ldr	x0, [x20, #8]
	ldr	w1, [x19, #12]
	bl	_memcpy
Lloh5:
	adrp	x8, _auth_type@GOTPAGE
Lloh6:
	ldr	x8, [x8, _auth_type@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _EAD_AUTH_MD5@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAD_AUTH_MD5@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x20, _pw_salt@GOTPAGE
Lloh12:
	ldr	x20, [x20, _pw_salt@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	w1, [x19, #8]
Lloh13:
	adrp	x21, _MAXSALTLEN@GOTPAGE
Lloh14:
	ldr	x21, [x21, _MAXSALTLEN@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_memcpy
	ldr	x8, [x20]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #3
	stur	xzr, [x8, #-8]
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_t_getpreparam
	mov	x2, x0
Lloh15:
	adrp	x8, _tcp@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tcp@GOTPAGEOFF]
Lloh17:
	str	x0, [x8]
Lloh18:
	adrp	x8, _username@GOTPAGE
Lloh19:
	ldr	x8, [x8, _username@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, x2, #4
Lloh21:
	adrp	x3, _salt@GOTPAGE
Lloh22:
	ldr	x3, [x3, _salt@GOTPAGEOFF]
	bl	_t_clientopen
Lloh23:
	adrp	x8, _tc@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tc@GOTPAGEOFF]
Lloh25:
	str	w0, [x8]
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_msg,4,2                        ; @msg
	.comm	_salt,16,3                      ; @salt
	.comm	_auth_type,8,3                  ; @auth_type
	.comm	_EAD_AUTH_MD5,8,3               ; @EAD_AUTH_MD5
	.comm	_pw_salt,8,3                    ; @pw_salt
	.comm	_MAXSALTLEN,4,2                 ; @MAXSALTLEN
	.comm	_tcp,8,3                        ; @tcp
	.comm	_username,4,2                   ; @username
	.comm	_tc,4,2                         ; @tc
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Client open failed\n"

	.no_dead_strip	_handle_prime
.subsections_via_symbols
