	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function async_Encode
_async_Encode:                          ## @async_Encode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %r9
	cmpl	$31, %edx
	jg	LBB0_6
## %bb.1:
	movq	_PROTO_LCP@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_HDLC_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_9
LBB0_6:
	movq	_HDLC_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%edx, %ecx
	cmpl	%edx, %r8d
	jne	LBB0_8
	jmp	LBB0_9
LBB0_3:
	movl	(%rdi), %eax
	btl	%edx, %eax
	movq	_HDLC_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	jb	LBB0_4
## %bb.5:
	movl	%r8d, %ecx
	cmpl	%edx, %r8d
	je	LBB0_9
LBB0_8:
	movq	_HDLC_SYN@GOTPCREL(%rip), %rax
	movl	%r8d, %ecx
	cmpl	%edx, (%rax)
	je	LBB0_9
	jmp	LBB0_10
LBB0_4:
	movl	%r8d, %ecx
LBB0_9:
	movl	%ecx, (%r9)
	addq	$4, %r9
	movq	_HDLC_XOR@GOTPCREL(%rip), %rax
	xorl	(%rax), %edx
LBB0_10:
	movq	8(%rdi), %rcx
	cmpl	$0, 128(%rcx)
	je	LBB0_13
## %bb.11:
	movl	%edx, %eax
	sarl	$3, %eax
	cltq
	movl	(%rcx,%rax,4), %eax
	movl	%edx, %ecx
	andb	$7, %cl
	movzbl	%cl, %ecx
	btl	%ecx, %eax
	jae	LBB0_13
## %bb.12:
	movq	_HDLC_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r9)
	addq	$4, %r9
	movq	_HDLC_XOR@GOTPCREL(%rip), %rax
	xorl	(%rax), %edx
LBB0_13:
	movl	%edx, (%r9)
	addq	$4, %r9
	movq	%r9, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTO_LCP,4,2                  ## @PROTO_LCP
	.comm	_HDLC_ESC,4,2                   ## @HDLC_ESC
	.comm	_HDLC_SYN,4,2                   ## @HDLC_SYN
	.comm	_HDLC_XOR,4,2                   ## @HDLC_XOR
	.no_dead_strip	_async_Encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function async_Encode
_async_Encode:                          ; @async_Encode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _HDLC_XOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDLC_XOR@GOTPAGEOFF]
	cmp	w2, #31
	b.gt	LBB0_3
; %bb.1:
Lloh2:
	adrp	x10, _PROTO_LCP@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PROTO_LCP@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w10, w3
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x10, _HDLC_ESC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HDLC_ESC@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x10]
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x10, _HDLC_ESC@GOTPAGE
Lloh9:
	ldr	x10, [x10, _HDLC_ESC@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	mov	x11, x2
	cmp	w10, w2
	b.ne	LBB0_6
	b	LBB0_8
LBB0_4:
	ldr	w11, [x0]
Lloh11:
	adrp	x10, _HDLC_ESC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HDLC_ESC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsr	w11, w11, w2
	tbnz	w11, #0, LBB0_7
; %bb.5:
	mov	x11, x10
	cmp	w10, w2
	b.eq	LBB0_8
LBB0_6:
Lloh14:
	adrp	x11, _HDLC_SYN@GOTPAGE
Lloh15:
	ldr	x11, [x11, _HDLC_SYN@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x11]
	mov	x11, x10
	cmp	w12, w2
	b.eq	LBB0_8
	b	LBB0_9
LBB0_7:
	mov	x11, x10
LBB0_8:
	str	w11, [x8], #4
	ldr	w10, [x9]
	eor	w2, w10, w2
LBB0_9:
	ldr	x10, [x0, #8]
	ldr	w11, [x10, #128]
	cbz	w11, LBB0_12
; %bb.10:
	asr	w11, w2, #3
	ldr	w10, [x10, w11, sxtw #2]
	and	w11, w2, #0x7
	lsr	w10, w10, w11
	tbz	w10, #0, LBB0_12
; %bb.11:
Lloh17:
	adrp	x10, _HDLC_ESC@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HDLC_ESC@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	str	w10, [x8], #4
	ldr	w9, [x9]
	eor	w2, w9, w2
LBB0_12:
	str	w2, [x8], #4
	str	x8, [x1]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_LCP,4,2                  ; @PROTO_LCP
	.comm	_HDLC_ESC,4,2                   ; @HDLC_ESC
	.comm	_HDLC_SYN,4,2                   ; @HDLC_SYN
	.comm	_HDLC_XOR,4,2                   ; @HDLC_XOR
	.no_dead_strip	_async_Encode
.subsections_via_symbols
