	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_can_xon
_channel_can_xon:                       ## @channel_can_xon
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.1:
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rax), %rdx
	movl	8(%rax), %r11d
	shll	$8, %r11d
	orl	(%rdx,%rsi,4), %r11d
	movq	8(%rcx), %r10
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	movl	$65535, %r14d                   ## imm = 0xFFFF
	xorl	%edi, %edi
LBB0_11:
	testb	$1, %r8b
	je	LBB0_13
## %bb.12:
	movl	(%r10,%rdx,4), %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %r11d
	sete	%cl
	addl	%ecx, %edi
	movl	%r14d, %ecx
	xorl	$65535, %ecx                    ## imm = 0xFFFF
	orl	%eax, %ecx
	cmovnel	%r14d, %edx
	movl	%edx, %r14d
LBB0_13:
	cmpl	$3, %edi
	setb	%al
	cmpl	$65535, %r14d                   ## imm = 0xFFFF
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edx, %edx
	movl	$65535, %r14d                   ## imm = 0xFFFF
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %r14d
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	%r15b, %sil
	addl	%esi, %edi
	addq	$2, %rdx
	cmpq	%r9, %rdx
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rdx,4), %ecx
	xorl	%esi, %esi
	cmpl	%ecx, %r11d
	sete	%r15b
	movl	%r14d, %eax
	xorl	$65535, %eax                    ## imm = 0xFFFF
	orl	%ecx, %eax
	movl	%edx, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	%r15b, %sil
	addl	%esi, %edi
	movl	4(%r10,%rdx,4), %eax
	xorl	%esi, %esi
	cmpl	%eax, %r11d
	sete	%r15b
	movl	%ebx, %ecx
	xorl	$65535, %ecx                    ## imm = 0xFFFF
	orl	%eax, %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%rdx), %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_channel_can_xon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_can_xon
_channel_can_xon:                       ; @channel_can_xon
	.cfi_startproc
; %bb.0:
	ldr	x12, [x0, #8]
	cbz	x12, LBB0_5
; %bb.1:
	ldr	w8, [x12]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x10, #0
	mov	w9, #0
	ldr	x11, [x0]
	ldr	x13, [x11]
	ldr	w13, [x13, x1, lsl #2]
	ldr	w11, [x11, #8]
	orr	w11, w13, w11, lsl #8
	ldr	x12, [x12, #8]
	mov	w13, #65535
	mov	w14, #65535
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x12, x10, lsl #2]
	cmp	w11, w15
	cinc	w9, w9, eq
	cmp	w14, w13
	ccmp	w15, #0, #0, eq
	csel	w14, w10, w14, eq
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_3
; %bb.4:
	cmp	w9, #3
	mov	w8, #65535
	ccmp	w14, w8, #4, lo
	cset	w0, ne
	ret
LBB0_5:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_channel_can_xon
.subsections_via_symbols
