	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00mmio_alloc_queue_dma
_rt2x00mmio_alloc_queue_dma:            ## @rt2x00mmio_alloc_queue_dma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	movl	4(%rsi), %esi
	imull	(%rbx), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rdx
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %r8d
	testq	%r8, %r8
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %r14
	movl	4(%rbx), %r9d
	xorl	%ecx, %ecx
	cmpl	$1, %r8d
	jne	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_10
LBB0_2:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_6:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	leal	(%r9,%r9), %r10d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdx
	movl	%ecx, %esi
	leaq	(%rax,%rsi), %rdi
	movq	%rdi, 8(%rdx)
	addq	-24(%rbp), %rsi
	movq	%rsi, (%rdx)
	movq	8(%r14,%rbx,8), %rdx
	leal	(%r9,%rcx), %esi
	leaq	(%rax,%rsi), %rdi
	movq	%rdi, 8(%rdx)
	addq	-24(%rbp), %rsi
	movq	%rsi, (%rdx)
	addq	$2, %rbx
	addl	%r10d, %ecx
	cmpq	%rbx, %r11
	jne	LBB0_7
LBB0_8:
	xorl	%ecx, %ecx
	testb	$1, %r8b
	je	LBB0_10
## %bb.9:
	movq	(%r14,%rbx,8), %rdx
	imull	%ebx, %r9d
	addq	%r9, %rax
	movq	%rax, 8(%rdx)
	addq	-24(%rbp), %r9
	movq	%r9, (%rdx)
LBB0_10:
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_rt2x00mmio_alloc_queue_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00mmio_alloc_queue_dma
_rt2x00mmio_alloc_queue_dma:            ; @rt2x00mmio_alloc_queue_dma
	.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, x1
	ldr	w0, [x0]
	ldp	w8, w9, [x1]
	mul	w1, w9, w8
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #8
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w9, #0
	ldr	x10, [x19, #8]
	ldr	w11, [x19, #4]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #8
	mov	w13, w9
	add	x14, x0, x13
	ldr	x15, [sp, #8]
	add	x13, x15, x13
	stp	x13, x14, [x12]
	add	w9, w9, w11
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_rt2x00mmio_alloc_queue_dma
.subsections_via_symbols
