	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ibmveth_open
LCPI0_0:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ibmveth_open:                          ## @ibmveth_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r13
	movl	$0, -44(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	%r13, %rdi
	callq	_napi_enable
	movq	_IBMVETH_NUM_BUFF_POOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	32(%r13), %rcx
	cmpl	$5, %eax
	jae	LBB0_4
## %bb.2:
	movl	$1, %ebx
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_3:
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %edx
	andl	$3, %edx
	testq	%rdx, %rdx
	movl	$4, %esi
	cmovneq	%rdx, %rsi
	movq	%rax, %rdx
	subq	%rsi, %rdx
	leaq	40(%rcx), %rsi
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,0,0,0]
	movq	%rdx, %rdi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-32(%rsi), %xmm2
	movdqu	-16(%rsi), %xmm3
	punpckldq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
	paddd	%xmm2, %xmm1
	movdqu	(%rsi), %xmm2
	movdqu	16(%rsi), %xmm3
	punpckldq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
	paddd	%xmm2, %xmm0
	addq	$64, %rsi
	addq	$-4, %rdi
	jne	LBB0_5
## %bb.6:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
LBB0_7:
	subq	%rdx, %rax
	shlq	$4, %rdx
	addq	%rdx, %rcx
	addq	$8, %rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rcx), %ebx
	addq	$16, %rcx
	decq	%rax
	jne	LBB0_8
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_get_zeroed_page
	movq	%rax, 104(%r13)
	movl	(%r12), %edi
	callq	_get_zeroed_page
	movq	%rax, 96(%r13)
	cmpq	$0, 104(%r13)
	je	LBB0_16
