	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_open
_cp_open:                               ## @cp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	8(%rax), %rax
	movl	(%rax), %r15d
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_netif_dbg
	movq	%r12, %rdi
	callq	_cp_alloc_rings
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_napi_enable
	movq	%r12, %rdi
	callq	_cp_init_hw
	movq	_cp_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movl	%r15d, %edi
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_napi_disable
	movq	%r12, %rdi
	callq	_cp_stop_hw
	movq	%r12, %rdi
	callq	_cp_free_rings
	jmp	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	callq	_cp_enable_irq
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r12, %rbx
	addq	$4, %rbx
	movq	%r12, %rdi
	callq	_netif_msg_link
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_mii_check_media
	movq	%r14, %rdi
	callq	_netif_start_queue
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabling interface\n"

	.comm	_cp_interrupt,4,2               ## @cp_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_cp_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_open
_cp_open:                               ; @cp_open
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _ifup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x19
	bl	_netif_dbg
	mov	x0, x20
	bl	_cp_alloc_rings
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_napi_enable
	mov	x0, x20
	bl	_cp_init_hw
Lloh5:
	adrp	x8, _cp_interrupt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cp_interrupt@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x21
	mov	x4, x19
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_napi_disable
	mov	x0, x20
	bl	_cp_stop_hw
	mov	x0, x20
	bl	_cp_free_rings
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_cp_enable_irq
	mov	x0, x19
	bl	_netif_carrier_off
	add	x21, x20, #4
	mov	x0, x20
	bl	_netif_msg_link
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	bl	_mii_check_media
	mov	x0, x19
	bl	_netif_start_queue
LBB0_4:
	mov	x0, x22
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabling interface\n"

	.comm	_cp_interrupt,4,2               ; @cp_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_cp_open
.subsections_via_symbols
