	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vortex_open
_vortex_open:                           ## @vortex_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_vortex_boomerang_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %edi
	movl	4(%rbx), %ecx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_2
LBB0_4:
	cmpq	$0, 32(%r14)
	je	LBB0_24
## %bb.5:
	movq	_vortex_debug@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
LBB0_7:
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.9:
	xorl	%r15d, %r15d
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rbx
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	leal	(%r15,%rax), %edi
	addl	$4, %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	$0, 24(%rcx,%r15,8)
	movq	_LAST_FRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%rbx), %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, 16(%rcx,%r15,8)
	movslq	(%rbx), %rsi
	addq	(%r12), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	___netdev_alloc_skb
	movq	%r13, %rcx
	movq	%r14, %r13
	movq	%rbx, %r14
	movq	%rax, %rbx
	movq	8(%r13), %rax
	movq	%r12, %rdx
	movq	%rcx, %r12
	movq	%rbx, (%rax,%rcx,8)
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rdx), %rsi
	movq	%rbx, %rdi
	callq	_skb_reserve
	movl	24(%r13), %edi
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, %ebx
	movl	24(%r13), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	movq	%r13, %r14
	movq	%r12, %r13
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx,%r15,8)
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r15
	cmpq	%rax, %r13
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rbx
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r12
	jl	LBB0_10
	jmp	LBB0_14
LBB0_8:
	xorl	%r13d, %r13d
	cmpl	%ebx, %r13d
	je	LBB0_23
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_emerg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_11:
	movq	%r13, %r14
	movq	%r12, %r13
LBB0_14:
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %r13d
	jne	LBB0_16
LBB0_23:
	movl	(%r14), %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movslq	%ebx, %rdx
	shlq	$5, %rdx
	movq	%rax, -32(%rdx,%rcx)
LBB0_24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vortex_up
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_25
LBB0_17:
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	callq	_dev_kfree_skb
	movq	8(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movl	(%r13), %eax
	jmp	LBB0_21
LBB0_22:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %edi
	callq	_free_irq
LBB0_2:
	movq	_vortex_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_26
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %edx
	callq	_pr_err
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%r15d, %r15d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_vortex_boomerang_interrupt,4,2 ## @vortex_boomerang_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Could not reserve IRQ %d\n"

	.comm	_vortex_debug,4,2               ## @vortex_debug
L_.str.1:                               ## @.str.1
	.asciz	"%s:  Filling in the Rx ring.\n"

	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_PKT_BUF_SZ,4,2                 ## @PKT_BUF_SZ
	.comm	_LAST_FRAG,4,2                  ## @LAST_FRAG
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.2:                               ## @.str.2
	.asciz	"%s: no memory for rx ring\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"%s: vortex_open() fails: returning %d\n"

	.no_dead_strip	_vortex_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vortex_open
_vortex_open:                           ; @vortex_open
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _vortex_boomerang_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vortex_boomerang_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]
	mov	x4, x19
	bl	_request_irq
Lloh6:
	adrp	x25, _vortex_debug@GOTPAGE
Lloh7:
	ldr	x25, [x25, _vortex_debug@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldp	w2, w1, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_21
LBB0_2:
	ldr	x8, [x20, #32]
Lloh10:
	adrp	x23, _RX_RING_SIZE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _RX_RING_SIZE@GOTPAGEOFF]
	cbz	x8, LBB0_12
; %bb.3:
	ldr	w8, [x25]
	cmp	w8, #3
	b.lt	LBB0_5
; %bb.4:
	ldr	w1, [x19, #4]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_5:
	ldr	w21, [x23]
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x25, #0
	mov	x24, #0
Lloh14:
	adrp	x26, _PKT_BUF_SZ@GOTPAGE
Lloh15:
	ldr	x26, [x26, _PKT_BUF_SZ@GOTPAGEOFF]
Lloh16:
	adrp	x27, _LAST_FRAG@GOTPAGE
Lloh17:
	ldr	x27, [x27, _LAST_FRAG@GOTPAGEOFF]
Lloh18:
	adrp	x28, _NET_IP_ALIGN@GOTPAGE
Lloh19:
	ldr	x28, [x28, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh20:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh21:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	add	w8, w25, w8
	add	w0, w8, #4
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	lsl	x21, x25, #3
	add	x8, x8, x21
	str	x0, [x8]
	str	xzr, [x8, #24]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	add	x8, x8, x21
	str	x0, [x8, #16]
	ldrsw	x8, [x26]
	ldr	x9, [x28]
	add	x1, x9, x8
	ldr	w2, [x22]
	mov	x0, x19
	bl	___netdev_alloc_skb
	ldr	x8, [x20, #8]
	str	x0, [x8, x24, lsl #3]
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x0
	ldr	x1, [x28]
	bl	_skb_reserve
	ldr	w0, [x20, #24]
	ldr	w1, [x21]
	ldr	w2, [x26]
Lloh22:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x21, x0
	ldr	w0, [x20, #24]
	mov	x1, x21
	bl	_dma_mapping_error
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	mov	x0, x21
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	add	x8, x8, x25, lsl #3
	str	x0, [x8, #8]
	ldrsw	x8, [x23]
	add	x25, x25, #4
	cmp	x24, x8
	b.lt	LBB0_7
LBB0_10:
	ldr	w21, [x23]
Lloh25:
	adrp	x25, _vortex_debug@GOTPAGE
Lloh26:
	ldr	x25, [x25, _vortex_debug@GOTPAGEOFF]
	cmp	w24, w21
	b.ne	LBB0_14
LBB0_11:
	ldr	w0, [x20]
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	sxtw	x9, w21
	add	x8, x8, x9, lsl #5
	stur	x0, [x8, #-32]
LBB0_12:
	mov	x0, x19
	bl	_vortex_up
	mov	x21, x0
	cbnz	w0, LBB0_15
	b	LBB0_23
LBB0_13:
	mov	w24, #0
	cmp	w24, w21
	b.eq	LBB0_11
LBB0_14:
	ldr	w1, [x19, #4]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_emerg
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	x22, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_dev_kfree_skb
	ldr	x8, [x20, #8]
	str	xzr, [x8, x22, lsl #3]
	ldr	w8, [x23]
	b	LBB0_17
LBB0_20:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
LBB0_21:
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_23
; %bb.22:
	ldr	w1, [x19, #4]
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_pr_err
LBB0_23:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_vortex_boomerang_interrupt,4,2 ; @vortex_boomerang_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Could not reserve IRQ %d\n"

	.comm	_vortex_debug,4,2               ; @vortex_debug
l_.str.1:                               ; @.str.1
	.asciz	"%s:  Filling in the Rx ring.\n"

	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_PKT_BUF_SZ,4,2                 ; @PKT_BUF_SZ
	.comm	_LAST_FRAG,4,2                  ; @LAST_FRAG
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.2:                               ; @.str.2
	.asciz	"%s: no memory for rx ring\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"%s: vortex_open() fails: returning %d\n"

	.no_dead_strip	_vortex_open
.subsections_via_symbols
