	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_error_report
_decode_error_report:                   ## @decode_error_report
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nand_to_mtd
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_to_tango_nfc
	movq	%rax, %rbx
	movq	_NFC_XFER_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movl	%eax, %ecx
	movq	_PAGE_IS_EMPTY@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_4
## %bb.1:
	movq	_ERROR_REPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_DECODE_FAIL_PKT_0
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_DECODE_FAIL_PKT_N
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, %edi
	callq	_ERR_COUNT_PKT_0
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_ERR_COUNT_PKT_N
	addl	%r15d, %eax
	addl	%eax, (%r14)
	movl	%ebx, %edi
	callq	_ERR_COUNT_PKT_0
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_ERR_COUNT_PKT_N
	movq	%r14, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_max                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFC_XFER_STATUS,8,3            ## @NFC_XFER_STATUS
	.comm	_PAGE_IS_EMPTY,4,2              ## @PAGE_IS_EMPTY
	.comm	_ERROR_REPORT,8,3               ## @ERROR_REPORT
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.no_dead_strip	_decode_error_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_error_report
_decode_error_report:                   ; @decode_error_report
	.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, x0
	bl	_nand_to_mtd
	mov	x19, x0
	ldr	w0, [x20]
	bl	_to_tango_nfc
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _NFC_XFER_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFC_XFER_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh3:
	adrp	x8, _PAGE_IS_EMPTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_IS_EMPTY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _ERROR_REPORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ERROR_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	bl	_DECODE_FAIL_PKT_0
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_DECODE_FAIL_PKT_N
	cbz	x0, LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
	mov	x0, x20
	bl	_ERR_COUNT_PKT_0
	mov	x21, x0
	mov	x0, x20
	bl	_ERR_COUNT_PKT_N
	ldr	w8, [x19]
	add	w9, w0, w21
	add	w8, w8, w9
	str	w8, [x19]
	mov	x0, x20
	bl	_ERR_COUNT_PKT_0
	mov	x19, x0
	mov	x0, x20
	bl	_ERR_COUNT_PKT_N
	mov	x1, x0
	mov	x0, x19
	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
	b	_max
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NFC_XFER_STATUS,8,3            ; @NFC_XFER_STATUS
	.comm	_PAGE_IS_EMPTY,4,2              ; @PAGE_IS_EMPTY
	.comm	_ERROR_REPORT,8,3               ; @ERROR_REPORT
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.no_dead_strip	_decode_error_report
.subsections_via_symbols
