	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_proto_msgbuf_attach      ## -- Begin function brcmf_proto_msgbuf_attach
	.p2align	4, 0x90
_brcmf_proto_msgbuf_attach:             ## @brcmf_proto_msgbuf_attach
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rax), %r12
	movq	(%r12), %rdx
	movq	_BRCMF_FLOWRING_HASHSIZE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_bphy_err
	movq	(%rbx), %rax
	decq	%rax
	movq	%rax, (%r12)
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$168, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rdi
	callq	_create_singlethread_workqueue
	movq	%rax, 160(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	leaq	152(%r15), %rdi
	movq	_brcmf_msgbuf_txflow_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	(%r12), %rdi
	callq	_BITS_TO_LONGS
	movl	%eax, %ebx
	shll	$3, %ebx
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	movq	%rax, 56(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	movq	%r14, 144(%r15)
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_BRCMF_TX_IOCTL_MAX_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	32(%r15), %rdx
	movl	(%r13), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:
	movl	32(%r15), %eax
	movl	%eax, 4(%r15)
	movq	_brcmf_msgbuf_hdrpull@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, 40(%rcx)
	movq	_brcmf_msgbuf_query_dcmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rcx)
	movq	_brcmf_msgbuf_set_dcmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rcx)
	movq	_brcmf_msgbuf_tx_queue_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rcx)
	movq	_brcmf_msgbuf_configure_addr_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movq	_brcmf_msgbuf_delete_peer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movq	_brcmf_msgbuf_add_tdls_peer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	_brcmf_msgbuf_rxreorder@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_brcmf_msgbuf_debugfs_create@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	%r15, (%rcx)
	leaq	136(%r15), %rdi
	callq	_init_waitqueue_head
	movups	24(%r12), %xmm0
	movups	%xmm0, 120(%r15)
	movq	(%r12), %rdi
	movq	%rdi, 8(%r15)
	movl	(%r13), %edx
	movl	$168, %esi
	callq	_kcalloc
	movq	%rax, 48(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.13:
	movl	16(%r12), %eax
	movl	%eax, 112(%r15)
	movq	8(%r12), %rax
	movq	%rax, 16(%r15)
	movq	_BRCMF_MSGBUF_MAX_IOCTLRESPBUF_POST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r15)
	movq	_BRCMF_MSGBUF_MAX_EVENTBUF_POST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r15)
	movq	_NR_TX_PKTIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_brcmf_msgbuf_init_pktids
	movq	%rax, 104(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.14:
	movq	_NR_RX_PKTIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_brcmf_msgbuf_init_pktids
	movq	%rax, 96(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.15:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	_brcmf_flowring_attach
	movl	%eax, 92(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.16:
	movq	_MSGBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rdx
	movl	88(%r15), %ecx
	movl	84(%r15), %r8d
	leaq	L_.str.3(%rip), %rsi
	callq	_brcmf_dbg
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.17:
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.18:
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.19:
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.20:
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.21:
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.22:
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.23:
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.24:
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.25:
	movl	$10, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_data_fill
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.26:
	movl	$10, %edi
	callq	_msleep
LBB0_27:
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_event_post
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_rxbuf_ioctlresp_post
	leaq	80(%r15), %rdi
	movq	_brcmf_msgbuf_flowring_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	76(%r15), %rdi
	callq	_spin_lock_init
	addq	$72, %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_bphy_err
LBB0_5:
	movq	64(%r15), %rdi
	callq	_kfree
	movq	56(%r15), %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_brcmf_msgbuf_release_pktids
	movq	48(%r15), %rdi
	callq	_kfree
	movq	40(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_BRCMF_TX_IOCTL_MAX_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r15), %rcx
	callq	_dma_free_coherent
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_FLOWRING_HASHSIZE,8,3    ## @BRCMF_FLOWRING_HASHSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver not configured for this many flowrings %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"msgbuf_txflow"

L_.str.2:                               ## @.str.2
	.asciz	"workqueue creation failed\n"

	.comm	_brcmf_msgbuf_txflow_worker,4,2 ## @brcmf_msgbuf_txflow_worker
	.comm	_BRCMF_TX_IOCTL_MAX_MSG_SIZE,4,2 ## @BRCMF_TX_IOCTL_MAX_MSG_SIZE
	.comm	_brcmf_msgbuf_hdrpull,4,2       ## @brcmf_msgbuf_hdrpull
	.comm	_brcmf_msgbuf_query_dcmd,4,2    ## @brcmf_msgbuf_query_dcmd
	.comm	_brcmf_msgbuf_set_dcmd,4,2      ## @brcmf_msgbuf_set_dcmd
	.comm	_brcmf_msgbuf_tx_queue_data,4,2 ## @brcmf_msgbuf_tx_queue_data
	.comm	_brcmf_msgbuf_configure_addr_mode,4,2 ## @brcmf_msgbuf_configure_addr_mode
	.comm	_brcmf_msgbuf_delete_peer,4,2   ## @brcmf_msgbuf_delete_peer
	.comm	_brcmf_msgbuf_add_tdls_peer,4,2 ## @brcmf_msgbuf_add_tdls_peer
	.comm	_brcmf_msgbuf_rxreorder,4,2     ## @brcmf_msgbuf_rxreorder
	.comm	_brcmf_msgbuf_debugfs_create,4,2 ## @brcmf_msgbuf_debugfs_create
	.comm	_BRCMF_MSGBUF_MAX_IOCTLRESPBUF_POST,4,2 ## @BRCMF_MSGBUF_MAX_IOCTLRESPBUF_POST
	.comm	_BRCMF_MSGBUF_MAX_EVENTBUF_POST,4,2 ## @BRCMF_MSGBUF_MAX_EVENTBUF_POST
	.comm	_NR_TX_PKTIDS,4,2               ## @NR_TX_PKTIDS
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_NR_RX_PKTIDS,4,2               ## @NR_RX_PKTIDS
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_MSGBUF,4,2                     ## @MSGBUF
L_.str.3:                               ## @.str.3
	.asciz	"Feeding buffers, rx data %d, rx event %d, rx ioctl resp %d\n"

	.comm	_brcmf_msgbuf_flowring_worker,4,2 ## @brcmf_msgbuf_flowring_worker
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_proto_msgbuf_attach      ; -- Begin function brcmf_proto_msgbuf_attach
	.p2align	2
_brcmf_proto_msgbuf_attach:             ; @brcmf_proto_msgbuf_attach
	.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	x20, x0
	ldr	x8, [x0]
	ldr	x22, [x8, #8]
	ldr	x8, [x22]
Lloh0:
	adrp	x19, _BRCMF_FLOWRING_HASHSIZE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _BRCMF_FLOWRING_HASHSIZE@GOTPAGEOFF]
	ldr	x9, [x19]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_bphy_err
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x22]
LBB0_2:
Lloh4:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #168
	bl	_kzalloc
	cbz	x0, LBB0_27
; %bb.3:
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_create_singlethread_workqueue
	str	x0, [x19, #160]
	cbz	x0, LBB0_23
; %bb.4:
	add	x0, x19, #152
Lloh8:
	adrp	x8, _brcmf_msgbuf_txflow_worker@GOTPAGE
Lloh9:
	ldr	x8, [x8, _brcmf_msgbuf_txflow_worker@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	x0, [x22]
	bl	_BITS_TO_LONGS
	lsl	w21, w0, #3
	ldr	w1, [x23]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_24
; %bb.5:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_24
; %bb.6:
	str	x20, [x19, #144]
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _BRCMF_TX_IOCTL_MAX_MSG_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BRCMF_TX_IOCTL_MAX_MSG_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, x19, #32
	ldr	w3, [x23]
	bl	_dma_alloc_coherent
	str	x0, [x19, #40]
	cbz	x0, LBB0_24
; %bb.7:
	ldr	x8, [x19, #32]
	str	w8, [x19, #4]
Lloh14:
	adrp	x8, _brcmf_msgbuf_hdrpull@GOTPAGE
Lloh15:
	ldr	x8, [x8, _brcmf_msgbuf_hdrpull@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	str	w8, [x9, #40]
Lloh17:
	adrp	x8, _brcmf_msgbuf_query_dcmd@GOTPAGE
Lloh18:
	ldr	x8, [x8, _brcmf_msgbuf_query_dcmd@GOTPAGEOFF]
Lloh19:
	adrp	x10, _brcmf_msgbuf_set_dcmd@GOTPAGE
Lloh20:
	ldr	x10, [x10, _brcmf_msgbuf_set_dcmd@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #32]
Lloh23:
	adrp	x8, _brcmf_msgbuf_tx_queue_data@GOTPAGE
Lloh24:
	ldr	x8, [x8, _brcmf_msgbuf_tx_queue_data@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x10, _brcmf_msgbuf_configure_addr_mode@GOTPAGE
Lloh27:
	ldr	x10, [x10, _brcmf_msgbuf_configure_addr_mode@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #24]
Lloh29:
	adrp	x8, _brcmf_msgbuf_delete_peer@GOTPAGE
Lloh30:
	ldr	x8, [x8, _brcmf_msgbuf_delete_peer@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x10, _brcmf_msgbuf_add_tdls_peer@GOTPAGE
Lloh33:
	ldr	x10, [x10, _brcmf_msgbuf_add_tdls_peer@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #16]
Lloh35:
	adrp	x8, _brcmf_msgbuf_rxreorder@GOTPAGE
Lloh36:
	ldr	x8, [x8, _brcmf_msgbuf_rxreorder@GOTPAGEOFF]
Lloh37:
	adrp	x10, _brcmf_msgbuf_debugfs_create@GOTPAGE
Lloh38:
	ldr	x10, [x10, _brcmf_msgbuf_debugfs_create@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #8]
	add	x0, x19, #136
	str	x19, [x9]
	bl	_init_waitqueue_head
	ldp	x9, x8, [x22, #24]
	stp	x9, x8, [x19, #120]
	ldr	x0, [x22]
	str	x0, [x19, #8]
	ldr	w2, [x23]
	mov	w1, #168
	bl	_kcalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_24
; %bb.8:
	ldr	w8, [x22, #16]
	str	w8, [x19, #112]
	ldr	x8, [x22, #8]
	str	x8, [x19, #16]
Lloh41:
	adrp	x8, _BRCMF_MSGBUF_MAX_IOCTLRESPBUF_POST@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BRCMF_MSGBUF_MAX_IOCTLRESPBUF_POST@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _BRCMF_MSGBUF_MAX_EVENTBUF_POST@GOTPAGE
Lloh45:
	ldr	x9, [x9, _BRCMF_MSGBUF_MAX_EVENTBUF_POST@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #84]
Lloh47:
	adrp	x8, _NR_TX_PKTIDS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NR_TX_PKTIDS@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	bl	_brcmf_msgbuf_init_pktids
	str	x0, [x19, #104]
	cbz	x0, LBB0_24
; %bb.9:
Lloh53:
	adrp	x8, _NR_RX_PKTIDS@GOTPAGE
Lloh54:
	ldr	x8, [x8, _NR_RX_PKTIDS@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	bl	_brcmf_msgbuf_init_pktids
	str	x0, [x19, #96]
	cbz	x0, LBB0_24
; %bb.10:
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	x1, [x22]
	bl	_brcmf_flowring_attach
	str	w0, [x19, #92]
	cbz	w0, LBB0_24
; %bb.11:
Lloh59:
	adrp	x8, _MSGBUF@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MSGBUF@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	ldr	x2, [x19, #16]
	ldp	w4, w3, [x19, #84]
Lloh62:
	adrp	x1, l_.str.3@PAGE
Lloh63:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.12:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.13:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.14:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.15:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.16:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.17:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.18:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.19:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.20:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_data_fill
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.21:
	mov	w0, #10
	bl	_msleep
LBB0_22:
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_event_post
	mov	x0, x19
	bl	_brcmf_msgbuf_rxbuf_ioctlresp_post
	add	x0, x19, #80
Lloh64:
	adrp	x8, _brcmf_msgbuf_flowring_worker@GOTPAGE
Lloh65:
	ldr	x8, [x8, _brcmf_msgbuf_flowring_worker@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #76
	bl	_spin_lock_init
	add	x0, x19, #72
	bl	_INIT_LIST_HEAD
	mov	w0, #0
	b	LBB0_28
LBB0_23:
Lloh67:
	adrp	x1, l_.str.2@PAGE
Lloh68:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_bphy_err
LBB0_24:
	ldr	x0, [x19, #64]
	bl	_kfree
	ldr	x0, [x19, #56]
	bl	_kfree
	mov	x0, x19
	bl	_brcmf_msgbuf_release_pktids
	ldr	x0, [x19, #48]
	bl	_kfree
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_26
; %bb.25:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh69:
	adrp	x8, _BRCMF_TX_IOCTL_MAX_MSG_SIZE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _BRCMF_TX_IOCTL_MAX_MSG_SIZE@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	ldr	x3, [x19, #32]
	bl	_dma_free_coherent
LBB0_26:
	mov	x0, x19
	bl	_kfree
LBB0_27:
Lloh72:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_FLOWRING_HASHSIZE,8,3    ; @BRCMF_FLOWRING_HASHSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver not configured for this many flowrings %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"msgbuf_txflow"

l_.str.2:                               ; @.str.2
	.asciz	"workqueue creation failed\n"

	.comm	_brcmf_msgbuf_txflow_worker,4,2 ; @brcmf_msgbuf_txflow_worker
	.comm	_BRCMF_TX_IOCTL_MAX_MSG_SIZE,4,2 ; @BRCMF_TX_IOCTL_MAX_MSG_SIZE
	.comm	_brcmf_msgbuf_hdrpull,4,2       ; @brcmf_msgbuf_hdrpull
	.comm	_brcmf_msgbuf_query_dcmd,4,2    ; @brcmf_msgbuf_query_dcmd
	.comm	_brcmf_msgbuf_set_dcmd,4,2      ; @brcmf_msgbuf_set_dcmd
	.comm	_brcmf_msgbuf_tx_queue_data,4,2 ; @brcmf_msgbuf_tx_queue_data
	.comm	_brcmf_msgbuf_configure_addr_mode,4,2 ; @brcmf_msgbuf_configure_addr_mode
	.comm	_brcmf_msgbuf_delete_peer,4,2   ; @brcmf_msgbuf_delete_peer
	.comm	_brcmf_msgbuf_add_tdls_peer,4,2 ; @brcmf_msgbuf_add_tdls_peer
	.comm	_brcmf_msgbuf_rxreorder,4,2     ; @brcmf_msgbuf_rxreorder
	.comm	_brcmf_msgbuf_debugfs_create,4,2 ; @brcmf_msgbuf_debugfs_create
	.comm	_BRCMF_MSGBUF_MAX_IOCTLRESPBUF_POST,4,2 ; @BRCMF_MSGBUF_MAX_IOCTLRESPBUF_POST
	.comm	_BRCMF_MSGBUF_MAX_EVENTBUF_POST,4,2 ; @BRCMF_MSGBUF_MAX_EVENTBUF_POST
	.comm	_NR_TX_PKTIDS,4,2               ; @NR_TX_PKTIDS
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_NR_RX_PKTIDS,4,2               ; @NR_RX_PKTIDS
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_MSGBUF,4,2                     ; @MSGBUF
l_.str.3:                               ; @.str.3
	.asciz	"Feeding buffers, rx data %d, rx event %d, rx ioctl resp %d\n"

	.comm	_brcmf_msgbuf_flowring_worker,4,2 ; @brcmf_msgbuf_flowring_worker
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
