	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_queue_init          ## -- Begin function rt2800mmio_queue_init
	.p2align	4, 0x90
_rt2800mmio_queue_init:                 ## @rt2800mmio_queue_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	leaq	-10(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	callq	_rt2800_get_txwi_rxwi_size
	movl	(%rbx), %eax
	leal	-131(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.4:
	movl	$64, 4(%rbx)
	movq	_AGGREGATION_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	jmp	LBB0_6
LBB0_1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.3:
	movl	$128, 4(%rbx)
	movq	_AGGREGATION_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_RXD_DESC_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movzwl	-12(%rbp), %eax
	jmp	LBB0_7
LBB0_5:
	movl	$8, 4(%rbx)
	movq	$0, 24(%rbx)
LBB0_6:
	movq	_TXD_DESC_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movzwl	-10(%rbp), %eax
LBB0_7:
	movw	%ax, 8(%rbx)
	movl	$4, 12(%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_AGGREGATION_SIZE,8,3           ## @AGGREGATION_SIZE
	.comm	_RXD_DESC_SIZE,8,3              ## @RXD_DESC_SIZE
	.comm	_TXD_DESC_SIZE,8,3              ## @TXD_DESC_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_queue_init          ; -- Begin function rt2800mmio_queue_init
	.p2align	2
_rt2800mmio_queue_init:                 ; @rt2800mmio_queue_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #32]
	add	x1, sp, #14
	add	x2, sp, #12
	bl	_rt2800_get_txwi_rxwi_size
	ldr	w8, [x19]
	sub	w9, w8, #131
	cmp	w9, #4
	b.hs	LBB0_2
; %bb.1:
	mov	w8, #64
	str	w8, [x19, #4]
Lloh0:
	adrp	x8, _AGGREGATION_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AGGREGATION_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _TXD_DESC_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TXD_DESC_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	b	LBB0_6
LBB0_2:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.4:
	str	w8, [x19, #4]
Lloh6:
	adrp	x8, _AGGREGATION_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AGGREGATION_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _RXD_DESC_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RXD_DESC_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	ldrh	w8, [sp, #12]
	b	LBB0_7
LBB0_5:
	mov	w8, #8
	str	w8, [x19, #4]
Lloh12:
	adrp	x8, _TXD_DESC_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TXD_DESC_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stp	x8, xzr, [x19, #16]
LBB0_6:
	ldrh	w8, [sp, #14]
LBB0_7:
	strh	w8, [x19, #8]
	mov	w8, #4
	str	w8, [x19, #12]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	bl	_BUG
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AGGREGATION_SIZE,8,3           ; @AGGREGATION_SIZE
	.comm	_RXD_DESC_SIZE,8,3              ; @RXD_DESC_SIZE
	.comm	_TXD_DESC_SIZE,8,3              ; @TXD_DESC_SIZE
.subsections_via_symbols
