	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function async_Decode
_async_Decode:                          ## @async_Decode
	.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
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movq	_MODE_HUNT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpl	$128, %esi
	je	LBB0_2
## %bb.1:
	movl	%ecx, %edx
	andl	%eax, %edx
	jne	LBB0_13
LBB0_2:
	cmpl	$129, %esi
	je	LBB0_6
## %bb.3:
	cmpl	$128, %esi
	jne	LBB0_8
## %bb.4:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
	movl	16(%r14), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.5:
	movq	_MB_ASYNCIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_m_get
	movq	%rax, %rbx
	movq	8(%r14), %rsi
	movl	16(%r14), %edx
	movq	%rax, %rdi
	callq	_mbuf_Write
	movl	$0, 16(%r14)
	jmp	LBB0_14
LBB0_6:
	movq	_MODE_ESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_7
LBB0_8:
	movslq	16(%r14), %rdx
	movq	_HDLCSIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jge	LBB0_9
## %bb.10:
	movq	_MODE_ESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	movq	_HDLC_XOR@GOTPCREL(%rip), %rdi
	xorl	(%rdi), %esi
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
LBB0_12:
	movq	8(%r14), %rax
	leal	1(%rdx), %ecx
	movl	%ecx, 16(%r14)
	movl	%esi, (%rax,%rdx,4)
	jmp	LBB0_13
LBB0_9:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_log_Printf
	movl	$0, 16(%r14)
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_7:
	orl	%eax, %ecx
	movl	%ecx, (%r14)
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_HUNT,4,2                  ## @MODE_HUNT
	.comm	_MB_ASYNCIN,4,2                 ## @MB_ASYNCIN
	.comm	_MODE_ESC,4,2                   ## @MODE_ESC
	.comm	_HDLCSIZE,4,2                   ## @HDLCSIZE
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet too large (%d), discarding.\n"

	.comm	_HDLC_XOR,4,2                   ## @HDLC_XOR
	.no_dead_strip	_async_Decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function async_Decode
_async_Decode:                          ; @async_Decode
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _MODE_HUNT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MODE_HUNT@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	and	w10, w9, w8
	cbz	w10, LBB0_3
LBB0_2:
	mov	x20, #0
	b	LBB0_15
LBB0_3:
	cmp	w1, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w1, #128
	b.ne	LBB0_8
; %bb.5:
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	w0, [x19, #16]
	cbz	w0, LBB0_2
; %bb.6:
Lloh2:
	adrp	x8, _MB_ASYNCIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MB_ASYNCIN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_m_get
	mov	x20, x0
	ldr	x1, [x19, #8]
	ldr	w2, [x19, #16]
	bl	_mbuf_Write
	str	wzr, [x19, #16]
	b	LBB0_15
LBB0_7:
Lloh5:
	adrp	x9, _MODE_ESC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MODE_ESC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_8:
	ldrsw	x2, [x19, #16]
Lloh8:
	adrp	x9, _HDLCSIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDLCSIZE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w2, w9
	b.ge	LBB0_12
; %bb.9:
Lloh11:
	adrp	x9, _MODE_ESC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MODE_ESC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh14:
	adrp	x10, _HDLC_XOR@GOTPAGE
Lloh15:
	ldr	x10, [x10, _HDLC_XOR@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	eor	w1, w10, w1
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_11:
	mov	x20, #0
	ldr	x8, [x19, #8]
	add	w9, w2, #1
	str	w9, [x19, #16]
	str	w1, [x8, x2, lsl #2]
	b	LBB0_15
LBB0_12:
Lloh17:
	adrp	x8, _LogWARN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_log_Printf
	mov	x20, #0
	str	wzr, [x19, #16]
	ldr	w8, [x21]
	b	LBB0_14
LBB0_13:
	mov	x20, #0
	orr	w8, w9, w8
LBB0_14:
	str	w8, [x19]
LBB0_15:
	mov	x0, x20
	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
	.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 AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_HUNT,4,2                  ; @MODE_HUNT
	.comm	_MB_ASYNCIN,4,2                 ; @MB_ASYNCIN
	.comm	_MODE_ESC,4,2                   ; @MODE_ESC
	.comm	_HDLCSIZE,4,2                   ; @HDLCSIZE
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet too large (%d), discarding.\n"

	.comm	_HDLC_XOR,4,2                   ; @HDLC_XOR
	.no_dead_strip	_async_Decode
.subsections_via_symbols
