	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spider_net_open                ## -- Begin function spider_net_open
	.p2align	4, 0x90
_spider_net_open:                       ## @spider_net_open
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_spider_net_init_firmware
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	$0, 40(%r12)
	movq	_BCM54XX_COPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	%r12, %rdi
	callq	_spider_net_setup_aneg
	movq	24(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_SPIDER_NET_ANEG_TIMER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_mod_timer
LBB0_3:
	leaq	4(%r12), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_spider_net_init_chain
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	$0, 16(%r12)
	leaq	8(%r12), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_spider_net_init_chain
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%r12, %rdi
	callq	_spider_net_alloc_rx_skbs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_spider_net_set_multi
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %ecx
	movl	4(%r14), %edi
	movq	_spider_net_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	negl	%ebx
	movq	%r12, %rdi
	callq	_spider_net_free_rx_chain_contents
LBB0_9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_spider_net_free_chain
LBB0_10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_spider_net_free_chain
LBB0_11:
	movq	%r12, %rdi
	callq	_del_timer_sync
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	callq	_spider_net_enable_card
	movq	%r14, %rdi
	callq	_netif_start_queue
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_napi_enable
	movq	%r12, %rdi
	callq	_spider_net_enable_interrupts
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM54XX_COPPER,4,2             ## @BCM54XX_COPPER
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SPIDER_NET_ANEG_TIMER,8,3      ## @SPIDER_NET_ANEG_TIMER
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_spider_net_interrupt,4,2       ## @spider_net_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spider_net_open                ; -- Begin function spider_net_open
	.p2align	2
_spider_net_open:                       ; @spider_net_open
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_spider_net_init_firmware
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.1:
	str	xzr, [x19, #40]
Lloh0:
	adrp	x8, _BCM54XX_COPPER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM54XX_COPPER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	x0, x19
	bl	_spider_net_setup_aneg
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SPIDER_NET_ANEG_TIMER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPIDER_NET_ANEG_TIMER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_mod_timer
LBB0_3:
	add	x21, x19, #4
	mov	x0, x19
	mov	x1, x21
	bl	_spider_net_init_chain
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.4:
	str	xzr, [x19, #16]
	add	x22, x19, #8
	mov	x0, x19
	mov	x1, x22
	bl	_spider_net_init_chain
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_spider_net_alloc_rx_skbs
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_spider_net_set_multi
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
Lloh12:
	adrp	x8, _spider_net_interrupt@GOTPAGE
Lloh13:
	ldr	x8, [x8, _spider_net_interrupt@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldp	w3, w0, [x20]
	mov	x4, x20
	bl	_request_irq
	cbz	x0, LBB0_12
; %bb.7:
	neg	w23, w23
	mov	x0, x19
	bl	_spider_net_free_rx_chain_contents
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	bl	_spider_net_free_chain
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_spider_net_free_chain
LBB0_10:
	mov	x0, x19
	bl	_del_timer_sync
LBB0_11:
	mov	x0, x23
	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_12:
	mov	x0, x19
	bl	_spider_net_enable_card
	mov	x0, x20
	bl	_netif_start_queue
	mov	x0, x20
	bl	_netif_carrier_on
	add	x0, x19, #12
	bl	_napi_enable
	mov	x0, x19
	bl	_spider_net_enable_interrupts
	mov	w23, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM54XX_COPPER,4,2             ; @BCM54XX_COPPER
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SPIDER_NET_ANEG_TIMER,8,3      ; @SPIDER_NET_ANEG_TIMER
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_spider_net_interrupt,4,2       ; @spider_net_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
.subsections_via_symbols
