	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_vf_rep_create              ## -- Begin function lio_vf_rep_create
	.p2align	4, 0x90
_lio_vf_rep_create:                     ## @lio_vf_rep_create
	.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), %rdx
	movq	_DEVLINK_ESWITCH_MODE_SWITCHDEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	jne	LBB0_17
## %bb.1:
	cmpl	$0, 52(%rdi)
	je	LBB0_17
## %bb.2:
	movl	48(%rdi), %eax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$0, 16(%rdi)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$48, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movq	_LIO_MIN_MTU_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_LIO_MAX_MTU_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_lio_vf_rep_ndev_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r13)
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r13, 40(%rbx)
	movq	%r12, 32(%rbx)
	movq	40(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	8(%r12), %eax
	shll	$6, %eax
	addl	%r14d, %eax
	incl	%eax
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	callq	_eth_hw_addr_random
	movq	%r13, %rdi
	callq	_register_netdev
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%r14), %r15
	movq	%r13, %rdi
	callq	_netif_carrier_off
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	addq	$8, %r14
	movq	_lio_vf_rep_fetch_stats@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_DELAYED_WORK
	movq	%rbx, 16(%rbx)
	movq	_LIO_VF_REP_STATS_POLL_TIME_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	incl	16(%r12)
	movq	24(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, (%rax,%rcx,8)
	movq	%r15, %r14
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_9:
	movq	_OPCODE_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPCODE_NIC_VF_REP_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_lio_vf_rep_pkt_recv@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r12, %r8
	callq	_octeon_register_dispatch_fn
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_17
## %bb.10:
	movq	32(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_5:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	32(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_7:
	movq	32(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
	callq	_free_netdev
LBB0_11:
	movl	16(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rcx
	movq	(%rcx,%rbx,8), %r14
	movq	$0, (%rcx,%rbx,8)
	testq	%r14, %r14
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	callq	_netdev_priv
	leaq	8(%rax), %rdi
	callq	_cancel_delayed_work_sync
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	%r14, %rdi
	callq	_free_netdev
	movl	16(%r12), %eax
	jmp	LBB0_15
LBB0_16:
	movl	$0, 16(%r12)
	movl	$-1, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVLINK_ESWITCH_MODE_SWITCHDEV,8,3 ## @DEVLINK_ESWITCH_MODE_SWITCHDEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF rep device %d creation failed\n"

	.comm	_LIO_MIN_MTU_SIZE,4,2           ## @LIO_MIN_MTU_SIZE
	.comm	_LIO_MAX_MTU_SIZE,4,2           ## @LIO_MAX_MTU_SIZE
	.comm	_lio_vf_rep_ndev_ops,4,2        ## @lio_vf_rep_ndev_ops
L_.str.1:                               ## @.str.1
	.asciz	"VF rep nerdev registration failed\n"

	.comm	_lio_vf_rep_fetch_stats,4,2     ## @lio_vf_rep_fetch_stats
	.comm	_LIO_VF_REP_STATS_POLL_TIME_MS,4,2 ## @LIO_VF_REP_STATS_POLL_TIME_MS
	.comm	_OPCODE_NIC,4,2                 ## @OPCODE_NIC
	.comm	_OPCODE_NIC_VF_REP_PKT,4,2      ## @OPCODE_NIC_VF_REP_PKT
	.comm	_lio_vf_rep_pkt_recv,4,2        ## @lio_vf_rep_pkt_recv
L_.str.2:                               ## @.str.2
	.asciz	"VF rep Dispatch func registration failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_vf_rep_create              ; -- Begin function lio_vf_rep_create
	.p2align	2
_lio_vf_rep_create:                     ; @lio_vf_rep_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DEVLINK_ESWITCH_MODE_SWITCHDEV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEVLINK_ESWITCH_MODE_SWITCHDEV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #52]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	w23, [x19, #48]
	str	wzr, [x19, #16]
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x25, #0
Lloh3:
	adrp	x26, _LIO_MAX_MTU_SIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _LIO_MAX_MTU_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x27, _lio_vf_rep_ndev_ops@GOTPAGE
Lloh6:
	ldr	x27, [x27, _lio_vf_rep_ndev_ops@GOTPAGEOFF]
Lloh7:
	adrp	x28, _LIO_VF_REP_STATS_POLL_TIME_MS@GOTPAGE
Lloh8:
	ldr	x28, [x28, _LIO_VF_REP_STATS_POLL_TIME_MS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #48
	bl	_alloc_etherdev
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
Lloh9:
	adrp	x8, _LIO_MIN_MTU_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LIO_MIN_MTU_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x26]
	stp	w9, w8, [x0, #8]
	str	x27, [x0]
	bl	_netdev_priv
	mov	x21, x0
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	stp	x19, x20, [x21, #32]
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	str	w8, [x21, #24]
	ldr	w8, [x19, #8]
	add	w8, w25, w8, lsl #6
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x20
	bl	_eth_hw_addr_random
	mov	x0, x20
	bl	_register_netdev
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x25, #1
	mov	x0, x20
	bl	_netif_carrier_off
	add	x22, x21, #8
Lloh12:
	adrp	x8, _lio_vf_rep_fetch_stats@GOTPAGE
Lloh13:
	ldr	x8, [x8, _lio_vf_rep_fetch_stats@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_INIT_DELAYED_WORK
	str	x21, [x21, #16]
	ldr	w0, [x28]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x22
	bl	_schedule_delayed_work
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x19, #24]
	str	x20, [x8, x25, lsl #3]
	mov	x25, x24
	cmp	x23, x24
	b.ne	LBB0_4
LBB0_7:
Lloh15:
	adrp	x8, _OPCODE_NIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OPCODE_NIC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _OPCODE_NIC_VF_REP_PKT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OPCODE_NIC_VF_REP_PKT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _lio_vf_rep_pkt_recv@GOTPAGE
Lloh22:
	ldr	x8, [x8, _lio_vf_rep_pkt_recv@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, x19
	bl	_octeon_register_dispatch_fn
	cbz	x0, LBB0_19
; %bb.8:
	ldr	x0, [x19, #32]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_19
LBB0_10:
	ldr	x0, [x19, #32]
	str	x25, [sp]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	bl	_dev_err
	b	LBB0_13
LBB0_12:
	ldr	x0, [x19, #32]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_free_netdev
LBB0_13:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:
	mov	x21, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	lsl	x10, x21, #3
	ldr	x20, [x9, x10]
	str	xzr, [x9, x10]
	cbz	x20, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	bl	_netdev_priv
	add	x0, x0, #8
	bl	_cancel_delayed_work_sync
	mov	x0, x20
	bl	_unregister_netdev
	mov	x0, x20
	bl	_free_netdev
	ldr	w8, [x19, #16]
	b	LBB0_15
LBB0_18:
	str	wzr, [x19, #16]
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVLINK_ESWITCH_MODE_SWITCHDEV,8,3 ; @DEVLINK_ESWITCH_MODE_SWITCHDEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF rep device %d creation failed\n"

	.comm	_LIO_MIN_MTU_SIZE,4,2           ; @LIO_MIN_MTU_SIZE
	.comm	_LIO_MAX_MTU_SIZE,4,2           ; @LIO_MAX_MTU_SIZE
	.comm	_lio_vf_rep_ndev_ops,4,2        ; @lio_vf_rep_ndev_ops
l_.str.1:                               ; @.str.1
	.asciz	"VF rep nerdev registration failed\n"

	.comm	_lio_vf_rep_fetch_stats,4,2     ; @lio_vf_rep_fetch_stats
	.comm	_LIO_VF_REP_STATS_POLL_TIME_MS,4,2 ; @LIO_VF_REP_STATS_POLL_TIME_MS
	.comm	_OPCODE_NIC,4,2                 ; @OPCODE_NIC
	.comm	_OPCODE_NIC_VF_REP_PKT,4,2      ; @OPCODE_NIC_VF_REP_PKT
	.comm	_lio_vf_rep_pkt_recv,4,2        ; @lio_vf_rep_pkt_recv
l_.str.2:                               ; @.str.2
	.asciz	"VF rep Dispatch func registration failed\n"

.subsections_via_symbols
