	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opa_vnic_add_netdev            ## -- Begin function opa_vnic_add_netdev
	.p2align	4, 0x90
_opa_vnic_add_netdev:                   ## @opa_vnic_add_netdev
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_RDMA_NETDEV_OPA_VNIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ether_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rcx
	callq	*8(%rdi)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, 24(%r13)
	movq	%r12, 16(%r13)
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, 8(%r13)
	movq	%rbx, 48(%rax)
	movq	%r12, 40(%rax)
	movq	%r14, 32(%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r15)
	movq	8(%rbx), %rax
	movq	%rax, 16(%r15)
	movq	_opa_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_IFF_LIVE_ADDR_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	_OPA_VNIC_SKB_HEADROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, (%rbx)
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	callq	_opa_vnic_set_ethtool_ops
	movq	%r15, %rdi
	callq	_opa_vnic_set_pod_values
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_mutex_destroy
	movq	%r15, %rdi
	callq	_mutex_destroy
	movq	%r15, %rdi
	callq	_kfree
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_8:
	movq	%rbx, %rdi
	callq	*(%r13)
	movl	%r12d, %edi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_netif_dormant_on
	leaq	L_.str.1(%rip), %rdi
	callq	_v_info
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_NETDEV_OPA_VNIC,4,2       ## @RDMA_NETDEV_OPA_VNIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"veth%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_ether_setup,4,2                ## @ether_setup
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_opa_netdev_ops,4,2             ## @opa_netdev_ops
	.comm	_IFF_LIVE_ADDR_CHANGE,4,2       ## @IFF_LIVE_ADDR_CHANGE
	.comm	_OPA_VNIC_SKB_HEADROOM,8,3      ## @OPA_VNIC_SKB_HEADROOM
L_.str.1:                               ## @.str.1
	.asciz	"initialized\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opa_vnic_add_netdev            ; -- Begin function opa_vnic_add_netdev
	.p2align	2
_opa_vnic_add_netdev:                   ; @opa_vnic_add_netdev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _RDMA_NETDEV_OPA_VNIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RDMA_NETDEV_OPA_VNIC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
Lloh3:
	adrp	x9, _NET_NAME_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x9]
Lloh6:
	adrp	x9, _ether_setup@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ether_setup@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x9]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	blr	x8
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_CAST
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
	stp	x24, x22, [x20, #8]
	stp	x24, x22, [x0, #32]
	ldr	x8, [x19, #8]
	stp	x8, x23, [x0, #16]
Lloh17:
	adrp	x8, _opa_netdev_ops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _opa_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh19:
	adrp	x8, _IFF_LIVE_ADDR_CHANGE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IFF_LIVE_ADDR_CHANGE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldp	w10, w9, [x19]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _OPA_VNIC_SKB_HEADROOM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _OPA_VNIC_SKB_HEADROOM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	add	w9, w10, w9
	str	x0, [x20, #24]
	str	x19, [x0, #48]
	stp	w9, w8, [x19]
	add	x23, x0, #4
	mov	x0, x23
	bl	_mutex_init
	mov	x0, x21
	bl	_mutex_init
	add	x0, x21, #8
	bl	_spin_lock_init
	ldr	w1, [x22]
	mov	x0, x19
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_opa_vnic_set_ethtool_ops
	mov	x0, x21
	bl	_opa_vnic_set_pod_values
	mov	x0, x19
	bl	_register_netdev
	cbz	w0, LBB0_10
; %bb.6:
	mov	x22, x0
	mov	x0, x23
	bl	_mutex_destroy
	mov	x0, x21
	bl	_mutex_destroy
	mov	x0, x21
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
	mov	x0, x22
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_10:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_netif_dormant_on
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_v_info
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_NETDEV_OPA_VNIC,4,2       ; @RDMA_NETDEV_OPA_VNIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"veth%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_ether_setup,4,2                ; @ether_setup
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_opa_netdev_ops,4,2             ; @opa_netdev_ops
	.comm	_IFF_LIVE_ADDR_CHANGE,4,2       ; @IFF_LIVE_ADDR_CHANGE
	.comm	_OPA_VNIC_SKB_HEADROOM,8,3      ; @OPA_VNIC_SKB_HEADROOM
l_.str.1:                               ; @.str.1
	.asciz	"initialized\n"

.subsections_via_symbols
