	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_open
_velocity_open:                         ## @velocity_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	8(%rbx), %esi
	movq	%rax, %rdi
	callq	_velocity_init_rings
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_velocity_set_power_state
	movq	_VELOCITY_INIT_COLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_velocity_init_registers
	movl	(%rbx), %ecx
	movl	4(%rbx), %edi
	movq	_velocity_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_velocity_give_many_rx_descs
	movl	8(%r14), %edi
	callq	_mac_enable_int
	movq	%rbx, %rdi
	callq	_netif_start_queue
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_napi_enable
	movq	_VELOCITY_FLAGS_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_3:
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_velocity_set_power_state
	movq	%r14, %rdi
	callq	_velocity_free_rings
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.comm	_VELOCITY_INIT_COLD,4,2         ## @VELOCITY_INIT_COLD
	.comm	_velocity_intr,4,2              ## @velocity_intr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_VELOCITY_FLAGS_OPENED,4,2      ## @VELOCITY_FLAGS_OPENED
	.no_dead_strip	_velocity_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_open
_velocity_open:                         ; @velocity_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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w1, [x20, #8]
	bl	_velocity_init_rings
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_velocity_set_power_state
Lloh3:
	adrp	x8, _VELOCITY_INIT_COLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VELOCITY_INIT_COLD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_velocity_init_registers
Lloh6:
	adrp	x8, _velocity_intr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _velocity_intr@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldp	w3, w0, [x20]
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_velocity_give_many_rx_descs
	ldr	w0, [x19, #8]
	bl	_mac_enable_int
	mov	x0, x20
	bl	_netif_start_queue
	add	x0, x19, #4
	bl	_napi_enable
Lloh12:
	adrp	x8, _VELOCITY_FLAGS_OPENED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VELOCITY_FLAGS_OPENED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
	mov	x21, x0
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_velocity_set_power_state
	mov	x0, x19
	bl	_velocity_free_rings
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.comm	_VELOCITY_INIT_COLD,4,2         ; @VELOCITY_INIT_COLD
	.comm	_velocity_intr,4,2              ; @velocity_intr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_VELOCITY_FLAGS_OPENED,4,2      ; @VELOCITY_FLAGS_OPENED
	.no_dead_strip	_velocity_open
.subsections_via_symbols
