	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_msgbuf_process_event
_brcmf_msgbuf_process_event:            ## @brcmf_msgbuf_process_event
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movl	4(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movl	8(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	decq	%rax
	movq	%rax, 24(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_brcmf_msgbuf_rxbuf_event_post
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movl	%r12d, %edx
	callq	_brcmf_msgbuf_get_pktid
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r12
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_skb_pull
LBB0_5:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_skb_trim
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	callq	_brcmf_get_ifp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movl	4(%rax), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_eth_type_trans
	movl	%eax, (%r12)
	movl	(%rbx), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_brcmf_fweh_process_skb
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_bphy_err
LBB0_9:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmu_pkt_buf_free_skb         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received pkt for invalid ifidx %d\n"

	.no_dead_strip	_brcmf_msgbuf_process_event
.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_event
_brcmf_msgbuf_process_event:            ; @brcmf_msgbuf_process_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x0]
	ldr	w0, [x1, #4]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_2
; %bb.1:
	sub	x8, x8, #1
	str	x8, [x22, #24]
LBB0_2:
	mov	x0, x22
	bl	_brcmf_msgbuf_rxbuf_event_post
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x22, #16]
	mov	x2, x21
	bl	_brcmf_msgbuf_get_pktid
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_skb_pull
LBB0_5:
	mov	x0, x21
	mov	x1, x23
	bl	_skb_trim
	ldr	x0, [x22]
	ldr	w1, [x20]
	bl	_brcmf_get_ifp
	cbz	x0, LBB0_9
; %bb.6:
	mov	x22, x0
	ldr	w1, [x0, #4]
	cbz	w1, LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_eth_type_trans
	str	w0, [x21]
	ldr	w0, [x22]
	mov	x1, x21
	mov	w2, #0
	bl	_brcmf_fweh_process_skb
	b	LBB0_10
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_bphy_err
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_brcmu_pkt_buf_free_skb
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received pkt for invalid ifidx %d\n"

	.no_dead_strip	_brcmf_msgbuf_process_event
.subsections_via_symbols
