	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_hdparse
_brcmf_sdio_hdparse:                    ## @brcmf_sdio_hdparse
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_SDPCM_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_trace_brcmf_sdpcm_hdr
	movq	%rbx, %rdi
	callq	_get_unaligned_le16
	movl	%eax, %r12d
	leaq	32(%rbx), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %ecx
	orl	%r12d, %ecx
	je	LBB0_3
## %bb.1:
	xorl	%r12d, %eax
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_err
	incl	48(%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_brcmf_sdio_rxfail
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movl	$0, (%r15)
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_SDPCM_HDRLEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_10
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_err
LBB0_7:
	movq	_EPROTO@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_BRCMF_SDIO_FT_SUPER@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_12
## %bb.11:
	movl	56(%r15), %esi
	movl	%r12d, %edi
	callq	_roundup
	cmpl	(%r14), %eax
	jne	LBB0_18
LBB0_12:
	movq	_BRCMF_SDIO_FT_SUB@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_15
## %bb.13:
	cmpl	(%r14), %r12d
	jle	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_15:
	movl	%r12d, (%r14)
	movq	_SDPCM_HWHDR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,8), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx,%rax,8), %edi
	callq	_le32_to_cpu
	movq	_BRCMF_SDIO_FT_SUPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%r13d, %edx
	jne	LBB0_20
## %bb.16:
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_SDPCM_GLOMDESC
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_27
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_19:
	movq	_BRCMF_SDIO_FT_SUPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rax
LBB0_20:
	movq	_SDPCM_SEQ_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	andq	%rax, %rbx
	movq	_SDPCM_CHANNEL_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	andq	%rax, %rsi
	movq	_SDPCM_CHANNEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rsi
	movq	%rsi, 24(%r14)
	movq	_MAX_RX_DATASZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jle	LBB0_24
## %bb.21:
	movq	_SDPCM_CONTROL_CHANNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_24
## %bb.22:
	cmpl	%r13d, %edx
	je	LBB0_24
