	.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
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	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_1
## %bb.2:
	movq	72(%r13), %rcx
	cmpl	$5, %eax
	jae	LBB0_4
## %bb.3:
	movl	$1, %ebx
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_1:
	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	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_get_zeroed_page
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	(%r12), %edi
	callq	_get_zeroed_page
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%r12, %rax
	movq	96(%r13), %r12
	leal	(,%rbx,4), %esi
	movl	%esi, 24(%r13)
	movq	%r13, %rdx
	addq	$36, %rdx
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_dma_alloc_coherent
	movl	%eax, 40(%r13)
	testl	%eax, %eax
	je	LBB0_44
## %bb.14:
	movq	8(%r13), %rsi
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_dma_map_single
	movq	%rax, 56(%r13)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_43
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_46
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_45
LBB0_16:
	movq	16(%r13), %rsi
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_dma_map_single
	movq	%rax, 64(%r13)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rbx
	jmp	LBB0_42
LBB0_18:
	movq	$0, 48(%r13)
	movl	%ebx, 28(%r13)
	movl	$1, 32(%r13)
	movl	12(%r15), %edi
	callq	_ibmveth_encode_mac_addr
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_IBMVETH_BUF_VALID@GOTPCREL(%rip), %rax
	movl	24(%r13), %ebx
	orl	(%rax), %ebx
	movq	8(%r13), %rdx
	movl	36(%r13), %r14d
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	16(%r13), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	40(%r13), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	96(%r13), %rax
	movl	4(%rax), %edi
	movq	_VIO_IRQ_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_h_vio_signal
	shlq	$32, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	orq	%rbx, %r14
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_ibmveth_register_logical_lan
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_48
## %bb.19:
	movq	_IBMVETH_NUM_BUFF_POOLS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_25
## %bb.20:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	(%r14), %eax
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	72(%r13), %rdi
	cmpq	$0, (%rdi,%rbx)
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	addq	%rbx, %rdi
	callq	_ibmveth_alloc_buffer_pool
	testq	%rax, %rax
	je	LBB0_23
## %bb.49:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.10(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	72(%r13), %rax
	movq	$0, (%rax,%rbx)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_48:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	56(%r13), %rdx
	movq	64(%r13), %rcx
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ENONET@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_40:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rbx
LBB0_41:
	movq	64(%r13), %rsi
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_dma_unmap_single
LBB0_42:
	movq	56(%r13), %rsi
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_dma_unmap_single
LBB0_43:
	movl	40(%r13), %edx
	movl	24(%r13), %esi
	movl	36(%r13), %ecx
	movq	%r12, %rdi
	callq	_dma_free_coherent
LBB0_44:
	movq	16(%r13), %rdi
	callq	_free_page
LBB0_45:
	movq	8(%r13), %rdi
	callq	_free_page
LBB0_46:
	movq	%r13, %rdi
	callq	_napi_disable
