	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_frame
_check_frame:                           ## @check_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	cmpl	$1, %eax
	jg	LBB0_3
## %bb.1:
	movq	_HDLC_FRAMING_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	cmpl	$61624, 4(%rdi)                 ## imm = 0xF0B8
	jne	LBB0_4
## %bb.5:
	addl	$-2, %eax
	movl	%eax, (%rdi)
	popq	%rbp
	retq
LBB0_4:
	movq	_HDLC_CRC_ERROR@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDLC_FRAMING_ERROR,4,2         ## @HDLC_FRAMING_ERROR
	.comm	_HDLC_CRC_ERROR,4,2             ## @HDLC_CRC_ERROR
	.no_dead_strip	_check_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_frame
_check_frame:                           ; @check_frame
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _HDLC_FRAMING_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDLC_FRAMING_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	w9, [x0, #4]
	mov	w10, #61624
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.3:
	sub	w8, w8, #2
	str	w8, [x0]
	mov	x0, x8
	ret
LBB0_4:
Lloh2:
	adrp	x8, _HDLC_CRC_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDLC_CRC_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HDLC_FRAMING_ERROR,4,2         ; @HDLC_FRAMING_ERROR
	.comm	_HDLC_CRC_ERROR,4,2             ; @HDLC_CRC_ERROR
	.no_dead_strip	_check_frame
.subsections_via_symbols
