	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_packet
_handle_packet:                         ## @handle_packet
	.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
	cmpl	$40, (%rsi)
	jb	LBB0_9
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	32(%rdx), %ebx
	movq	_ETHERTYPE_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.2:
	movl	36(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	(%r14), %rax
	movq	_UIP_PROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:
	movl	8(%r14), %ebx
	movq	_EAD_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.5:
	movq	16(%r14), %rbx
	movq	_EAD_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.6:
	movslq	(%r12), %rbx
	movl	28(%r14), %edi
	callq	_ntohl
	addq	$40, %rax
	cmpq	%rbx, %rax
	ja	LBB0_9
## %bb.7:
	movl	24(%r14), %r15d
	cmpl	$65535, %r15d                   ## imm = 0xFFFF
	je	LBB0_10
## %bb.8:
	movq	_nid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpl	%eax, %r15d
	jne	LBB0_9
LBB0_10:
	movslq	(%r12), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parse_message                  ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHERTYPE_IP,4,2               ## @ETHERTYPE_IP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\377\377\377\377\377\377"

	.comm	_UIP_PROTO_UDP,8,3              ## @UIP_PROTO_UDP
	.comm	_EAD_PORT,4,2                   ## @EAD_PORT
	.comm	_EAD_MAGIC,4,2                  ## @EAD_MAGIC
	.comm	_nid,4,2                        ## @nid
	.no_dead_strip	_handle_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_packet
_handle_packet:                         ; @handle_packet
	.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
	ldr	w8, [x1]
	cmp	w8, #40
	b.lo	LBB0_10
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	w21, [x2, #32]
Lloh0:
	adrp	x8, _ETHERTYPE_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHERTYPE_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	w21, w0
	b.ne	LBB0_10
; %bb.2:
	ldr	w0, [x19, #36]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_10
; %bb.3:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _UIP_PROTO_UDP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UIP_PROTO_UDP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	ldr	w21, [x19, #8]
Lloh8:
	adrp	x8, _EAD_PORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAD_PORT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	cmp	w21, w0
	b.ne	LBB0_10
; %bb.5:
	ldr	x21, [x19, #16]
Lloh11:
	adrp	x8, _EAD_MAGIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAD_MAGIC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_htonl
	cmp	x21, x0
	b.ne	LBB0_10
; %bb.6:
	ldrsw	x21, [x20]
	ldr	w0, [x19, #28]
	bl	_ntohl
	add	x8, x0, #40
	cmp	x8, x21
	b.hi	LBB0_10
; %bb.7:
	ldr	w21, [x19, #24]
	mov	w8, #65535
	cmp	w21, w8
	b.eq	LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _nid@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nid@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_htons
	cmp	w21, w0
	b.ne	LBB0_10
LBB0_9:
	ldrsw	x1, [x20]
	mov	x0, 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
	b	_parse_message
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHERTYPE_IP,4,2               ; @ETHERTYPE_IP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\377\377\377\377\377\377"

	.comm	_UIP_PROTO_UDP,8,3              ; @UIP_PROTO_UDP
	.comm	_EAD_PORT,4,2                   ; @EAD_PORT
	.comm	_EAD_MAGIC,4,2                  ; @EAD_MAGIC
	.comm	_nid,4,2                        ; @nid
	.no_dead_strip	_handle_packet
.subsections_via_symbols
