	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc35815_open
_tc35815_open:                          ## @tc35815_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_tc35815_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %edi
	movl	8(%rbx), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_tc35815_chip_reset
	movq	%rbx, %rdi
	callq	_tc35815_init_queues
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_napi_enable
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_tc35815_chip_init
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movl	(%rbx), %edi
	callq	_phy_start
	movq	%rbx, %rdi
	callq	_netif_start_queue
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_tc35815_interrupt,4,2          ## @tc35815_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_tc35815_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc35815_open
_tc35815_open:                          ; @tc35815_open
	.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, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _tc35815_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tc35815_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldp	w0, w3, [x19, #4]
	mov	x4, x19
	bl	_request_irq
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_tc35815_chip_reset
	mov	x0, x19
	bl	_tc35815_init_queues
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_free_irq
LBB0_3:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	x0, x20, #4
	bl	_napi_enable
	mov	x0, x20
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_tc35815_chip_init
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_netif_carrier_off
	ldr	w0, [x19]
	bl	_phy_start
	mov	x0, x19
	bl	_netif_start_queue
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_tc35815_interrupt,4,2          ; @tc35815_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_tc35815_open
.subsections_via_symbols