## %bb.10:
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	leal	(,%rbx,4), %edi
	movl	%edi, 56(%r13)
	movl	(%r12), %esi
	callq	_kmalloc
	movq	%rax, 72(%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	24(%r13), %r12
	movq	104(%r13), %rsi
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_dma_map_single
	movq	%rax, 48(%r13)
	movq	96(%r13), %rsi
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_dma_map_single
	movq	%rax, 40(%r13)
	movq	72(%r13), %rsi
	movl	56(%r13), %edx
	movl	(%r14), %ecx
	movq	%r12, %rdi
	callq	_dma_map_single
	movq	%rax, 80(%r13)
	movq	48(%r13), %rsi
	movq	%r12, %rdi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	40(%r13), %rsi
	movq	%r12, %rdi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	80(%r13), %rsi
	movq	%r12, %rdi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_23
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.2(%rip), %rsi
LBB0_18:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_20:
	subl	(%rax), %r12d
LBB0_21:
	movq	%r13, %rdi
	callq	_ibmveth_cleanup
	movq	%r13, %rdi
	callq	_napi_disable
LBB0_22:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 88(%r13)
	movl	%ebx, 60(%r13)
	movl	$1, 64(%r13)
	movq	%r15, %r14
	movl	12(%r15), %edx
	movl	16(%r15), %esi
	leaq	-44(%rbp), %rdi
	callq	_memcpy
	movswl	-42(%rbp), %eax
	movl	%eax, -44(%rbp)
	movq	_IBMVETH_BUF_VALID@GOTPCREL(%rip), %rax
	movl	56(%r13), %ebx
	orl	(%rax), %ebx
	movq	80(%r13), %r15
	movq	104(%r13), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	96(%r13), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	72(%r13), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	24(%r13), %rax
	movl	4(%rax), %edi
	movq	_VIO_IRQ_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_h_vio_signal
	movl	-44(%rbp), %ecx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_ibmveth_register_logical_lan
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.24:
	movq	_IBMVETH_NUM_BUFF_POOLS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_32
## %bb.25:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	(%r12), %eax
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_32
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rdi
	cmpq	$0, (%rdi,%r15)
	je	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	addq	%r15, %rdi
	callq	_ibmveth_alloc_buffer_pool
	testq	%rax, %rax
	je	LBB0_26
## %bb.30:
	leaq	L_.str.9(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	32(%r13), %rax
	movq	$0, (%rax,%r15)
	jmp	LBB0_19
LBB0_31:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	40(%r13), %rcx
	movq	48(%r13), %rdx
	movl	-44(%rbp), %r9d
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ENONET@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_32:
	movl	4(%r14), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	4(%r14), %edi
	movl	8(%r14), %ecx
	movq	_ibmveth_interrupt@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_36
## %bb.33:
	movl	4(%r14), %edx
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_H_BUSY@GOTPCREL(%rip), %rbx
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movl	4(%rax), %edi
	callq	_h_free_logical_lan
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	jne	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	cmpl	(%rbx), %r12d
	je	LBB0_34
	jmp	LBB0_21
LBB0_36:
	movq	_IBMVETH_BUFF_OH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	movq	24(%r13), %rdi
	movl	(%rbx), %edx
	addl	(%r14), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rsi
	callq	_dma_map_single
	movq	%rax, 8(%r13)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_41
## %bb.38:
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_40
LBB0_39:
	leaq	L_.str.12(%rip), %rsi
LBB0_40:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	jmp	LBB0_21
LBB0_41:
	leaq	L_.str.14(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_ibmveth_interrupt
	movq	%r14, %rdi
	callq	_netif_start_queue
	leaq	L_.str.15(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open starting\n"

	.comm	_IBMVETH_NUM_BUFF_POOLS,4,2     ## @IBMVETH_NUM_BUFF_POOLS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"unable to allocate filter or buffer list pages\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"unable to allocate rx queue pages\n"

	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
L_.str.3:                               ## @.str.3
	.asciz	"unable to map filter or buffer list pages\n"

	.comm	_IBMVETH_BUF_VALID,4,2          ## @IBMVETH_BUF_VALID
L_.str.4:                               ## @.str.4
	.asciz	"buffer list @ 0x%p\n"

L_.str.5:                               ## @.str.5
	.asciz	"filter list @ 0x%p\n"

L_.str.6:                               ## @.str.6
	.asciz	"receive q   @ 0x%p\n"

	.comm	_VIO_IRQ_DISABLE,4,2            ## @VIO_IRQ_DISABLE
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
L_.str.7:                               ## @.str.7
	.asciz	"h_register_logical_lan failed with %ld\n"

L_.str.8:                               ## @.str.8
	.asciz	"buffer TCE:0x%llx filter TCE:0x%llx rxq desc:0x%llx MAC:0x%llx\n"

	.comm	_ENONET,4,2                     ## @ENONET
L_.str.9:                               ## @.str.9
	.asciz	"unable to alloc pool\n"

L_.str.10:                              ## @.str.10
	.asciz	"registering irq 0x%x\n"

L_.str.11:                              ## @.str.11
	.asciz	"unable to request irq 0x%x, rc %d\n"

	.comm	_H_BUSY,4,2                     ## @H_BUSY
	.comm	_IBMVETH_BUFF_OH,4,2            ## @IBMVETH_BUFF_OH
L_.str.12:                              ## @.str.12
	.asciz	"unable to allocate bounce buffer\n"

L_.str.13:                              ## @.str.13
	.asciz	"unable to map bounce buffer\n"

L_.str.14:                              ## @.str.14
	.asciz	"initial replenish cycle\n"

L_.str.15:                              ## @.str.15
	.asciz	"open complete\n"

	.no_dead_strip	_ibmveth_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ibmveth_open
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ibmveth_open:                          ; @ibmveth_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	str	wzr, [sp, #44]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	mov	x0, x19
	bl	_napi_enable
Lloh2:
	adrp	x24, _IBMVETH_NUM_BUFF_POOLS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IBMVETH_NUM_BUFF_POOLS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x19, #32]
	cmp	w8, #9
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w22, #1
	b	LBB0_7
LBB0_3:
	mov	w22, #1
	b	LBB0_9
LBB0_4:
	ands	x10, x8, #0x7
	mov	w11, #8
	csel	x10, x11, x10, eq
	sub	x10, x8, x10
	add	x11, x9, #72
	movi.2d	v0, #0000000000000000
Lloh4:
	adrp	x12, lCPI0_0@PAGE
Lloh5:
	ldr	d1, [x12, lCPI0_0@PAGEOFF]
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x13, x11, #64
	ld2.2d	{ v4, v5 }, [x13]
	sub	x13, x11, #32
	ld2.2d	{ v6, v7 }, [x13]
	mov	x13, x11
	ld2.2d	{ v16, v17 }, [x13], #32
	ld2.2d	{ v18, v19 }, [x13]
	xtn.2s	v4, v4
	xtn.2s	v5, v6
	xtn.2s	v6, v16
	xtn.2s	v7, v18
	add.2s	v1, v1, v4
	add.2s	v0, v0, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	add	x11, x11, #128
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v0, v1
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w22, s0
LBB0_7:
	add	x9, x9, x10, lsl #4
	add	x9, x9, #8
	sub	x8, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #16
	add	w22, w22, w10
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
Lloh6:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_get_zeroed_page
	str	x0, [x19, #104]
	ldr	w0, [x25]
	bl	_get_zeroed_page
	str	x0, [x19, #96]
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_16
; %bb.10:
	cbz	x0, LBB0_16
; %bb.11:
	lsl	w0, w22, #2
	str	w0, [x19, #56]
	ldr	w1, [x25]
	bl	_kmalloc
	str	x0, [x19, #72]
	cbz	x0, LBB0_17
; %bb.12:
	ldr	x21, [x19, #24]
	ldr	x1, [x19, #104]
Lloh8:
	adrp	x26, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x0, x21
	mov	w2, #4096
	bl	_dma_map_single
	str	x0, [x19, #48]
	ldr	x1, [x19, #96]
	ldr	w3, [x26]
	mov	x0, x21
	mov	w2, #4096
	bl	_dma_map_single
	str	x0, [x19, #40]
	ldr	x1, [x19, #72]
	ldr	w2, [x19, #56]
	ldr	w3, [x26]
	mov	x0, x21
	bl	_dma_map_single
	str	x0, [x19, #80]
	ldr	x1, [x19, #48]
	mov	x0, x21
	bl	_dma_mapping_error
	cbnz	x0, LBB0_15
; %bb.13:
	ldr	x1, [x19, #40]
	mov	x0, x21
	bl	_dma_mapping_error
	cbnz	x0, LBB0_15
; %bb.14:
	ldr	x1, [x19, #80]
	mov	x0, x21
	bl	_dma_mapping_error
	cbz	x0, LBB0_23
LBB0_15:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_18:
	mov	x0, x20
	bl	_netdev_err
LBB0_19:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_21:
	mov	x0, x19
	bl	_ibmveth_cleanup
	mov	x0, x19
	bl	_napi_disable
LBB0_22:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	str	xzr, [x19, #88]
	mov	w8, #1
	stp	w22, w8, [x19, #60]
	ldp	w2, w1, [x20, #12]
	add	x0, sp, #44
	bl	_memcpy
	ldrsh	w8, [sp, #46]
Lloh18:
	adrp	x9, _IBMVETH_BUF_VALID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IBMVETH_BUF_VALID@GOTPAGEOFF]
	str	w8, [sp, #44]
Lloh20:
	ldr	w8, [x9]
	ldr	w9, [x19, #56]
	orr	w22, w9, w8
	ldr	x23, [x19, #80]
	ldr	x8, [x19, #104]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldr	x8, [x19, #96]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldr	x8, [x19, #72]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
Lloh27:
	adrp	x8, _VIO_IRQ_DISABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VIO_IRQ_DISABLE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_h_vio_signal
	ldr	w3, [sp, #44]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_ibmveth_register_logical_lan
Lloh30:
	adrp	x8, _H_SUCCESS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _H_SUCCESS@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_31
; %bb.24:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.25:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	w8, [x24]
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_32
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	add	x0, x9, x22
	ldr	x9, [x0]
	cbz	x9, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	bl	_ibmveth_alloc_buffer_pool
	cbz	x0, LBB0_26
; %bb.30:
Lloh33:
	adrp	x1, l_.str.9@PAGE
Lloh34:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	x8, [x19, #32]
	str	xzr, [x8, x22]
	b	LBB0_19
LBB0_31:
	str	x0, [sp]
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldp	x9, x8, [x19, #40]
	ldr	w10, [sp, #44]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x10, [sp, #16]
	stp	x8, x9, [sp]
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh39:
	adrp	x8, _ENONET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENONET@GOTPAGEOFF]
	b	LBB0_20
LBB0_32:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.10@PAGE
Lloh42:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldp	w0, w3, [x20, #4]
Lloh43:
	adrp	x1, _ibmveth_interrupt@GOTPAGE
Lloh44:
	ldr	x1, [x1, _ibmveth_interrupt@GOTPAGEOFF]
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_35
; %bb.33:
	ldr	w8, [x20, #4]
	stp	x8, x0, [sp]
Lloh45:
	adrp	x1, l_.str.11@PAGE
Lloh46:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh47:
	adrp	x20, _H_BUSY@GOTPAGE
Lloh48:
	ldr	x20, [x20, _H_BUSY@GOTPAGEOFF]
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	bl	_h_free_logical_lan
	mov	x21, x0
	bl	_H_IS_LONG_BUSY
	ldr	w8, [x20]
	cmp	x0, #0
	ccmp	w21, w8, #4, eq
	b.eq	LBB0_34
	b	LBB0_21
LBB0_35:
	ldr	w8, [x20]
Lloh49:
	adrp	x22, _IBMVETH_BUFF_OH@GOTPAGE
Lloh50:
	ldr	x22, [x22, _IBMVETH_BUFF_OH@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w0, w9, w8
	ldr	w1, [x25]
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_38
; %bb.36:
	mov	x1, x0
	ldr	x0, [x19, #24]
	ldr	w8, [x20]
	ldr	w9, [x22]
	add	w2, w9, w8
	ldr	w3, [x26]
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_dma_mapping_error
	cbz	x0, LBB0_40
; %bb.37:
Lloh51:
	adrp	x1, l_.str.13@PAGE
Lloh52:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_39
LBB0_38:
Lloh53:
	adrp	x1, l_.str.12@PAGE
Lloh54:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_39:
	mov	x0, x20
	bl	_netdev_err
Lloh55:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w0, [x20, #4]
	mov	x1, x20
	bl	_free_irq
	b	LBB0_21
LBB0_40:
Lloh58:
	adrp	x1, l_.str.14@PAGE
Lloh59:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldr	w0, [x20, #4]
	mov	x1, x20
	bl	_ibmveth_interrupt
	mov	x0, x20
	bl	_netif_start_queue
Lloh60:
	adrp	x1, l_.str.15@PAGE
Lloh61:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	mov	w21, #0
	b	LBB0_22
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open starting\n"

	.comm	_IBMVETH_NUM_BUFF_POOLS,4,2     ; @IBMVETH_NUM_BUFF_POOLS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"unable to allocate filter or buffer list pages\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"unable to allocate rx queue pages\n"

	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
l_.str.3:                               ; @.str.3
	.asciz	"unable to map filter or buffer list pages\n"

	.comm	_IBMVETH_BUF_VALID,4,2          ; @IBMVETH_BUF_VALID
l_.str.4:                               ; @.str.4
	.asciz	"buffer list @ 0x%p\n"

l_.str.5:                               ; @.str.5
	.asciz	"filter list @ 0x%p\n"

l_.str.6:                               ; @.str.6
	.asciz	"receive q   @ 0x%p\n"

	.comm	_VIO_IRQ_DISABLE,4,2            ; @VIO_IRQ_DISABLE
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
l_.str.7:                               ; @.str.7
	.asciz	"h_register_logical_lan failed with %ld\n"

l_.str.8:                               ; @.str.8
	.asciz	"buffer TCE:0x%llx filter TCE:0x%llx rxq desc:0x%llx MAC:0x%llx\n"

	.comm	_ENONET,4,2                     ; @ENONET
l_.str.9:                               ; @.str.9
	.asciz	"unable to alloc pool\n"

l_.str.10:                              ; @.str.10
	.asciz	"registering irq 0x%x\n"

l_.str.11:                              ; @.str.11
	.asciz	"unable to request irq 0x%x, rc %d\n"

	.comm	_H_BUSY,4,2                     ; @H_BUSY
	.comm	_IBMVETH_BUFF_OH,4,2            ; @IBMVETH_BUFF_OH
l_.str.12:                              ; @.str.12
	.asciz	"unable to allocate bounce buffer\n"

l_.str.13:                              ; @.str.13
	.asciz	"unable to map bounce buffer\n"

l_.str.14:                              ; @.str.14
	.asciz	"initial replenish cycle\n"

l_.str.15:                              ; @.str.15
	.asciz	"open complete\n"

	.no_dead_strip	_ibmveth_open
.subsections_via_symbols
