	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_pong
_handle_pong:                           ## @handle_pong
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_msg@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_EAD_DATA
	movq	%rax, %rbx
	movq	(%r14), %rax
	movl	8(%rax), %edi
	callq	_ntohl
	addl	$-16, %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movl	%eax, %eax
	movb	$0, (%rcx,%rax)
	movl	8(%rbx), %edi
	callq	_ntohs
	movq	_auth_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_nid@GOTPCREL(%rip), %rax
	cmpl	$65535, (%rax)                  ## imm = 0xFFFF
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_ntohs
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
LBB0_4:
	movq	(%r14), %rax
	movl	(%rax), %eax
	movq	_sid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msg,8,3                        ## @msg
	.comm	_auth_type,4,2                  ## @auth_type
	.comm	_nid,4,2                        ## @nid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04x: %s\n"

	.comm	_sid,4,2                        ## @sid
	.comm	_pong,8,3                       ## @pong
	.no_dead_strip	_handle_pong
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_pong
_handle_pong:                           ; @handle_pong
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _msg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _msg@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_EAD_DATA
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_ntohl
	sub	w8, w0, #16
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x19]
	strb	wzr, [x9, w8, uxtw]
	ldr	w0, [x19, #8]
	bl	_ntohs
Lloh2:
	adrp	x8, _auth_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _auth_type@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
Lloh5:
	adrp	x8, _nid@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nid@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w9, #65535
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_ntohs
	mov	x1, x0
	ldr	x2, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_3:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _sid@GOTPAGE
Lloh11:
	ldr	x9, [x9, _sid@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_msg,8,3                        ; @msg
	.comm	_auth_type,4,2                  ; @auth_type
	.comm	_nid,4,2                        ; @nid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04x: %s\n"

	.comm	_sid,4,2                        ; @sid
	.comm	_pong,8,3                       ; @pong
	.no_dead_strip	_handle_pong
.subsections_via_symbols
