	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rocker_dma_ring_create
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
LCPI0_2:
	.quad	16                              ## 0x10
	.quad	16                              ## 0x10
LCPI0_3:
	.quad	24                              ## 0x18
	.quad	24                              ## 0x18
LCPI0_4:
	.quad	32                              ## 0x20
	.quad	32                              ## 0x20
LCPI0_5:
	.quad	40                              ## 0x28
	.quad	40                              ## 0x28
LCPI0_6:
	.quad	48                              ## 0x30
	.quad	48                              ## 0x30
LCPI0_7:
	.quad	56                              ## 0x38
	.quad	56                              ## 0x38
LCPI0_8:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rocker_dma_ring_create:                ## @rocker_dma_ring_create
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_rocker_dma_ring_size_fix
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	setne	%dil
	callq	_BUG_ON
	movq	%rbx, (%r15)
	movl	%r12d, 8(%r15)
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 32(%r15)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movl	(%r15), %esi
	shll	$2, %esi
	leaq	12(%r15), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.4:
	movq	24(%r15), %rdx
	cmpq	$4, %rcx
	jae	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_18:
	movq	24(%r15), %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_6:
	movq	%rcx, %rsi
	andq	$-4, %rsi
	leaq	-4(%rsi), %rbx
	movq	%rbx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	movq	%rax, %xmm8
	cmpq	$12, %rbx
	jae	LBB0_8
## %bb.7:
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	andq	$-4, %rdi
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%ebx, %ebx
	pshufd	$68, %xmm8, %xmm2               ## xmm2 = xmm8[0,1,0,1]
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [8,8]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [16,16]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [24,24]
	movdqa	LCPI0_4(%rip), %xmm11           ## xmm11 = [32,32]
	movdqa	LCPI0_5(%rip), %xmm12           ## xmm12 = [40,40]
	movdqa	LCPI0_6(%rip), %xmm1            ## xmm1 = [48,48]
	movdqa	LCPI0_7(%rip), %xmm3            ## xmm3 = [56,56]
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm0
	psllq	$2, %xmm0
	paddq	%xmm2, %xmm0
	movdqa	%xmm0, %xmm6
	paddq	%xmm9, %xmm6
	movdqu	%xmm0, (%rdx,%rbx,8)
	movdqu	%xmm6, 16(%rdx,%rbx,8)
	movdqa	%xmm0, %xmm6
	paddq	%xmm4, %xmm6
	movdqa	%xmm0, %xmm7
	paddq	%xmm10, %xmm7
	movdqu	%xmm6, 32(%rdx,%rbx,8)
	movdqu	%xmm7, 48(%rdx,%rbx,8)
	movdqa	%xmm0, %xmm6
	paddq	%xmm11, %xmm6
	movdqa	%xmm0, %xmm7
	paddq	%xmm12, %xmm7
	movdqu	%xmm6, 64(%rdx,%rbx,8)
	movdqu	%xmm7, 80(%rdx,%rbx,8)
	movdqa	%xmm0, %xmm6
	paddq	%xmm1, %xmm6
	paddq	%xmm3, %xmm0
	movdqu	%xmm6, 96(%rdx,%rbx,8)
	movdqu	%xmm0, 112(%rdx,%rbx,8)
	addq	$16, %rbx
	paddq	%xmm4, %xmm5
	addq	$-4, %rdi
	jne	LBB0_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	leaq	(%rdx,%rbx,8), %rdi
	addq	$16, %rdi
	shlq	$5, %r8
	xorl	%ebx, %ebx
	pshufd	$68, %xmm8, %xmm1               ## xmm1 = xmm8[0,1,0,1]
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [8,8]
	movdqa	LCPI0_8(%rip), %xmm3            ## xmm3 = [4,4]
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm0
	psllq	$2, %xmm0
	paddq	%xmm1, %xmm0
	movdqu	%xmm0, -16(%rdi,%rbx)
	paddq	%xmm2, %xmm0
	movdqu	%xmm0, (%rdi,%rbx)
	paddq	%xmm3, %xmm5
	addq	$32, %rbx
	cmpq	%rbx, %r8
	jne	LBB0_12
LBB0_13:
	cmpq	%rsi, %rcx
	je	LBB0_16
LBB0_14:
	leaq	(%rax,%rsi,4), %rax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rdx,%rsi,8)
	incq	%rsi
	addq	$4, %rax
	cmpq	%rsi, %rcx
	jne	LBB0_15
LBB0_16:
	movl	8(%r15), %edi
	callq	_DMA_DESC_CTRL
	movq	_ROCKER_DMA_DESC_CTRL_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rocker_write32
	movl	8(%r15), %edi
	callq	_DMA_DESC_ADDR
	movl	12(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rocker_write64
	movl	8(%r15), %edi
	callq	_DMA_DESC_SIZE
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rocker_write32
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ROCKER_DMA_DESC_CTRL_RESET,4,2 ## @ROCKER_DMA_DESC_CTRL_RESET
	.no_dead_strip	_rocker_dma_ring_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function rocker_dma_ring_create
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rocker_dma_ring_create:                ; @rocker_dma_ring_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x2
	bl	_rocker_dma_ring_size_fix
	cmp	x0, x21
	cset	w0, ne
	bl	_BUG_ON
	str	x21, [x19]
	str	w22, [x19, #8]
	stp	xzr, xzr, [x19, #32]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x20]
	ldr	w8, [x19]
	lsl	w1, w8, #2
	add	x2, x19, #12
	bl	_pci_alloc_consistent
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.3:
	ldr	x9, [x19, #24]
	cmp	x8, #8
	b.hs	LBB0_7
; %bb.4:
	mov	x10, #0
	b	LBB0_10
LBB0_5:
	ldr	x0, [x19, #24]
	bl	_kfree
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_7:
	and	x10, x8, #0xfffffffffffffff8
Lloh6:
	adrp	x11, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x11, lCPI0_0@PAGEOFF]
	add	x11, x9, #32
	mov	w12, #24
	dup.2d	v1, x12
	mov	w12, #16
	dup.2d	v2, x12
	dup.2d	v3, x0
	mov	w12, #8
	dup.2d	v4, x12
	mov	x12, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	shl.2d	v5, v0, #2
	add.2d	v5, v3, v5
	add.2d	v6, v5, v4
	add.2d	v7, v5, v2
	add.2d	v16, v5, v1
	stp	q5, q6, [x11, #-32]
	stp	q7, q16, [x11], #64
	add.2d	v0, v0, v4
	subs	x12, x12, #8
	b.ne	LBB0_8
; %bb.9:
	cmp	x8, x10
	b.eq	LBB0_12
LBB0_10:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
	add	x10, x0, x10, lsl #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	x10, [x9], #8
	add	x10, x10, #4
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	ldr	w0, [x19, #8]
	bl	_DMA_DESC_CTRL
	mov	x1, x0
Lloh8:
	adrp	x8, _ROCKER_DMA_DESC_CTRL_RESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ROCKER_DMA_DESC_CTRL_RESET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_rocker_write32
	ldr	w0, [x19, #8]
	bl	_DMA_DESC_ADDR
	mov	x1, x0
	ldr	w2, [x19, #12]
	mov	x0, x20
	bl	_rocker_write64
	ldr	w0, [x19, #8]
	bl	_DMA_DESC_SIZE
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x20
	bl	_rocker_write32
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ROCKER_DMA_DESC_CTRL_RESET,4,2 ; @ROCKER_DMA_DESC_CTRL_RESET
	.no_dead_strip	_rocker_dma_ring_create
.subsections_via_symbols
