	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn533_std_rx_frame_is_valid
_pn533_std_rx_frame_is_valid:           ## @pn533_std_rx_frame_is_valid
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	_PN533_STD_FRAME_SOF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	xorl	%r14d, %r14d
	cmpq	%rax, %rbx
	jne	LBB0_8
## %bb.1:
	movq	%r12, %rdi
	callq	_PN533_STD_IS_EXTENDED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_PN533_STD_FRAME_HEADER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movl	16(%r12), %edi
	callq	_pn533_std_checksum
	cmpq	8(%r12), %rax
	jne	LBB0_8
## %bb.3:
	movl	16(%r12), %esi
	movl	20(%r12), %edi
	callq	_pn533_std_data_checksum
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_PN533_STD_FRAME_CHECKSUM
	cmpq	%rax, %r15
	je	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movq	_PN533_EXT_FRAME_HEADER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movl	8(%r12), %edi
	callq	_be16_to_cpu
	movl	%eax, %edi
	callq	_pn533_ext_checksum
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.5:
	movl	8(%r12), %edi
	movl	12(%r12), %r15d
	callq	_be16_to_cpu
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_pn533_std_data_checksum
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_PN533_EXT_FRAME_CHECKSUM
	cmpq	%rax, %r15
	jne	LBB0_8
LBB0_7:
	movl	$1, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PN533_STD_FRAME_SOF,4,2        ## @PN533_STD_FRAME_SOF
	.comm	_PN533_STD_FRAME_HEADER_LEN,4,2 ## @PN533_STD_FRAME_HEADER_LEN
	.comm	_PN533_EXT_FRAME_HEADER_LEN,4,2 ## @PN533_EXT_FRAME_HEADER_LEN
	.no_dead_strip	_pn533_std_rx_frame_is_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn533_std_rx_frame_is_valid
_pn533_std_rx_frame_is_valid:           ; @pn533_std_rx_frame_is_valid
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _PN533_STD_FRAME_SOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PN533_STD_FRAME_SOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	cmp	x21, x0
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_PN533_STD_IS_EXTENDED
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _PN533_STD_FRAME_HEADER_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PN533_STD_FRAME_HEADER_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
	ldr	w0, [x19, #16]
	bl	_pn533_std_checksum
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldp	w1, w0, [x19, #16]
	bl	_pn533_std_data_checksum
	mov	x20, x0
	mov	x0, x19
	bl	_PN533_STD_FRAME_CHECKSUM
	cmp	x20, x0
	b.eq	LBB0_6
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _PN533_EXT_FRAME_HEADER_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PN533_EXT_FRAME_HEADER_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
	ldr	w0, [x19, #8]
	bl	_be16_to_cpu
	bl	_pn533_ext_checksum
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldp	w0, w20, [x19, #8]
	bl	_be16_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_pn533_std_data_checksum
	mov	x20, x0
	mov	x0, x19
	bl	_PN533_EXT_FRAME_CHECKSUM
	cmp	x20, x0
	b.ne	LBB0_7
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PN533_STD_FRAME_SOF,4,2        ; @PN533_STD_FRAME_SOF
	.comm	_PN533_STD_FRAME_HEADER_LEN,4,2 ; @PN533_STD_FRAME_HEADER_LEN
	.comm	_PN533_EXT_FRAME_HEADER_LEN,4,2 ; @PN533_EXT_FRAME_HEADER_LEN
	.no_dead_strip	_pn533_std_rx_frame_is_valid
.subsections_via_symbols