## %bb.23:
	leaq	L_.str.5(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_err
	incl	52(%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_brcmf_sdio_rxfail
	movl	$0, (%r14)
	jmp	LBB0_7
LBB0_24:
	movq	_SDPCM_GLOM_CHANNEL@GOTPCREL(%rip), %r12
	cmpl	%r13d, %edx
	jne	LBB0_28
## %bb.25:
	cmpq	(%r12), %rsi
	je	LBB0_28
## %bb.26:
	leaq	L_.str.6(%rip), %rdi
LBB0_27:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_err
	movl	$0, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_28:
	movq	_BRCMF_SDIO_FT_SUB@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_32
## %bb.29:
	movq	_SDPCM_DATA_CHANNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_32
## %bb.30:
	movq	_SDPCM_EVENT_CHANNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_32
## %bb.31:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_27
LBB0_32:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_brcmf_sdio_getdatoffset
	movl	%eax, 4(%r14)
	movq	_SDPCM_HDRLEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_34
## %bb.33:
	cmpl	(%r14), %eax
	jle	LBB0_35
LBB0_34:
	leaq	L_.str.8(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_err
	incl	48(%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_brcmf_sdio_rxfail
	movl	$0, (%r14)
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_35:
	movq	8(%r14), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_37
## %bb.36:
	movq	_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdx
	callq	_brcmf_dbg
	incl	44(%r15)
	movq	%rbx, 8(%r14)
LBB0_37:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_BRCMF_SDIO_FT_SUB@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_9
## %bb.38:
	movq	_SDPCM_NEXTLEN_MASK@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	andq	(%rax), %rdx
	movq	_SDPCM_NEXTLEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarq	%cl, %rdx
	movl	%edx, 16(%r14)
	shll	$4, %edx
	movq	_MAX_RX_DATASZ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_42
## %bb.39:
	movq	24(%r14), %rax
	cmpq	(%r12), %rax
	je	LBB0_41
## %bb.40:
	leaq	L_.str.10(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_brcmf_err
LBB0_41:
	movl	$0, 16(%r14)
LBB0_42:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edi
	callq	_le32_to_cpu
	movq	_SDPCM_FCMASK_MASK@GOTPCREL(%rip), %rdx
	movq	%rax, %rcx
	andq	(%rdx), %rcx
	movq	8(%r15), %rdx
	cmpq	%rcx, %rdx
	je	LBB0_48
## %bb.43:
	movq	%rdx, %rsi
	notq	%rsi
	testq	%rsi, %rcx
	je	LBB0_45
## %bb.44:
	incl	40(%r15)
LBB0_45:
	movq	%rcx, %rsi
	notq	%rsi
	testq	%rsi, %rdx
	je	LBB0_47
## %bb.46:
	incl	36(%r15)
LBB0_47:
	incl	32(%r15)
	movq	%rcx, 8(%r15)
LBB0_48:
	movq	_SDPCM_WINDOW_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	andq	%rax, %rdx
	movq	_SDPCM_WINDOW_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarq	%cl, %rdx
	movq	%rdx, %rax
	subq	16(%r15), %rax
	cmpq	$65, %rax
	jl	LBB0_50
## %bb.49:
	leaq	L_.str.11(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_brcmf_err
	movq	16(%r15), %rdx
	addq	$2, %rdx
LBB0_50:
	movq	%rdx, 24(%r15)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SDPCM_RX,4,2                   ## @SDPCM_RX
	.comm	_ENODATA,4,2                    ## @ENODATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW header checksum error\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_SDPCM_HDRLEN,4,2               ## @SDPCM_HDRLEN
L_.str.1:                               ## @.str.1
	.asciz	"HW header length error\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_BRCMF_SDIO_FT_SUPER,4,2        ## @BRCMF_SDIO_FT_SUPER
L_.str.2:                               ## @.str.2
	.asciz	"HW superframe header length error\n"

	.comm	_BRCMF_SDIO_FT_SUB,4,2          ## @BRCMF_SDIO_FT_SUB
L_.str.3:                               ## @.str.3
	.asciz	"HW subframe header length error\n"

	.comm	_SDPCM_HWHDR_LEN,4,2            ## @SDPCM_HWHDR_LEN
L_.str.4:                               ## @.str.4
	.asciz	"Glom descriptor found in superframe head\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SDPCM_SEQ_MASK,8,3             ## @SDPCM_SEQ_MASK
	.comm	_SDPCM_CHANNEL_MASK,8,3         ## @SDPCM_CHANNEL_MASK
	.comm	_SDPCM_CHANNEL_SHIFT,8,3        ## @SDPCM_CHANNEL_SHIFT
	.comm	_MAX_RX_DATASZ,4,2              ## @MAX_RX_DATASZ
	.comm	_SDPCM_CONTROL_CHANNEL,8,3      ## @SDPCM_CONTROL_CHANNEL
L_.str.5:                               ## @.str.5
	.asciz	"HW header length too long\n"

	.comm	_SDPCM_GLOM_CHANNEL,8,3         ## @SDPCM_GLOM_CHANNEL
L_.str.6:                               ## @.str.6
	.asciz	"Wrong channel for superframe\n"

	.comm	_SDPCM_DATA_CHANNEL,8,3         ## @SDPCM_DATA_CHANNEL
	.comm	_SDPCM_EVENT_CHANNEL,8,3        ## @SDPCM_EVENT_CHANNEL
L_.str.7:                               ## @.str.7
	.asciz	"Wrong channel for subframe\n"

L_.str.8:                               ## @.str.8
	.asciz	"seq %d: bad data offset\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SDIO,4,2                       ## @SDIO
L_.str.9:                               ## @.str.9
	.asciz	"seq %d, expected %d\n"

	.comm	_SDPCM_NEXTLEN_MASK,8,3         ## @SDPCM_NEXTLEN_MASK
	.comm	_SDPCM_NEXTLEN_SHIFT,8,3        ## @SDPCM_NEXTLEN_SHIFT
L_.str.10:                              ## @.str.10
	.asciz	"seq %d: next length error\n"

	.comm	_SDPCM_FCMASK_MASK,8,3          ## @SDPCM_FCMASK_MASK
	.comm	_SDPCM_WINDOW_MASK,8,3          ## @SDPCM_WINDOW_MASK
	.comm	_SDPCM_WINDOW_SHIFT,8,3         ## @SDPCM_WINDOW_SHIFT
L_.str.11:                              ## @.str.11
	.asciz	"seq %d: max tx seq number error\n"

	.no_dead_strip	_brcmf_sdio_hdparse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_hdparse
_brcmf_sdio_hdparse:                    ; @brcmf_sdio_hdparse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SDPCM_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDPCM_RX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_trace_brcmf_sdpcm_hdr
	mov	x0, x22
	bl	_get_unaligned_le16
	mov	x23, x0
	add	x0, x22, #32
	bl	_get_unaligned_le16
	orr	w8, w0, w23
	cbz	w8, LBB0_3
; %bb.1:
	eor	w8, w0, w23
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_brcmf_err
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_brcmf_sdio_rxfail
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	str	wzr, [x19]
Lloh7:
	adrp	x8, _ENODATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x26, _SDPCM_HDRLEN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _SDPCM_HDRLEN@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w23, w8
	b.ge	LBB0_10
; %bb.5:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_brcmf_err
LBB0_7:
Lloh13:
	adrp	x8, _EPROTO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
Lloh15:
	adrp	x27, _BRCMF_SDIO_FT_SUPER@GOTPAGE
Lloh16:
	ldr	x27, [x27, _BRCMF_SDIO_FT_SUPER@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w21
	b.ne	LBB0_12
; %bb.11:
	ldr	w1, [x19, #56]
	mov	x0, x23
	bl	_roundup
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_18
LBB0_12:
Lloh17:
	adrp	x25, _BRCMF_SDIO_FT_SUB@GOTPAGE
Lloh18:
	ldr	x25, [x25, _BRCMF_SDIO_FT_SUB@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w21
	b.ne	LBB0_15
; %bb.13:
	ldr	w8, [x20]
	cmp	w23, w8
	b.le	LBB0_15
; %bb.14:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_15:
	str	w23, [x20]
Lloh21:
	adrp	x8, _SDPCM_HWHDR_LEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SDPCM_HWHDR_LEN@GOTPAGEOFF]
Lloh23:
	ldrsw	x8, [x8]
	add	x22, x22, x8, lsl #3
	ldr	w0, [x22]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	w10, [x27]
	cmp	w10, w21
	b.ne	LBB0_20
; %bb.16:
	mov	x0, x22
	bl	_SDPCM_GLOMDESC
	cbz	x0, LBB0_19
; %bb.17:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_18:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_19:
	ldr	w10, [x27]
LBB0_20:
Lloh28:
	adrp	x8, _SDPCM_SEQ_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SDPCM_SEQ_MASK@GOTPAGEOFF]
Lloh30:
	adrp	x9, _SDPCM_CHANNEL_MASK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SDPCM_CHANNEL_MASK@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
Lloh33:
	ldr	x9, [x9]
	and	x9, x9, x24
Lloh34:
	adrp	x11, _SDPCM_CHANNEL_SHIFT@GOTPAGE
Lloh35:
	ldr	x11, [x11, _SDPCM_CHANNEL_SHIFT@GOTPAGEOFF]
Lloh36:
	ldr	x11, [x11]
	asr	x9, x9, x11
	str	x9, [x20, #24]
Lloh37:
	adrp	x27, _MAX_RX_DATASZ@GOTPAGE
Lloh38:
	ldr	x27, [x27, _MAX_RX_DATASZ@GOTPAGEOFF]
	ldr	w11, [x27]
	cmp	w23, w11
	b.le	LBB0_23
; %bb.21:
Lloh39:
	adrp	x11, _SDPCM_CONTROL_CHANNEL@GOTPAGE
Lloh40:
	ldr	x11, [x11, _SDPCM_CONTROL_CHANNEL@GOTPAGEOFF]
Lloh41:
	ldr	x11, [x11]
	cmp	x9, x11
	ccmp	w10, w21, #4, ne
	b.eq	LBB0_23
; %bb.22:
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_brcmf_err
	ldr	w8, [x19, #52]
	add	w8, w8, #1
	str	w8, [x19, #52]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_brcmf_sdio_rxfail
	str	wzr, [x20]
	b	LBB0_7
LBB0_23:
Lloh44:
	adrp	x28, _SDPCM_GLOM_CHANNEL@GOTPAGE
Lloh45:
	ldr	x28, [x28, _SDPCM_GLOM_CHANNEL@GOTPAGEOFF]
	cmp	w10, w21
	b.ne	LBB0_27
; %bb.24:
	ldr	x10, [x28]
	cmp	x9, x10
	b.eq	LBB0_27
; %bb.25:
Lloh46:
	adrp	x0, l_.str.6@PAGE
Lloh47:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_26:
	bl	_brcmf_err
	str	wzr, [x20]
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_27:
	ldr	w10, [x25]
	cmp	w10, w21
	b.ne	LBB0_29
; %bb.28:
Lloh50:
	adrp	x10, _SDPCM_DATA_CHANNEL@GOTPAGE
Lloh51:
	ldr	x10, [x10, _SDPCM_DATA_CHANNEL@GOTPAGEOFF]
Lloh52:
	ldr	x10, [x10]
Lloh53:
	adrp	x11, _SDPCM_EVENT_CHANNEL@GOTPAGE
Lloh54:
	ldr	x11, [x11, _SDPCM_EVENT_CHANNEL@GOTPAGEOFF]
Lloh55:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_32
LBB0_29:
	and	x23, x8, x24
	mov	x0, x22
	bl	_brcmf_sdio_getdatoffset
	str	w0, [x20, #4]
	ldr	w8, [x26]
	cmp	w0, w8
	b.lt	LBB0_31
; %bb.30:
	ldr	w8, [x20]
	cmp	w0, w8
	b.le	LBB0_33
LBB0_31:
	str	x23, [sp]
Lloh56:
	adrp	x0, l_.str.8@PAGE
Lloh57:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_brcmf_err
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_brcmf_sdio_rxfail
	str	wzr, [x20]
Lloh58:
	adrp	x8, _ENXIO@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_32:
Lloh60:
	adrp	x0, l_.str.7@PAGE
Lloh61:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_26
LBB0_33:
	ldr	x3, [x20, #8]
	cmp	x3, x23
	b.eq	LBB0_35
; %bb.34:
Lloh62:
	adrp	x8, _SDIO@GOTPAGE
Lloh63:
	ldr	x8, [x8, _SDIO@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
Lloh65:
	adrp	x1, l_.str.9@PAGE
Lloh66:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x23
	bl	_brcmf_dbg
	ldr	w8, [x19, #44]
	add	w8, w8, #1
	str	w8, [x19, #44]
	str	x23, [x20, #8]
LBB0_35:
	ldr	w8, [x25]
	cmp	w8, w21
	b.ne	LBB0_37
; %bb.36:
	mov	w0, #0
	b	LBB0_9
LBB0_37:
Lloh67:
	adrp	x8, _SDPCM_NEXTLEN_MASK@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SDPCM_NEXTLEN_MASK@GOTPAGEOFF]
Lloh69:
	ldr	x8, [x8]
Lloh70:
	adrp	x9, _SDPCM_NEXTLEN_SHIFT@GOTPAGE
Lloh71:
	ldr	x9, [x9, _SDPCM_NEXTLEN_SHIFT@GOTPAGEOFF]
	and	x8, x8, x24
Lloh72:
	ldr	x9, [x9]
	asr	x8, x8, x9
	str	w8, [x20, #16]
	ldr	w9, [x27]
	cmp	w9, w8, lsl #4
	b.ge	LBB0_41
; %bb.38:
	ldr	x8, [x20, #24]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_40
; %bb.39:
	str	x23, [sp]
Lloh73:
	adrp	x0, l_.str.10@PAGE
Lloh74:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_brcmf_err
LBB0_40:
	str	wzr, [x20, #16]
LBB0_41:
	ldr	w0, [x22, #32]
	bl	_le32_to_cpu
Lloh75:
	adrp	x8, _SDPCM_FCMASK_MASK@GOTPAGE
Lloh76:
	ldr	x8, [x8, _SDPCM_FCMASK_MASK@GOTPAGEOFF]
Lloh77:
	ldr	x8, [x8]
	and	x8, x8, x0
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.eq	LBB0_47
; %bb.42:
	bics	xzr, x8, x9
	b.eq	LBB0_44
; %bb.43:
	ldr	w10, [x19, #40]
	add	w10, w10, #1
	str	w10, [x19, #40]
LBB0_44:
	bics	xzr, x9, x8
	b.eq	LBB0_46
; %bb.45:
	ldr	w9, [x19, #36]
	add	w9, w9, #1
	str	w9, [x19, #36]
LBB0_46:
	ldr	w9, [x19, #32]
	add	w9, w9, #1
	str	w9, [x19, #32]
	str	x8, [x19, #8]
LBB0_47:
Lloh78:
	adrp	x8, _SDPCM_WINDOW_MASK@GOTPAGE
Lloh79:
	ldr	x8, [x8, _SDPCM_WINDOW_MASK@GOTPAGEOFF]
Lloh80:
	ldr	x8, [x8]
Lloh81:
	adrp	x9, _SDPCM_WINDOW_SHIFT@GOTPAGE
Lloh82:
	ldr	x9, [x9, _SDPCM_WINDOW_SHIFT@GOTPAGEOFF]
	and	x8, x8, x0
Lloh83:
	ldr	x9, [x9]
	asr	x8, x8, x9
	ldr	x9, [x19, #16]
	sub	x9, x8, x9
	cmp	x9, #65
	b.lt	LBB0_49
; %bb.48:
	str	x23, [sp]
Lloh84:
	adrp	x0, l_.str.11@PAGE
Lloh85:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_brcmf_err
	ldr	x8, [x19, #16]
	add	x8, x8, #2
LBB0_49:
	mov	w0, #0
	str	x8, [x19, #24]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_SDPCM_RX,4,2                   ; @SDPCM_RX
	.comm	_ENODATA,4,2                    ; @ENODATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW header checksum error\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_SDPCM_HDRLEN,4,2               ; @SDPCM_HDRLEN
l_.str.1:                               ; @.str.1
	.asciz	"HW header length error\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_BRCMF_SDIO_FT_SUPER,4,2        ; @BRCMF_SDIO_FT_SUPER
l_.str.2:                               ; @.str.2
	.asciz	"HW superframe header length error\n"

	.comm	_BRCMF_SDIO_FT_SUB,4,2          ; @BRCMF_SDIO_FT_SUB
l_.str.3:                               ; @.str.3
	.asciz	"HW subframe header length error\n"

	.comm	_SDPCM_HWHDR_LEN,4,2            ; @SDPCM_HWHDR_LEN
l_.str.4:                               ; @.str.4
	.asciz	"Glom descriptor found in superframe head\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SDPCM_SEQ_MASK,8,3             ; @SDPCM_SEQ_MASK
	.comm	_SDPCM_CHANNEL_MASK,8,3         ; @SDPCM_CHANNEL_MASK
	.comm	_SDPCM_CHANNEL_SHIFT,8,3        ; @SDPCM_CHANNEL_SHIFT
	.comm	_MAX_RX_DATASZ,4,2              ; @MAX_RX_DATASZ
	.comm	_SDPCM_CONTROL_CHANNEL,8,3      ; @SDPCM_CONTROL_CHANNEL
l_.str.5:                               ; @.str.5
	.asciz	"HW header length too long\n"

	.comm	_SDPCM_GLOM_CHANNEL,8,3         ; @SDPCM_GLOM_CHANNEL
l_.str.6:                               ; @.str.6
	.asciz	"Wrong channel for superframe\n"

	.comm	_SDPCM_DATA_CHANNEL,8,3         ; @SDPCM_DATA_CHANNEL
	.comm	_SDPCM_EVENT_CHANNEL,8,3        ; @SDPCM_EVENT_CHANNEL
l_.str.7:                               ; @.str.7
	.asciz	"Wrong channel for subframe\n"

l_.str.8:                               ; @.str.8
	.asciz	"seq %d: bad data offset\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SDIO,4,2                       ; @SDIO
l_.str.9:                               ; @.str.9
	.asciz	"seq %d, expected %d\n"

	.comm	_SDPCM_NEXTLEN_MASK,8,3         ; @SDPCM_NEXTLEN_MASK
	.comm	_SDPCM_NEXTLEN_SHIFT,8,3        ; @SDPCM_NEXTLEN_SHIFT
l_.str.10:                              ; @.str.10
	.asciz	"seq %d: next length error\n"

	.comm	_SDPCM_FCMASK_MASK,8,3          ; @SDPCM_FCMASK_MASK
	.comm	_SDPCM_WINDOW_MASK,8,3          ; @SDPCM_WINDOW_MASK
	.comm	_SDPCM_WINDOW_SHIFT,8,3         ; @SDPCM_WINDOW_SHIFT
l_.str.11:                              ; @.str.11
	.asciz	"seq %d: max tx seq number error\n"

	.no_dead_strip	_brcmf_sdio_hdparse
.subsections_via_symbols
