	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_send_auth
_handle_send_auth:                      ## @handle_send_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_EAD_DATA
	movq	%rax, %rbx
	movq	_ts@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rax), %esi
	callq	_t_serververify
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_DEBUG
	xorl	%eax, %eax
	movq	_EAD_TYPE_SET_USERNAME@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_pktbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_EAD_DATA
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_htonl
	movl	%eax, (%r15)
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_DEBUG
	movl	(%rbx), %ebx
	movl	(%r12), %edi
	callq	_t_serverresponse
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memcpy
	movl	$1, %eax
	movq	_EAD_TYPE_SEND_CMD@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ts,4,2                         ## @ts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Client authentication failed\n"

	.comm	_EAD_TYPE_SET_USERNAME,4,2      ## @EAD_TYPE_SET_USERNAME
	.comm	_pktbuf,8,3                     ## @pktbuf
L_.str.1:                               ## @.str.1
	.asciz	"Client authentication successful\n"

	.comm	_EAD_TYPE_SEND_CMD,4,2          ## @EAD_TYPE_SEND_CMD
	.comm	_auth,8,3                       ## @auth
	.no_dead_strip	_handle_send_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_send_auth
_handle_send_auth:                      ; @handle_send_auth
	.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, x2
	bl	_EAD_DATA
	mov	x20, x0
Lloh0:
	adrp	x22, _ts@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ts@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x20]
	bl	_t_serververify
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_DEBUG
	mov	w0, #0
Lloh4:
	adrp	x8, _EAD_TYPE_SET_USERNAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAD_TYPE_SET_USERNAME@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _pktbuf@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pktbuf@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_EAD_DATA
	mov	x20, x0
	mov	w0, #4
	bl	_htonl
	str	w0, [x21]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_DEBUG
	ldr	w20, [x20]
	ldr	w0, [x22]
	bl	_t_serverresponse
	mov	x1, x0
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	mov	w0, #1
Lloh11:
	adrp	x8, _EAD_TYPE_SEND_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAD_TYPE_SEND_CMD@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ts,4,2                         ; @ts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Client authentication failed\n"

	.comm	_EAD_TYPE_SET_USERNAME,4,2      ; @EAD_TYPE_SET_USERNAME
	.comm	_pktbuf,8,3                     ; @pktbuf
l_.str.1:                               ; @.str.1
	.asciz	"Client authentication successful\n"

	.comm	_EAD_TYPE_SEND_CMD,4,2          ; @EAD_TYPE_SEND_CMD
	.comm	_auth,8,3                       ; @auth
	.no_dead_strip	_handle_send_auth
.subsections_via_symbols