LBB0_47:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	4(%r15), %edx
	leaq	L_.str.11(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	4(%r15), %edi
	movl	8(%r15), %ecx
	movq	_ibmveth_interrupt@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_31
## %bb.26:
	movl	4(%r15), %edx
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %r15d
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_H_BUSY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	96(%r13), %rax
	movl	4(%rax), %edi
	callq	_h_free_logical_lan
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	jne	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpq	(%r14), %rbx
	je	LBB0_27
## %bb.29:
	movl	%r15d, %r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_31:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	_IBMVETH_BUFF_OH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 80(%r13)
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_34
## %bb.32:
	movq	96(%r13), %rdi
	movl	(%rbx), %edx
	addl	(%r15), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rsi
	callq	_dma_map_single
	movq	%rax, 88(%r13)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_50
## %bb.33:
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	80(%r13), %rdi
	callq	_kfree
LBB0_34:
	movl	4(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
LBB0_35:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_41
## %bb.36:
	movl	%eax, %ebx
	leaq	1(%rbx), %r15
	shlq	$4, %rbx
	addq	$-16, %rbx
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_37 Depth=1
	decq	%r15
	addq	$-16, %rbx
	cmpq	$1, %r15
	jbe	LBB0_40
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	72(%r13), %rsi
	cmpq	$0, (%rsi,%rbx)
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_ibmveth_free_buffer_pool
	jmp	LBB0_39
LBB0_50:
	leaq	L_.str.14(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	4(%r15), %edi
	movq	%r15, %rsi
	callq	_ibmveth_interrupt
	movq	%r15, %rdi
	callq	_netif_start_queue
	leaq	L_.str.15(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	jmp	LBB0_47
	.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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"unable to allocate list pages\n"

L_.str.2:                               ## @.str.2
	.asciz	"unable to allocate filter pages\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"unable to map filter list pages\n"

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

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

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

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

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

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

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

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

	.comm	_H_BUSY,8,3                     ## @H_BUSY
	.comm	_IBMVETH_BUFF_OH,4,2            ## @IBMVETH_BUFF_OH
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	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
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, #72]
	cmp	w8, #9
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w27, #1
	b	LBB0_7
LBB0_3:
	mov	w27, #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	w27, 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	w27, w27, w10
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
Lloh6:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
	ldr	w8, [x25]
	neg	w22, w8
Lloh8:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_get_zeroed_page
	str	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.10:
	ldr	w0, [x26]
	bl	_get_zeroed_page
	str	x0, [x19, #16]
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x21, [x19, #96]
	lsl	w1, w27, #2
	str	w1, [x19, #24]
	add	x2, x19, #36
	ldr	w3, [x26]
	mov	x0, x21
	bl	_dma_alloc_coherent
	str	w0, [x19, #40]
	cbz	w0, LBB0_43
; %bb.12:
	ldr	x1, [x19, #8]
Lloh10:
	adrp	x23, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x21
	mov	w2, #4096
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x19, #56]
	mov	x0, x21
	bl	_dma_mapping_error
	cbz	x0, LBB0_16
; %bb.13:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_42
LBB0_14:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_45
LBB0_15:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_44
LBB0_16:
	ldr	x1, [x19, #16]
	ldr	w3, [x23]
	mov	x0, x21
	mov	w2, #4096
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x19, #64]
	mov	x0, x21
	bl	_dma_mapping_error
	cbz	x0, LBB0_18
; %bb.17:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_41
LBB0_18:
	str	xzr, [x19, #48]
	mov	w8, #1
	stp	w27, w8, [x19, #28]
	ldr	w0, [x20, #12]
	bl	_ibmveth_encode_mac_addr
	mov	x22, x0
Lloh20:
	adrp	x8, _IBMVETH_BUF_VALID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IBMVETH_BUF_VALID@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w27, w9, w8
	ldr	x8, [x19, #8]
	ldr	w28, [x19, #36]
	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, #16]
	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	w8, [x19, #40]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldr	x8, [x19, #96]
	ldr	w0, [x8, #4]
Lloh29:
	adrp	x8, _VIO_IRQ_DISABLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VIO_IRQ_DISABLE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_h_vio_signal
	mov	x1, x27
	bfi	x1, x28, #32, #32
	mov	x0, x19
	mov	x2, x22
	bl	_ibmveth_register_logical_lan
Lloh32:
	adrp	x8, _H_SUCCESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _H_SUCCESS@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.19:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.20:
	mov	x22, #0
	mov	x27, #0
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x24]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x27, x27, #1
	add	x22, x22, #16
	cmp	x27, w8, sxtw
	b.ge	LBB0_28
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #72]
	add	x0, x9, x22
	ldr	x9, [x0]
	cbz	x9, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	bl	_ibmveth_alloc_buffer_pool
	cbz	x0, LBB0_21
; %bb.25:
Lloh35:
	adrp	x1, l_.str.10@PAGE
Lloh36:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	x8, [x19, #72]
	str	xzr, [x8, x22]
	ldr	w8, [x25]
	neg	w22, w8
	b	LBB0_35
LBB0_26:
	str	x0, [sp]
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldp	x8, x9, [x19, #56]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	stp	x27, x22, [sp, #16]
	stp	x8, x9, [sp]
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh41:
	adrp	x8, _ENONET@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENONET@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_40
LBB0_27:
	mov	w27, #0
LBB0_28:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh44:
	adrp	x1, l_.str.11@PAGE
Lloh45:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	ldp	w0, w3, [x20, #4]
Lloh46:
	adrp	x1, _ibmveth_interrupt@GOTPAGE
Lloh47:
	ldr	x1, [x1, _ibmveth_interrupt@GOTPAGEOFF]
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_31
; %bb.29:
	mov	x22, x0
	ldr	w8, [x20, #4]
	stp	x8, x22, [sp]
Lloh48:
	adrp	x1, l_.str.12@PAGE
Lloh49:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh50:
	adrp	x24, _H_BUSY@GOTPAGE
Lloh51:
	ldr	x24, [x24, _H_BUSY@GOTPAGEOFF]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #96]
	ldr	w0, [x8, #4]
	bl	_h_free_logical_lan
	mov	x20, x0
	bl	_H_IS_LONG_BUSY
	ldr	x8, [x24]
	cmp	x0, #0
	ccmp	x20, x8, #4, eq
	b.eq	LBB0_30
	b	LBB0_35
LBB0_31:
	ldr	w22, [x25]
	ldr	w8, [x20]
Lloh52:
	adrp	x24, _IBMVETH_BUFF_OH@GOTPAGE
Lloh53:
	ldr	x24, [x24, _IBMVETH_BUFF_OH@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w0, w9, w8
	ldr	w1, [x26]
	bl	_kmalloc
	str	x0, [x19, #80]
	cbz	x0, LBB0_34
; %bb.32:
	mov	x1, x0
	ldr	x0, [x19, #96]
	ldr	w8, [x20]
	ldr	w9, [x24]
	add	w2, w9, w8
	ldr	w3, [x23]
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x19, #88]
	mov	x0, x21
	bl	_dma_mapping_error
	cbz	x0, LBB0_47
; %bb.33:
Lloh54:
	adrp	x1, l_.str.13@PAGE
Lloh55:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	x0, [x19, #80]
	bl	_kfree
LBB0_34:
	neg	w22, w22
	ldr	w0, [x20, #4]
	mov	x1, x20
	bl	_free_irq
LBB0_35:
	cmp	w27, #1
	b.lt	LBB0_40
; %bb.36:
	mov	w8, w27
	add	x20, x8, #1
	lsl	x8, x8, #4
	sub	x24, x8, #16
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	sub	x20, x20, #1
	sub	x24, x24, #16
	cmp	x20, #1
	b.ls	LBB0_40
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #72]
	add	x1, x8, x24
	ldr	x8, [x1]
	cbz	x8, LBB0_37
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	mov	x0, x19
	bl	_ibmveth_free_buffer_pool
	b	LBB0_37
LBB0_40:
	ldr	x1, [x19, #64]
	ldr	w3, [x23]
	mov	x0, x21
	mov	w2, #4096
	bl	_dma_unmap_single
LBB0_41:
	ldr	x1, [x19, #56]
	ldr	w3, [x23]
	mov	x0, x21
	mov	w2, #4096
	bl	_dma_unmap_single
LBB0_42:
	ldr	w1, [x19, #24]
	ldp	w3, w2, [x19, #36]
	mov	x0, x21
	bl	_dma_free_coherent
LBB0_43:
	ldr	x0, [x19, #16]
	bl	_free_page
LBB0_44:
	ldr	x0, [x19, #8]
	bl	_free_page
LBB0_45:
	mov	x0, x19
	bl	_napi_disable
LBB0_46:
	mov	x0, x22
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_47:
Lloh56:
	adrp	x1, l_.str.14@PAGE
Lloh57:
	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
Lloh58:
	adrp	x1, l_.str.15@PAGE
Lloh59:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
	mov	w22, #0
	b	LBB0_46
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.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	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"unable to allocate list pages\n"

l_.str.2:                               ; @.str.2
	.asciz	"unable to allocate filter pages\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"unable to map filter list pages\n"

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

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

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

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

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

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

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

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

	.comm	_H_BUSY,8,3                     ; @H_BUSY
	.comm	_IBMVETH_BUFF_OH,4,2            ; @IBMVETH_BUFF_OH
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
