	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_init_chain
_spider_net_init_chain:                 ## @spider_net_init_chain
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movslq	(%rsi), %rsi
	shlq	$4, %rsi
	movq	(%rdi), %rdi
	leaq	4(%r15), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rdi
	movl	(%r15), %edx
	shll	$5, %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r15), %r9
	movl	(%r15), %r8d
	movq	%r9, %rbx
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.3:
	movl	4(%r15), %ecx
	movq	40(%r15), %rdx
	cmpl	$1, %r8d
	jne	LBB0_5
## %bb.4:
	movq	%r9, %rbx
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_5:
	movl	%r8d, %esi
	andl	$-2, %esi
	addq	$16, %rdx
	movq	_SPIDER_NET_DESCR_NOT_IN_USE@GOTPCREL(%rip), %r10
	movq	%r9, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-16(%rdx), %rbx
	movl	(%r10), %eax
	movl	%eax, -8(%rdx)
	movq	$0, -16(%rdx)
	movq	%rbx, 24(%rdi)
	movl	%ecx, (%rdi)
	leaq	32(%rdi), %rax
	movq	%rax, 16(%rdi)
	leaq	-32(%rdi), %rax
	movq	%rax, 8(%rdi)
	movl	(%r10), %eax
	movl	%eax, 8(%rdx)
	movq	$0, (%rdx)
	movq	%rdx, 56(%rdi)
	leal	16(%rcx), %eax
	movl	%eax, 32(%rdi)
	leaq	64(%rdi), %rbx
	movq	%rbx, 48(%rdi)
	movq	%rdi, 40(%rdi)
	addl	$32, %ecx
	addq	$32, %rdx
	addl	$-2, %esi
	jne	LBB0_6
## %bb.7:
	addq	$-16, %rdx
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movq	_SPIDER_NET_DESCR_NOT_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx)
	movq	$0, (%rdx)
	movq	%rdx, 24(%rbx)
	movl	%ecx, (%rbx)
	leaq	32(%rbx), %rax
	movq	%rax, 16(%rbx)
	leaq	-32(%rbx), %rcx
	movq	%rcx, 8(%rbx)
	movq	%rax, %rbx
LBB0_10:
	movq	%r9, -16(%rbx)
	addq	$-32, %rbx
	movq	%rbx, 8(%r9)
	leaq	32(%r15), %rdi
	callq	_spin_lock_init
	movq	8(%r15), %rax
	movq	%rax, 24(%r15)
	movq	%rax, 16(%r15)
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SPIDER_NET_DESCR_NOT_IN_USE,4,2 ## @SPIDER_NET_DESCR_NOT_IN_USE
	.no_dead_strip	_spider_net_init_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spider_net_init_chain
_spider_net_init_chain:                 ; @spider_net_init_chain
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldrsw	x8, [x1]
	lsl	x1, x8, #4
	ldr	x0, [x0]
	add	x2, x19, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_dma_alloc_coherent
	str	x0, [x19, #40]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	lsl	w2, w8, #5
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	mov	x13, x8
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	w10, [x19, #4]
	ldr	x11, [x19, #40]
	mov	x14, x8
Lloh3:
	adrp	x12, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	str	w13, [x11, #8]
	str	xzr, [x11]
	str	w10, [x14]
	add	x13, x14, #32
	sub	x15, x14, #32
	stp	x13, x11, [x14, #16]
	str	x15, [x14, #8]
	add	w10, w10, #16
	add	x11, x11, #16
	mov	x14, x13
	subs	w9, w9, #1
	b.ne	LBB0_3
LBB0_4:
	sub	x9, x13, #32
	stur	x8, [x13, #-16]
	str	x9, [x8, #8]
	add	x0, x19, #32
	bl	_spin_lock_init
	mov	w0, #0
	ldr	x8, [x19, #8]
	stp	x8, x8, [x19, #16]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SPIDER_NET_DESCR_NOT_IN_USE,4,2 ; @SPIDER_NET_DESCR_NOT_IN_USE
	.no_dead_strip	_spider_net_init_chain
.subsections_via_symbols
