	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_flowring_dequeue         ## -- Begin function brcmf_flowring_dequeue
	.p2align	4, 0x90
_brcmf_flowring_dequeue:                ## @brcmf_flowring_dequeue
	.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), %rax
	movq	(%rax,%rsi,8), %rbx
	movq	(%rbx), %rax
	movq	_RING_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_skb_dequeue
	movq	%rax, %r14
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_skb_queue_len
	movq	_BRCMF_FLOWRING_LOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_brcmf_flowring_block
	movq	_MSGBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_brcmf_dbg
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_OPEN,8,3                  ## @RING_OPEN
	.comm	_BRCMF_FLOWRING_LOW,8,3         ## @BRCMF_FLOWRING_LOW
	.comm	_MSGBUF,4,2                     ## @MSGBUF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Flowcontrol: OPEN for ring %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_flowring_dequeue         ; -- Begin function brcmf_flowring_dequeue
	.p2align	2
_brcmf_flowring_dequeue:                ; @brcmf_flowring_dequeue
	.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
	ldr	x8, [x0]
	ldr	x23, [x8, x1, lsl #3]
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _RING_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RING_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	add	x22, x23, #8
	mov	x0, x22
	bl	_skb_dequeue
	mov	x20, x0
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x22
	bl	_skb_queue_len
Lloh3:
	adrp	x8, _BRCMF_FLOWRING_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMF_FLOWRING_LOW@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	bl	_brcmf_flowring_block
Lloh6:
	adrp	x8, _MSGBUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSGBUF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_brcmf_dbg
	b	LBB0_5
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_OPEN,8,3                  ; @RING_OPEN
	.comm	_BRCMF_FLOWRING_LOW,8,3         ; @BRCMF_FLOWRING_LOW
	.comm	_MSGBUF,4,2                     ; @MSGBUF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Flowcontrol: OPEN for ring %d\n"

.subsections_via_symbols
