	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800usb_queue_init
_rt2800usb_queue_init:                  ## @rt2800usb_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	$16, 4(%rbx)
	movq	_AGGREGATION_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	cmpl	$129, %eax
	je	LBB0_7
## %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	_RXINFO_DESC_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movzwl	-12(%rbp), %eax
	jmp	LBB0_6
LBB0_7:
	movl	$8, 4(%rbx)
	movq	_MGMT_FRAME_SIZE@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_TXINFO_DESC_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movzwl	-10(%rbp), %eax
LBB0_6:
	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	_RXINFO_DESC_SIZE,8,3           ## @RXINFO_DESC_SIZE
	.comm	_TXINFO_DESC_SIZE,8,3           ## @TXINFO_DESC_SIZE
	.comm	_MGMT_FRAME_SIZE,8,3            ## @MGMT_FRAME_SIZE
	.no_dead_strip	_rt2800usb_queue_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800usb_queue_init
_rt2800usb_queue_init:                  ; @rt2800usb_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, #16
	str	w8, [x19, #4]
Lloh0:
	adrp	x8, _AGGREGATION_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AGGREGATION_SIZE@GOTPAGEOFF]
	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]
Lloh2:
	adrp	x8, _AGGREGATION_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AGGREGATION_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _RXINFO_DESC_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RXINFO_DESC_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	ldrh	w8, [sp, #12]
	b	LBB0_7
LBB0_5:
	mov	w8, #8
	str	w8, [x19, #4]
Lloh8:
	adrp	x8, _MGMT_FRAME_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MGMT_FRAME_SIZE@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _TXINFO_DESC_SIZE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TXINFO_DESC_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AGGREGATION_SIZE,8,3           ; @AGGREGATION_SIZE
	.comm	_RXINFO_DESC_SIZE,8,3           ; @RXINFO_DESC_SIZE
	.comm	_TXINFO_DESC_SIZE,8,3           ; @TXINFO_DESC_SIZE
	.comm	_MGMT_FRAME_SIZE,8,3            ; @MGMT_FRAME_SIZE
	.no_dead_strip	_rt2800usb_queue_init
.subsections_via_symbols
