	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SEND                           ## -- Begin function SEND
	.p2align	4, 0x90
_SEND:                                  ## @SEND
	.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
	movl	%edi, %ebx
	movq	_cMode@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_COMMAND@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.1:
	movq	_CMDLEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_MAX_CMD_BUF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rsi
	jae	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_uprintf
	movq	_CMDBUF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movl	%ebx, (%rax,%rcx,4)
	incq	%rcx
	movq	%rcx, (%r12)
	movq	(%r14), %rax
	movq	(%r15), %rcx
LBB0_3:
	cmpq	%rcx, %rax
	jne	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_register_code                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cMode,8,3                      ## @cMode
	.comm	_COMMAND,8,3                    ## @COMMAND
	.comm	_CMDLEN,8,3                     ## @CMDLEN
	.comm	_MAX_CMD_BUF,8,3                ## @MAX_CMD_BUF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD LEN: %d BUF: %d\n"

	.comm	_CMDBUF,8,3                     ## @CMDBUF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SEND                           ; -- Begin function SEND
	.p2align	2
_SEND:                                  ; @SEND
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _cMode@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cMode@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _COMMAND@GOTPAGE
Lloh3:
	ldr	x21, [x21, _COMMAND@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh4:
	adrp	x22, _CMDLEN@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CMDLEN@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh6:
	adrp	x8, _MAX_CMD_BUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_CMD_BUF@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x8]
	cmp	x1, x2
	b.hs	LBB0_4
; %bb.2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_uprintf
Lloh11:
	adrp	x8, _CMDBUF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMDBUF@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x22]
	str	w19, [x8, x9, lsl #2]
	add	x8, x9, #1
	str	x8, [x22]
	ldr	x8, [x20]
	ldr	x9, [x21]
LBB0_3:
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	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
LBB0_5:
	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	_register_code
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cMode,8,3                      ; @cMode
	.comm	_COMMAND,8,3                    ; @COMMAND
	.comm	_CMDLEN,8,3                     ; @CMDLEN
	.comm	_MAX_CMD_BUF,8,3                ; @MAX_CMD_BUF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD LEN: %d BUF: %d\n"

	.comm	_CMDBUF,8,3                     ; @CMDBUF
.subsections_via_symbols
