	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmu_pktq_mdeq                ## -- Begin function brcmu_pktq_mdeq
	.p2align	4, 0x90
_brcmu_pktq_mdeq:                       ## @brcmu_pktq_mdeq
	.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
	cmpq	$0, (%rdi)
	je	LBB0_13
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	8(%rdi), %r14d
	testl	%r14d, %r14d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	shlq	$2, %rdi
	addq	16(%r13), %rdi
	callq	_skb_queue_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %eax
	leal	-1(%rax), %r14d
	movl	%r14d, 8(%r13)
	cmpl	$1, %eax
	jg	LBB0_2
LBB0_4:
	movslq	%r14d, %r12
	leaq	(,%r12,4), %rbx
	incq	%r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$-4, %rbx
	decl	%r14d
	decq	%r12
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r14d, %r15d
	jae	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r13), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_empty
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:
	addq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	decq	(%r13)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.10:
	movl	%r14d, (%rcx)
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmu_pktq_mdeq                ; -- Begin function brcmu_pktq_mdeq
	.p2align	2
_brcmu_pktq_mdeq:                       ; @brcmu_pktq_mdeq
	.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]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w22, [x0, #8]
	cmp	w22, #1
	b.lt	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x0, x8, w22, uxtw #2
	bl	_skb_queue_empty
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20, #8]
	subs	w22, w8, #1
	str	w22, [x20, #8]
	b.gt	LBB0_2
LBB0_4:
	sxtw	x8, w22
	sbfiz	x23, x22, #2, #32
	add	x24, x8, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x23, x23, #4
	sub	w22, w22, #1
	subs	x24, x24, #1
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w21, w22
	tbz	w8, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #16]
	add	x0, x8, x23
	bl	_skb_queue_empty
	cbnz	x0, LBB0_5
; %bb.8:
	ldr	x8, [x20, #16]
	add	x0, x8, x23
	bl	_skb_dequeue
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	cbz	x19, LBB0_12
; %bb.10:
	str	w22, [x19]
	b	LBB0_12
LBB0_11:
	mov	x0, #0
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
