	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_proto_bcdc_hdrpull
_brcmf_proto_bcdc_hdrpull:              ## @brcmf_proto_bcdc_hdrpull
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_BCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	(%r15), %rdx
	movq	_BCDC_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_7
## %bb.1:
	movl	%r13d, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rdi
	callq	_trace_brcmf_bcdchdr
	movq	16(%r15), %r13
	movq	%r13, %rdi
	callq	_BCDC_GET_IF_IDX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_brcmf_get_ifp
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movl	(%r13), %eax
	movq	_BCDC_FLAG_VER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_BCDC_FLAG_VER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_BCDC_PROTO_VER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_10
## %bb.3:
	movq	_BCDC_FLAG_SUM_GOOD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_BCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_brcmf_ifname
	movl	(%r13), %ecx
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_5:
	movq	_BCDC_PRIORITY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r13), %eax
	movl	%eax, 8(%r15)
	movq	_BCDC_HEADER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skb_pull
	movl	8(%r13), %esi
	shll	$2, %esi
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_brcmf_fws_hdrpull
	jmp	LBB0_12
LBB0_7:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	jmp	LBB0_9
LBB0_8:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_9:
	movq	_EBADE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movq	%r12, %rdi
	callq	_brcmf_ifname
	movl	(%r13), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_bphy_err
	movq	_EBADE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movq	%r15, %rdi
	callq	_skb_pull
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%r15)
	je	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%r12, (%rax)
	jmp	LBB0_18
LBB0_15:
	movq	_ENODATA@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCDC,4,2                       ## @BCDC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_BCDC_HEADER_LEN,8,3            ## @BCDC_HEADER_LEN
	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"rx data too short (%d <= %d)\n"

	.comm	_EBADE,4,2                      ## @EBADE
L_.str.2:                               ## @.str.2
	.asciz	"no matching ifp found\n"

	.comm	_BCDC_FLAG_VER_MASK,4,2         ## @BCDC_FLAG_VER_MASK
	.comm	_BCDC_FLAG_VER_SHIFT,4,2        ## @BCDC_FLAG_VER_SHIFT
	.comm	_BCDC_PROTO_VER,4,2             ## @BCDC_PROTO_VER
L_.str.3:                               ## @.str.3
	.asciz	"%s: non-BCDC packet received, flags 0x%x\n"

	.comm	_BCDC_FLAG_SUM_GOOD,4,2         ## @BCDC_FLAG_SUM_GOOD
L_.str.4:                               ## @.str.4
	.asciz	"%s: BDC rcv, good checksum, flags 0x%x\n"

	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.comm	_BCDC_PRIORITY_MASK,4,2         ## @BCDC_PRIORITY_MASK
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_brcmf_proto_bcdc_hdrpull
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_proto_bcdc_hdrpull
_brcmf_proto_bcdc_hdrpull:              ; @brcmf_proto_bcdc_hdrpull
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x26, _BCDC@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BCDC@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	x8, [x20]
Lloh4:
	adrp	x25, _BCDC_HEADER_LEN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _BCDC_HEADER_LEN@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.le	LBB0_9
; %bb.1:
	ldr	x0, [x20, #16]
	bl	_trace_brcmf_bcdchdr
	ldr	x23, [x20, #16]
	mov	x0, x23
	bl	_BCDC_GET_IF_IDX
	mov	x1, x0
	mov	x0, x24
	bl	_brcmf_get_ifp
	cbz	x0, LBB0_10
; %bb.2:
	mov	x22, x0
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _BCDC_FLAG_VER_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BCDC_FLAG_VER_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh9:
	adrp	x10, _BCDC_FLAG_VER_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BCDC_FLAG_VER_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh12:
	adrp	x10, _BCDC_PROTO_VER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BCDC_PROTO_VER@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_15
; %bb.3:
Lloh15:
	adrp	x9, _BCDC_FLAG_SUM_GOOD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BCDC_FLAG_SUM_GOOD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w24, [x26]
	mov	x0, x22
	bl	_brcmf_ifname
	ldr	w8, [x23]
	stp	x0, x8, [sp]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_brcmf_dbg
Lloh20:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20, #12]
LBB0_5:
	ldr	w8, [x23, #4]
Lloh23:
	adrp	x9, _BCDC_PRIORITY_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BCDC_PRIORITY_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x20, #8]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_skb_pull
	ldr	w8, [x23, #8]
	lsl	w1, w8, #2
	cbz	w21, LBB0_16
; %bb.6:
	mov	x0, x22
	mov	x2, x20
	bl	_brcmf_fws_hdrpull
	ldr	x8, [x20]
	cbz	x8, LBB0_17
LBB0_7:
	mov	w0, #0
	cbz	x19, LBB0_14
; %bb.8:
	str	x22, [x19]
	b	LBB0_14
LBB0_9:
Lloh26:
	adrp	x10, _INFO@GOTPAGE
Lloh27:
	ldr	x10, [x10, _INFO@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x10]
	stp	x8, x9, [sp]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh31:
	adrp	x8, _INFO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_brcmf_dbg
LBB0_12:
Lloh36:
	adrp	x8, _EBADE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EBADE@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	mov	x0, x22
	bl	_brcmf_ifname
	mov	x2, x0
	ldr	w3, [x23]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_bphy_err
	b	LBB0_12
LBB0_16:
	mov	x0, x20
	bl	_skb_pull
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
LBB0_17:
Lloh40:
	adrp	x8, _ENODATA@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_BCDC,4,2                       ; @BCDC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_BCDC_HEADER_LEN,8,3            ; @BCDC_HEADER_LEN
	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"rx data too short (%d <= %d)\n"

	.comm	_EBADE,4,2                      ; @EBADE
l_.str.2:                               ; @.str.2
	.asciz	"no matching ifp found\n"

	.comm	_BCDC_FLAG_VER_MASK,4,2         ; @BCDC_FLAG_VER_MASK
	.comm	_BCDC_FLAG_VER_SHIFT,4,2        ; @BCDC_FLAG_VER_SHIFT
	.comm	_BCDC_PROTO_VER,4,2             ; @BCDC_PROTO_VER
l_.str.3:                               ; @.str.3
	.asciz	"%s: non-BCDC packet received, flags 0x%x\n"

	.comm	_BCDC_FLAG_SUM_GOOD,4,2         ; @BCDC_FLAG_SUM_GOOD
l_.str.4:                               ; @.str.4
	.asciz	"%s: BDC rcv, good checksum, flags 0x%x\n"

	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.comm	_BCDC_PRIORITY_MASK,4,2         ; @BCDC_PRIORITY_MASK
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_brcmf_proto_bcdc_hdrpull
.subsections_via_symbols
