	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_msgbuf_process_rx_complete
_brcmf_msgbuf_process_rx_complete:      ## @brcmf_msgbuf_process_rx_complete
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %esi
	callq	_brcmf_msgbuf_update_rxbufpost_count
	movl	16(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movl	8(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movl	%r15d, %edx
	callq	_brcmf_msgbuf_get_pktid
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r15
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %r14d
	testl	%r14d, %r14d
	je	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_skb_pull
LBB0_4:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_skb_trim
	movq	_BRCMF_MSGBUF_PKT_FLAGS_FRAME_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_BRCMF_MSGBUF_PKT_FLAGS_FRAME_802_11@GOTPCREL(%rip), %rax
	movq	8(%rbx), %rdi
	cmpl	(%rax), %r13d
	jne	LBB0_9
## %bb.5:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.8:
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_netif_mon_rx             ## TAILCALL
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r12), %esi
	callq	_brcmf_get_ifp
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %rbx
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	callq	_eth_type_trans
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_netif_rx                 ## TAILCALL
LBB0_11:
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_bphy_err
LBB0_7:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmu_pkt_buf_free_skb         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_MSGBUF_PKT_FLAGS_FRAME_MASK,4,2 ## @BRCMF_MSGBUF_PKT_FLAGS_FRAME_MASK
	.comm	_BRCMF_MSGBUF_PKT_FLAGS_FRAME_802_11,4,2 ## @BRCMF_MSGBUF_PKT_FLAGS_FRAME_802_11
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received unexpected monitor pkt\n"

L_.str.1:                               ## @.str.1
	.asciz	"Received pkt for invalid ifidx %d\n"

	.no_dead_strip	_brcmf_msgbuf_process_rx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_msgbuf_process_rx_complete
_brcmf_msgbuf_process_rx_complete:      ; @brcmf_msgbuf_process_rx_complete
	.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	x20, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	mov	w1, #1
	bl	_brcmf_msgbuf_update_rxbufpost_count
	ldr	w0, [x20, #16]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x20, #4]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_le16_to_cpu
	mov	x25, x0
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	ldr	w1, [x22, #16]
	mov	x2, x21
	bl	_brcmf_msgbuf_get_pktid
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	cbnz	w24, LBB0_3
; %bb.2:
	ldr	w24, [x22]
	cbz	w24, LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x24
	bl	_skb_pull
LBB0_4:
	mov	x0, x21
	mov	x1, x23
	bl	_skb_trim
Lloh0:
	adrp	x8, _BRCMF_MSGBUF_PKT_FLAGS_FRAME_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMF_MSGBUF_PKT_FLAGS_FRAME_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w25
Lloh3:
	adrp	x9, _BRCMF_MSGBUF_PKT_FLAGS_FRAME_802_11@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRCMF_MSGBUF_PKT_FLAGS_FRAME_802_11@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x0, [x22, #8]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [x0]
	cbz	x0, LBB0_12
; %bb.6:
	mov	x1, x21
	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
	b	_brcmf_netif_mon_rx
LBB0_7:
	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_8:
	ldr	w1, [x20]
	bl	_brcmf_get_ifp
	cbz	x0, LBB0_11
; %bb.9:
	mov	x22, x0
	ldr	w1, [x0]
	cbz	w1, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_eth_type_trans
	str	w0, [x21]
	mov	x0, x22
	mov	x1, x21
	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
	b	_brcmf_netif_rx
LBB0_11:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_bphy_err
	mov	x0, x21
	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
	b	_brcmu_pkt_buf_free_skb
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_MSGBUF_PKT_FLAGS_FRAME_MASK,4,2 ; @BRCMF_MSGBUF_PKT_FLAGS_FRAME_MASK
	.comm	_BRCMF_MSGBUF_PKT_FLAGS_FRAME_802_11,4,2 ; @BRCMF_MSGBUF_PKT_FLAGS_FRAME_802_11
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received unexpected monitor pkt\n"

l_.str.1:                               ; @.str.1
	.asciz	"Received pkt for invalid ifidx %d\n"

	.no_dead_strip	_brcmf_msgbuf_process_rx_complete
.subsections_via_symbols
