	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_alloc_card
_spider_net_alloc_card:                 ## @spider_net_alloc_card
	.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	_tx_descriptors@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	movq	_rx_descriptors@GOTPCREL(%rip), %r12
	movslq	(%r12), %rcx
	addq	%rax, %rcx
	leaq	64(,%rcx,4), %rdi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, 56(%rax)
	movq	_SPIDER_NET_DEFAULT_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	leaq	48(%rbx), %rdi
	movq	_spider_net_tx_timeout_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	44(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	40(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movslq	(%r12), %rax
	movl	%eax, 24(%rbx)
	movq	(%rbx), %rcx
	movq	%rcx, 32(%rbx)
	movl	(%r15), %edx
	movl	%edx, 8(%rbx)
	addq	%rax, %rcx
	movq	%rcx, 16(%rbx)
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tx_descriptors,4,2             ## @tx_descriptors
	.comm	_rx_descriptors,4,2             ## @rx_descriptors
	.comm	_SPIDER_NET_DEFAULT_MSG,4,2     ## @SPIDER_NET_DEFAULT_MSG
	.comm	_spider_net_tx_timeout_task,4,2 ## @spider_net_tx_timeout_task
	.no_dead_strip	_spider_net_alloc_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spider_net_alloc_card
_spider_net_alloc_card:                 ; @spider_net_alloc_card
	.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
Lloh0:
	adrp	x21, _tx_descriptors@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tx_descriptors@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _rx_descriptors@GOTPAGE
Lloh3:
	ldr	x22, [x22, _rx_descriptors@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w8, w9, w8
	sbfiz	x8, x8, #2, #32
	add	x0, x8, #64
	bl	_alloc_etherdev
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	str	x20, [x0, #56]
Lloh4:
	adrp	x8, _SPIDER_NET_DEFAULT_MSG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SPIDER_NET_DEFAULT_MSG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #52]
	add	x0, x0, #48
Lloh7:
	adrp	x8, _spider_net_tx_timeout_task@GOTPAGE
Lloh8:
	ldr	x8, [x8, _spider_net_tx_timeout_task@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #44
	bl	_init_waitqueue_head
	add	x0, x19, #40
	mov	w1, #0
	bl	_atomic_set
	ldrsw	x8, [x22]
	str	w8, [x19, #24]
	ldr	x9, [x19]
	str	x9, [x19, #32]
	ldr	w10, [x21]
	str	w10, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #16]
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_tx_descriptors,4,2             ; @tx_descriptors
	.comm	_rx_descriptors,4,2             ; @rx_descriptors
	.comm	_SPIDER_NET_DEFAULT_MSG,4,2     ; @SPIDER_NET_DEFAULT_MSG
	.comm	_spider_net_tx_timeout_task,4,2 ; @spider_net_tx_timeout_task
	.no_dead_strip	_spider_net_alloc_card
.subsections_via_symbols
