	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function nb8800_dma_init
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
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_nb8800_dma_init:                       ## @nb8800_dma_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	%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
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_RX_DESC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_TX_DESC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movq	_RX_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	40(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%r14), %edx
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_kcalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_nb8800_alloc_rx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_5
LBB0_7:
	movl	(%r15), %edi
	movq	_TX_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	%r12, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movl	(%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.10:
	movq	(%r12), %r8
	cmpl	$4, %ebx
	jae	LBB0_12
## %bb.11:
	xorl	%ecx, %ecx
	jmp	LBB0_19
LBB0_6:
	movq	%r15, %rdi
	callq	_nb8800_dma_free
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%ebx, %ecx
	andl	$-4, %ecx
	movq	%r8, %xmm8
	pshufd	$68, %xmm8, %xmm0               ## xmm0 = xmm8[0,1,0,1]
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.14:
	movq	%rdx, %rsi
	andq	$-2, %rsi
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [8,8]
	paddq	%xmm8, %xmm2
	pshufd	$68, %xmm2, %xmm1               ## xmm1 = xmm2[0,1,0,1]
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%edi, %edi
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [16,16]
	movdqa	LCPI0_1(%rip), %xmm5            ## xmm5 = [8,8]
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm2, %xmm6
	psllq	$2, %xmm6
	movdqa	%xmm0, %xmm7
	paddq	%xmm6, %xmm7
	movdqa	%xmm1, %xmm3
	paddq	%xmm6, %xmm3
	movdqu	%xmm7, (%rax,%rdi,8)
	movdqu	%xmm3, 16(%rax,%rdi,8)
	paddq	%xmm4, %xmm6
	movdqa	%xmm0, %xmm3
	paddq	%xmm6, %xmm3
	paddq	%xmm1, %xmm6
	movdqu	%xmm3, 32(%rax,%rdi,8)
	movdqu	%xmm6, 48(%rax,%rdi,8)
	addq	$8, %rdi
	paddq	%xmm5, %xmm2
	addq	$-2, %rsi
	jne	LBB0_15
	jmp	LBB0_16
LBB0_13:
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%edi, %edi
LBB0_16:
	testb	$1, %dl
	je	LBB0_18
## %bb.17:
	psllq	$2, %xmm2
	paddq	%xmm2, %xmm0
	paddq	LCPI0_1(%rip), %xmm8
	pshufd	$68, %xmm8, %xmm1               ## xmm1 = xmm8[0,1,0,1]
	paddq	%xmm2, %xmm1
	movdqu	%xmm0, (%rax,%rdi,8)
	movdqu	%xmm1, 16(%rax,%rdi,8)
LBB0_18:
	cmpq	%rbx, %rcx
	je	LBB0_21
LBB0_19:
	leaq	(%r8,%rcx,4), %rdx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, (%rax,%rcx,8)
	incq	%rcx
	addq	$4, %rdx
	cmpq	%rcx, %rbx
	jne	LBB0_20
LBB0_21:
	movq	%r15, %rdi
	callq	_nb8800_dma_reset
	xorl	%eax, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_DESC_COUNT,4,2              ## @RX_DESC_COUNT
	.comm	_TX_DESC_COUNT,4,2              ## @TX_DESC_COUNT
	.comm	_RX_DESC_SIZE,4,2               ## @RX_DESC_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_TX_DESC_SIZE,4,2               ## @TX_DESC_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nb8800_dma_init
.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 nb8800_dma_init
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nb8800_dma_init:                       ; @nb8800_dma_init
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _RX_DESC_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_DESC_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _TX_DESC_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_DESC_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _RX_DESC_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_DESC_SIZE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh8:
	ldr	w1, [x8]
	add	x2, x21, #40
Lloh9:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x24]
	bl	_dma_alloc_coherent
	str	x0, [x21, #32]
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w2, [x24]
	mov	x0, x22
	mov	w1, #1
	bl	_kcalloc
	str	x0, [x21, #24]
	cbz	x0, LBB0_11
; %bb.2:
	cbz	w22, LBB0_6
; %bb.3:
	mov	w23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_nb8800_alloc_rx
	cbnz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	w22, w23
	b.ne	LBB0_4
LBB0_6:
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _TX_DESC_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TX_DESC_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w3, [x24]
	mov	x2, x21
	bl	_dma_alloc_coherent
	str	x0, [x21, #16]
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w2, [x24]
	mov	x0, x20
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_11
; %bb.8:
	cbz	w20, LBB0_18
; %bb.9:
	ldr	x8, [x21]
	cmp	w20, #8
	b.hs	LBB0_13
; %bb.10:
	mov	x9, #0
	b	LBB0_16
LBB0_11:
	mov	x0, x19
	bl	_nb8800_dma_free
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_13:
	and	x9, x20, #0xfffffff8
	fmov	d3, x8
	dup.2d	v0, x8
	mov	w10, #8
	fmov	d1, x10
	add.2d	v1, v3, v1
	dup.2d	v1, v1[0]
	mov	w11, #16
	fmov	d2, x11
	add.2d	v2, v3, v2
	dup.2d	v2, v2[0]
	mov	w11, #24
	fmov	d4, x11
	add.2d	v3, v3, v4
	dup.2d	v3, v3[0]
Lloh17:
	adrp	x11, lCPI0_0@PAGE
Lloh18:
	ldr	q4, [x11, lCPI0_0@PAGEOFF]
	add	x11, x0, #32
	mov	x12, x9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	shl.2d	v5, v4, #2
	add.2d	v6, v0, v5
	add.2d	v7, v1, v5
	add.2d	v16, v2, v5
	add.2d	v5, v3, v5
	stp	q6, q7, [x11, #-32]
	stp	q16, q5, [x11], #64
	dup.2d	v5, x10
	add.2d	v4, v4, v5
	subs	x12, x12, #8
	b.ne	LBB0_14
; %bb.15:
	cmp	x9, x20
	b.eq	LBB0_18
LBB0_16:
	add	x10, x0, x9, lsl #3
	sub	x11, x20, x9
	add	x8, x8, x9, lsl #2
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	str	x8, [x10], #8
	add	x8, x8, #4
	subs	x11, x11, #1
	b.ne	LBB0_17
LBB0_18:
	mov	x0, x19
	bl	_nb8800_dma_reset
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdr	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_DESC_COUNT,4,2              ; @RX_DESC_COUNT
	.comm	_TX_DESC_COUNT,4,2              ; @TX_DESC_COUNT
	.comm	_RX_DESC_SIZE,4,2               ; @RX_DESC_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_TX_DESC_SIZE,4,2               ; @TX_DESC_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nb8800_dma_init
.subsections_via_symbols
