	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qnxr_send_packet               ## -- Begin function qnxr_send_packet
	.p2align	4, 0x90
_qnxr_send_packet:                      ## @qnxr_send_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movb	$-126, (%rax)
	leaq	1(%rax), %rbx
	cmpl	$0, 8(%rdi)
	jle	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rax
	movb	$-125, (%rbx)
	movl	%esi, %edi
	xorl	$32, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%esi, %ecx
	movb	%dil, (%rax)
	incq	%rdx
	leaq	1(%rax), %rbx
	movslq	8(%r14), %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	movl	(%rsi,%rdx,4), %esi
	movl	%esi, %edi
	andl	$-2, %edi
	cmpl	$130, %edi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rax
	movl	%esi, %edi
	jmp	LBB0_7
LBB0_8:
	movl	%ecx, %edx
	xorl	$255, %edx
	movl	%edx, %esi
	andl	$-2, %esi
	cmpl	$130, %esi
	jne	LBB0_10
## %bb.9:
	movb	$-125, 1(%rax)
	addq	$2, %rax
	xorl	$223, %ecx
	movl	%ecx, %edx
	movq	%rax, %rbx
	jmp	LBB0_10
LBB0_17:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	$255, %edx
LBB0_10:
	movb	%dl, (%rbx)
	movb	$-126, 1(%rbx)
	addq	$2, %rbx
	movl	32(%r14), %eax
	cmpl	%eax, 12(%r14)
	je	LBB0_16
## %bb.11:
	cmpl	$129, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	callq	_qnxr_send_ch_text
	jmp	LBB0_15
LBB0_14:
	movq	%r14, %rdi
	callq	_qnxr_send_ch_debug
LBB0_15:
	movl	32(%r14), %eax
	movl	%eax, 12(%r14)
LBB0_16:
	movl	16(%r14), %edi
	movq	(%r14), %rsi
	subl	%esi, %ebx
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_r_socket_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initialize libqnxr_t first\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qnxr_send_packet               ; -- Begin function qnxr_send_packet
	.p2align	2
_qnxr_send_packet:                      ; @qnxr_send_packet
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x10, [x0]
	mov	w8, #130
	mov	x9, x10
	strb	w8, [x9], #1
	ldr	w11, [x0, #8]
	cmp	w11, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x12, #0
	mov	w11, #0
	mov	w13, #131
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #2
	strb	w13, [x9]
	eor	w15, w14, #0x20
	mov	x9, x10
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w11, w14, w11
	strb	w15, [x9], #1
	add	x12, x12, #1
	ldrsw	x14, [x19, #8]
	cmp	x12, x14
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x19, #24]
	ldr	w14, [x14, x12, lsl #2]
	and	w15, w14, #0xfffffffe
	cmp	w15, #130
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x10, x9
	mov	x15, x14
	b	LBB0_4
LBB0_7:
	eor	w12, w11, #0xff
	and	w13, w12, #0xfffffffe
	cmp	w13, #130
	b.ne	LBB0_11
; %bb.8:
	add	x9, x10, #2
	mov	w12, #131
	strb	w12, [x10, #1]
	mov	w10, #223
	eor	w12, w11, w10
	b	LBB0_11
LBB0_9:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w12, #255
LBB0_11:
	strb	w12, [x9]
	add	x20, x9, #2
	strb	w8, [x9, #1]
	ldr	w9, [x19, #12]
	ldr	w8, [x19, #32]
	cmp	w9, w8
	b.eq	LBB0_17
; %bb.12:
	cmp	w8, #129
	b.eq	LBB0_15
; %bb.13:
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_qnxr_send_ch_text
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_qnxr_send_ch_debug
LBB0_16:
	ldr	w8, [x19, #32]
	str	w8, [x19, #12]
LBB0_17:
	ldr	w0, [x19, #16]
	ldr	x1, [x19]
	sub	w2, w20, w1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_r_socket_write
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initialize libqnxr_t first\n"

.subsections_via_symbols
