	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcsp_unslip_one_byte
_bcsp_unslip_one_byte:                  ## @bcsp_unslip_one_byte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movb	%sil, -9(%rbp)
	movb	$-64, -11(%rbp)
	movb	$-37, -10(%rbp)
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.2:
	cmpb	$-37, %sil
	jne	LBB0_4
## %bb.3:
	movl	$129, (%rbx)
	jmp	LBB0_19
LBB0_8:
	cmpb	$-35, %sil
	je	LBB0_15
## %bb.9:
	cmpb	$-36, %sil
	jne	LBB0_18
## %bb.10:
	movq	16(%rbx), %rdi
	movl	$1, %esi
	callq	_skb_put
	leaq	-11(%rbp), %rsi
	movl	%eax, %edi
	movl	$1, %edx
	callq	_memcpy
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testb	$64, (%rax)
	je	LBB0_14
## %bb.11:
	movl	8(%rbx), %eax
	movq	_BCSP_W4_CRC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.12:
	leaq	24(%rbx), %rdi
	movl	$192, %esi
	jmp	LBB0_13
LBB0_4:
	movq	16(%rbx), %rdi
	movl	$1, %esi
	callq	_skb_put
	leaq	-9(%rbp), %rsi
	movl	%eax, %edi
	movl	$1, %edx
	callq	_memcpy
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testb	$64, (%rax)
	je	LBB0_7
## %bb.5:
	movl	8(%rbx), %eax
	movq	_BCSP_W4_CRC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:
	leaq	24(%rbx), %rdi
	movzbl	-9(%rbp), %esi
	callq	_bcsp_crc_update
LBB0_7:
	decl	4(%rbx)
	jmp	LBB0_19
LBB0_15:
	movq	16(%rbx), %rdi
	movl	$1, %esi
	callq	_skb_put
	leaq	-10(%rbp), %rsi
	movl	%eax, %edi
	movl	$1, %edx
	callq	_memcpy
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testb	$64, (%rax)
	je	LBB0_14
## %bb.16:
	movl	8(%rbx), %eax
	movq	_BCSP_W4_CRC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.17:
	leaq	24(%rbx), %rdi
	movl	$219, %esi
LBB0_13:
	callq	_bcsp_crc_update
LBB0_14:
	movl	$128, (%rbx)
	decl	4(%rbx)
	jmp	LBB0_19
LBB0_18:
	movzbl	%sil, %esi
	leaq	L_.str(%rip), %rdi
	callq	_BT_ERR
	movq	16(%rbx), %rdi
	callq	_kfree_skb
	movq	$0, 16(%rbx)
	movq	_BCSP_W4_PKT_DELIMITER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$0, 4(%rbx)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCSP_W4_CRC,4,2                ## @BCSP_W4_CRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid byte %02x after esc byte"

	.comm	_BCSP_W4_PKT_DELIMITER,4,2      ## @BCSP_W4_PKT_DELIMITER
	.no_dead_strip	_bcsp_unslip_one_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcsp_unslip_one_byte
_bcsp_unslip_one_byte:                  ; @bcsp_unslip_one_byte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	strb	w1, [sp, #15]
	mov	w8, #192
	strb	w8, [sp, #14]
	mov	w8, #219
	strb	w8, [sp, #13]
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.2:
	cmp	w1, #219
	b.ne	LBB0_9
; %bb.3:
	mov	w8, #129
	str	w8, [x19]
	b	LBB0_19
LBB0_4:
	cmp	w1, #221
	b.eq	LBB0_13
; %bb.5:
	cmp	w1, #220
	b.ne	LBB0_18
; %bb.6:
	ldr	x0, [x19, #16]
	mov	w1, #1
	bl	_skb_put
	add	x1, sp, #14
	mov	w2, #1
	bl	_memcpy
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldrb	w8, [x8]
	tbz	w8, #6, LBB0_17
; %bb.7:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _BCSP_W4_CRC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCSP_W4_CRC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.8:
	add	x0, x19, #24
	mov	w1, #192
	b	LBB0_16
LBB0_9:
	ldr	x0, [x19, #16]
	mov	w1, #1
	bl	_skb_put
	add	x1, sp, #15
	mov	w2, #1
	bl	_memcpy
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldrb	w8, [x8]
	tbz	w8, #6, LBB0_12
; %bb.10:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _BCSP_W4_CRC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BCSP_W4_CRC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.11:
	add	x0, x19, #24
	ldrb	w1, [sp, #15]
	bl	_bcsp_crc_update
LBB0_12:
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_19
LBB0_13:
	ldr	x0, [x19, #16]
	mov	w1, #1
	bl	_skb_put
	add	x1, sp, #13
	mov	w2, #1
	bl	_memcpy
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldrb	w8, [x8]
	tbz	w8, #6, LBB0_17
; %bb.14:
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _BCSP_W4_CRC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BCSP_W4_CRC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.15:
	add	x0, x19, #24
	mov	w1, #219
LBB0_16:
	bl	_bcsp_crc_update
LBB0_17:
	mov	w8, #128
	ldr	w9, [x19, #4]
	sub	w9, w9, #1
	stp	w8, w9, [x19]
	b	LBB0_19
LBB0_18:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_ERR
	ldr	x0, [x19, #16]
	bl	_kfree_skb
	str	xzr, [x19, #16]
Lloh11:
	adrp	x8, _BCSP_W4_PKT_DELIMITER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCSP_W4_PKT_DELIMITER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	wzr, w8, [x19, #4]
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BCSP_W4_CRC,4,2                ; @BCSP_W4_CRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid byte %02x after esc byte"

	.comm	_BCSP_W4_PKT_DELIMITER,4,2      ; @BCSP_W4_PKT_DELIMITER
	.no_dead_strip	_bcsp_unslip_one_byte
.subsections_via_symbols
