	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process
_process:                               ## @process
	.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	%rbx
	subq	$2040, %rsp                     ## imm = 0x7F8
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$4, -2052(%rbp)
	leaq	-1040(%rbp), %rsi
	xorl	%ebx, %ebx
	leaq	-2056(%rbp), %r8
	leaq	-2052(%rbp), %r9
	movl	$1000, %edx                     ## imm = 0x3E8
	xorl	%ecx, %ecx
	callq	_recvfrom
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	$999, %rax                      ## imm = 0x3E7
	movl	$999, %ecx                      ## imm = 0x3E7
	cmovbq	%rax, %rcx
	movb	$0, -1040(%rbp,%rcx)
	leaq	L_.str.1(%rip), %rdi
	leaq	-1040(%rbp), %rbx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	-2048(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_process_cmd
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	cmpb	$0, -2048(%rbp)
	je	LBB0_4
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-2048(%rbp), %r15
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%r15, %rdi
	callq	_os_strlen
	movl	-2052(%rbp), %r9d
	leaq	-2056(%rbp), %r8
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_sendto
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.5(%rip), %rdi
	callq	_perror
	jmp	LBB0_7
LBB0_2:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	movl	$-1, %ebx
	jmp	LBB0_7
LBB0_4:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%ebx, %ebx
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	addq	$2040, %rsp                     ## imm = 0x7F8
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Received: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Send: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"send"

L_str:                                  ## @str
	.asciz	"No response"

L_str.6:                                ## @str.6
	.asciz	"Failed to process request"

	.no_dead_strip	_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process
_process:                               ; @process
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #2032
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w8, #4
	str	w8, [sp, #12]
	add	x20, sp, #1024
	add	x1, sp, #1024
	add	x4, sp, #16
	add	x5, sp, #12
	mov	w3, #0
	mov	w2, #1000
	bl	_recvfrom
	cbz	x0, LBB0_8
; %bb.1:
	mov	w8, #999
	cmp	x0, #999
	csel	x8, x0, x8, lo
	strb	wzr, [x20, x8]
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	add	x0, sp, #1024
	add	x1, sp, #24
	mov	w2, #1000
	bl	_process_cmd
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldrb	w8, [sp, #24]
	cbz	w8, LBB0_6
; %bb.3:
	add	x8, sp, #24
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	add	x0, sp, #24
	bl	_os_strlen
	mov	x2, x0
	ldr	w5, [sp, #12]
	add	x1, sp, #24
	add	x4, sp, #16
	mov	x0, x19
	mov	w3, #0
	bl	_sendto
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_8
; %bb.4:
Lloh7:
	adrp	x0, l_.str.5@PAGE
Lloh8:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x0, l_str.6@PAGE
Lloh10:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	mov	w0, #-1
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #2032
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Received: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Send: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"send"

l_str:                                  ; @str
	.asciz	"No response"

l_str.6:                                ; @str.6
	.asciz	"Failed to process request"

	.no_dead_strip	_process
.subsections_via_symbols
