	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_message
_parse_message:                         ## @parse_message
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_state@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	movl	4(%rdi), %edi
	callq	_ntohl
	movl	%eax, %r13d
	cmpl	$133, %eax
	jl	LBB0_2
## %bb.1:
	cmpl	%r13d, %ebx
	jne	LBB0_12
LBB0_2:
	cmpl	$132, %r13d
	jne	LBB0_4
## %bb.3:
	movq	_handle_ping@GOTPCREL(%rip), %r12
	movl	$8, %eax
	cmpl	%r15d, %eax
	jle	LBB0_9
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DEBUG                          ## TAILCALL
LBB0_4:
	movl	(%r14), %edi
	callq	_ntohs
	movq	_EAD_INSTANCE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_EAD_INSTANCE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_instance@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.5:
	leal	-128(%r13), %eax
	cmpl	$5, %eax
	ja	LBB0_12
## %bb.6:
	movl	$47, %ecx
	btl	%eax, %ecx
	jae	LBB0_12
## %bb.7:
	movslq	%eax, %rcx
	leaq	l_switch.table.parse_message(%rip), %rax
	movl	(%rax,%rcx,4), %eax
	leaq	l_switch.table.parse_message.2(%rip), %rdx
	movq	(%rdx,%rcx,8), %r12
	cmpl	%r15d, %eax
	jg	LBB0_13
LBB0_9:
	movq	_EAD_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	_pktbuf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%rax, 24(%rcx)
	incl	%r13d
	movl	%r13d, %edi
	callq	_htonl
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	_nid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	(%r14), %eax
	movl	%eax, 4(%rcx)
	movl	$0, (%rcx)
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	*%r12
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_ntohl
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DEBUG
	movq	%r14, %rdi
	callq	_ead_send_packet_clone
LBB0_11:
	movl	-44(%rbp), %edi
	callq	_set_state
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state,4,2                      ## @state
	.comm	_EAD_INSTANCE_MASK,4,2          ## @EAD_INSTANCE_MASK
	.comm	_EAD_INSTANCE_SHIFT,4,2         ## @EAD_INSTANCE_SHIFT
	.comm	_instance,8,3                   ## @instance
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"discarding packet: message too small\n"

	.comm	_EAD_MAGIC,4,2                  ## @EAD_MAGIC
	.comm	_pktbuf,8,3                     ## @pktbuf
	.comm	_nid,4,2                        ## @nid
L_.str.1:                               ## @.str.1
	.asciz	"sending response to packet type %d: %d\n"

	.no_dead_strip	_parse_message
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.parse_message
l_switch.table.parse_message:
	.long	12                              ## 0xc
	.long	16                              ## 0x10
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	16                              ## 0x10
	.long	8                               ## 0x8

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.parse_message.2
l_switch.table.parse_message.2:
	.quad	_handle_set_username
	.quad	_handle_send_cmd
	.quad	_handle_send_auth
	.quad	_handle_send_a
	.quad	_handle_send_cmd
	.quad	_handle_get_prime

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_message
_parse_message:                         ; @parse_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	str	w22, [sp, #28]
	ldr	w0, [x0, #4]
	bl	_ntohl
	cmp	w0, #133
	ccmp	w22, w0, #4, ge
	b.ne	LBB0_11
; %bb.1:
	mov	x21, x0
	cmp	w0, #132
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x22, _handle_ping@GOTPAGE
Lloh4:
	ldr	x22, [x22, _handle_ping@GOTPAGEOFF]
	mov	w9, #8
	cmp	w9, w20
	b.le	LBB0_8
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_DEBUG
LBB0_4:
	ldr	w0, [x19]
	bl	_ntohs
Lloh7:
	adrp	x8, _EAD_INSTANCE_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAD_INSTANCE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh10:
	adrp	x9, _EAD_INSTANCE_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EAD_INSTANCE_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh13:
	adrp	x9, _instance@GOTPAGE
Lloh14:
	ldr	x9, [x9, _instance@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.5:
	sub	w8, w21, #128
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.6:
	mov	w9, #47
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_11
; %bb.7:
Lloh16:
	adrp	x9, l_switch.table.parse_message@PAGE
Lloh17:
	add	x9, x9, l_switch.table.parse_message@PAGEOFF
	ldr	w9, [x9, w8, sxtw #2]
Lloh18:
	adrp	x10, l_switch.table.parse_message.2@PAGE
Lloh19:
	add	x10, x10, l_switch.table.parse_message.2@PAGEOFF
	ldr	x22, [x10, w8, sxtw #3]
	cmp	w9, w20
	b.gt	LBB0_3
LBB0_8:
Lloh20:
	adrp	x8, _EAD_MAGIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAD_MAGIC@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_htonl
Lloh23:
	adrp	x23, _pktbuf@GOTPAGE
Lloh24:
	ldr	x23, [x23, _pktbuf@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x0, [x8, #24]
	add	w21, w21, #1
	mov	x0, x21
	bl	_htonl
	ldr	x8, [x23]
	str	x0, [x8, #16]
Lloh25:
	adrp	x8, _nid@GOTPAGE
Lloh26:
	ldr	x8, [x8, _nid@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_htons
	ldr	x8, [x23]
	str	w0, [x8, #8]
	ldr	w9, [x19]
	stp	wzr, w9, [x8]
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x20
	blr	x22
	cbz	w0, LBB0_10
; %bb.9:
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_ntohl
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_DEBUG
	mov	x0, x19
	bl	_ead_send_packet_clone
LBB0_10:
	ldr	w0, [sp, #28]
	bl	_set_state
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_state,4,2                      ; @state
	.comm	_EAD_INSTANCE_MASK,4,2          ; @EAD_INSTANCE_MASK
	.comm	_EAD_INSTANCE_SHIFT,4,2         ; @EAD_INSTANCE_SHIFT
	.comm	_instance,8,3                   ; @instance
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"discarding packet: message too small\n"

	.comm	_EAD_MAGIC,4,2                  ; @EAD_MAGIC
	.comm	_pktbuf,8,3                     ; @pktbuf
	.comm	_nid,4,2                        ; @nid
l_.str.1:                               ; @.str.1
	.asciz	"sending response to packet type %d: %d\n"

	.no_dead_strip	_parse_message
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.parse_message
l_switch.table.parse_message:
	.long	12                              ; 0xc
	.long	16                              ; 0x10
	.long	12                              ; 0xc
	.long	12                              ; 0xc
	.long	16                              ; 0x10
	.long	8                               ; 0x8

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.parse_message.2
l_switch.table.parse_message.2:
	.quad	_handle_set_username
	.quad	_handle_send_cmd
	.quad	_handle_send_auth
	.quad	_handle_send_a
	.quad	_handle_send_cmd
	.quad	_handle_get_prime

.subsections_via_symbols
