	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slcan_unesc
_slcan_unesc:                           ## @slcan_unesc
	.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	%esi, %ebx
	movq	%rdi, %r14
	cmpb	$13, %bl
	je	LBB0_2
## %bb.1:
	cmpb	$7, %bl
	jne	LBB0_6
LBB0_2:
	movq	_SLF_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	cmpl	$5, (%r14)
	jl	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_slc_bump
LBB0_5:
	movl	$0, (%r14)
	jmp	LBB0_9
LBB0_6:
	movq	_SLF_ERROR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	16(%r14), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movslq	(%r14), %rax
	movq	_SLC_MTU@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_10
## %bb.8:
	movq	8(%r14), %rcx
	leal	1(%rax), %edx
	movl	%edx, (%r14)
	movb	%bl, (%rcx,%rax)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	24(%r14), %rax
	incl	(%rax)
	movl	(%r12), %edi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SLF_ERROR,4,2                  ## @SLF_ERROR
	.comm	_SLC_MTU,4,2                    ## @SLC_MTU
	.no_dead_strip	_slcan_unesc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slcan_unesc
_slcan_unesc:                           ; @slcan_unesc
	.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
	cmp	w1, #13
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x1
	cmp	w1, #7
	b.ne	LBB0_6
LBB0_2:
Lloh0:
	adrp	x8, _SLF_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLF_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_and_clear_bit
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #5
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_slc_bump
LBB0_5:
	str	wzr, [x19]
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x22, _SLF_ERROR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SLF_ERROR@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x19, #16
	mov	x1, x21
	bl	_test_bit
	cbnz	w0, LBB0_9
; %bb.7:
	ldrsw	x8, [x19]
Lloh5:
	adrp	x9, _SLC_MTU@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SLC_MTU@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.8:
	ldr	x9, [x19, #8]
	add	w10, w8, #1
	str	w10, [x19]
	strb	w20, [x9, x8]
LBB0_9:
	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_10:
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w0, [x22]
	mov	x1, x21
	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	_set_bit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SLF_ERROR,4,2                  ; @SLF_ERROR
	.comm	_SLC_MTU,4,2                    ; @SLC_MTU
	.no_dead_strip	_slcan_unesc
.subsections_via_symbols
