	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_data                    ## -- Begin function handle_data
	.p2align	4, 0x90
_handle_data:                           ## @handle_data
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	cmpq	$0, (%rsi)
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$5, 8(%rsi)
	jne	LBB0_3
## %bb.2:
	movl	%edx, %r15d
	movl	%edi, %r14d
	movzwl	12(%rbx), %edi
	movw	%di, -82(%rbp)
	leal	-20(%r15), %r12d
	addq	$20, %rbx
	callq	_ntohs
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_printf
	leaq	-86(%rbp), %rdi
	leaq	-82(%rbp), %r13
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_memcpy
	movl	%r12d, %edi
	callq	_htons
	movw	%ax, -82(%rbp)
	leaq	-84(%rbp), %rdi
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_memcpy
	leaq	-86(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$4, -72(%rbp)
	movq	%rbx, -64(%rbp)
	movl	%r12d, -56(%rbp)
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-80(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$2, -104(%rbp)
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sendmsg
	movl	%eax, %ecx
	addl	$-16, %r15d
	xorl	%eax, %eax
	cmpl	%r15d, %ecx
	setne	%al
	negl	%eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got %d bytes [%d]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_data                    ; -- Begin function handle_data
	.p2align	2
_handle_data:                           ; @handle_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x8, [x1]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x1, #8]
	cmp	w8, #5
	b.ne	LBB0_3
; %bb.2:
	mov	x19, x2
	mov	x20, x0
	ldrh	w0, [x1, #12]
	strh	w0, [sp, #22]
	sub	w21, w2, #20
	add	x22, x1, #20
	bl	_ntohs
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_printf
	add	x23, sp, #18
	mov	w24, #2
	add	x0, sp, #18
	add	x1, sp, #22
	mov	w2, #2
	bl	_memcpy
	mov	x0, x21
	bl	_htons
	strh	w0, [sp, #22]
	add	x0, x23, #2
	add	x1, sp, #22
	mov	w2, #2
	bl	_memcpy
	str	x23, [sp, #24]
	mov	w8, #4
	str	w8, [sp, #32]
	str	x22, [sp, #40]
	str	w21, [sp, #48]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x8, sp, #24
	str	x8, [sp, #8]
	str	w24, [sp]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #0
	bl	_sendmsg
	sub	w8, w19, #16
	cmp	w0, w8
	csetm	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldr	x8, [sp, #56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got %d bytes [%d]\n"

.subsections_via_symbols
