	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_msgbuf_process_rx
_brcmf_msgbuf_process_rx:               ## @brcmf_msgbuf_process_rx
	.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, %r14
	movq	%rdi, %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_10
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	callq	_brcmf_commonring_get_read_ptr
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -48(%rbp)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movslq	%r15d, %rax
	addq	%rax, %rbx
	decq	-48(%rbp)
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_brcmf_msgbuf_process_msgtype
	movq	%r14, %rdi
	callq	_brcmf_commonring_len_item
	movl	%eax, %r15d
	incq	%r13
	movq	_BRCMF_MSGBUF_UPDATE_RX_PTR_THRS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_brcmf_commonring_read_complete
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%r13, %r13
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_brcmf_commonring_read_complete
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_MSGBUF_UPDATE_RX_PTR_THRS,8,3 ## @BRCMF_MSGBUF_UPDATE_RX_PTR_THRS
	.no_dead_strip	_brcmf_msgbuf_process_rx
.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
_brcmf_msgbuf_process_rx:               ; @brcmf_msgbuf_process_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _BRCMF_MSGBUF_UPDATE_RX_PTR_THRS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BRCMF_MSGBUF_UPDATE_RX_PTR_THRS@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_10
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x1, sp, #8
	mov	x0, x19
	bl	_brcmf_commonring_get_read_ptr
	cbz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	mov	x22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x21, x21, w23, sxtw
	ldr	x8, [sp, #8]
	subs	x8, x8, #1
	str	x8, [sp, #8]
	b.eq	LBB0_8
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x8, [x20]
	add	x1, x21, x8
	mov	x0, x20
	bl	_brcmf_msgbuf_process_msgtype
	mov	x0, x19
	bl	_brcmf_commonring_len_item
	mov	x23, x0
	add	x22, x22, #1
	ldr	x8, [x24]
	cmp	x22, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	mov	x1, x22
	bl	_brcmf_commonring_read_complete
	mov	x22, #0
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x22, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_brcmf_commonring_read_complete
	b	LBB0_1
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_MSGBUF_UPDATE_RX_PTR_THRS,8,3 ; @BRCMF_MSGBUF_UPDATE_RX_PTR_THRS
	.no_dead_strip	_brcmf_msgbuf_process_rx
.subsections_via_symbols
