	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_vport_rep_load
_mlx5e_vport_rep_load:                  ## @mlx5e_vport_rep_load
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%r15, 16(%rax)
	movq	%r14, %rdi
	callq	_mlx5e_get_max_num_channels
	movq	(%r15), %rcx
	movq	_MLX5_VPORT_UPLINK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rcx
	jne	LBB0_4
## %bb.5:
	movq	_mlx5e_uplink_rep_profile@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_mlx5e_rep_profile@GOTPCREL(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_mlx5e_create_netdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movq	%rax, 8(%r13)
	movq	8(%r15), %rax
	movq	_REP_ETH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r13, (%rax,%rcx,8)
	movq	%r13, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_mlx5e_create_mdev_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_10:
	movq	%r12, %rdi
	callq	_netdev_priv
	movl	%eax, %edi
	callq	_mlx5e_attach_netdev
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	%eax, %ebx
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_12
LBB0_7:
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	%r13, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_15:
	movq	%r13, %rdi
	callq	_mlx5e_rep_neigh_init
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %ebx
	movq	(%r15), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_17
LBB0_18:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_register_devlink_port
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	movl	%eax, %ebx
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_esw_warn
	jmp	LBB0_20
LBB0_21:
	movq	%r12, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %ebx
	movq	(%r15), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_warn
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_unregister_devlink_port
LBB0_20:
	movq	%r13, %rdi
	callq	_mlx5e_rep_neigh_cleanup
LBB0_17:
	movq	%r12, %rdi
	callq	_netdev_priv
	movl	%eax, %edi
	callq	_mlx5e_detach_netdev
LBB0_12:
	movq	(%r15), %rax
	movq	_MLX5_VPORT_UPLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_mlx5e_destroy_mdev_resources
LBB0_14:
	movq	%r12, %rdi
	callq	_netdev_priv
	movl	%eax, %edi
	callq	_mlx5e_destroy_netdev
	movq	%r13, %rdi
	callq	_kfree
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_is_devlink_port_supported
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_devlink_port_type_eth_set
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_VPORT_UPLINK,8,3          ## @MLX5_VPORT_UPLINK
	.comm	_mlx5e_uplink_rep_profile,4,2   ## @mlx5e_uplink_rep_profile
	.comm	_mlx5e_rep_profile,4,2          ## @mlx5e_rep_profile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create representor netdev for vport %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REP_ETH,8,3                    ## @REP_ETH
L_.str.1:                               ## @.str.1
	.asciz	"Failed to attach representor netdev for vport %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to initialized neighbours handling for vport %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to register devlink port %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to register representor netdev for vport %d\n"

	.no_dead_strip	_mlx5e_vport_rep_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_vport_rep_load
_mlx5e_vport_rep_load:                  ; @mlx5e_vport_rep_load
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x21, [x0, #16]
	mov	x0, x20
	bl	_mlx5e_get_max_num_channels
	mov	x2, x0
	ldr	x8, [x21]
Lloh3:
	adrp	x24, _MLX5_VPORT_UPLINK@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MLX5_VPORT_UPLINK@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh5:
	adrp	x10, _mlx5e_rep_profile@GOTPAGE
Lloh6:
	ldr	x10, [x10, _mlx5e_rep_profile@GOTPAGEOFF]
Lloh7:
	adrp	x11, _mlx5e_uplink_rep_profile@GOTPAGE
Lloh8:
	ldr	x11, [x11, _mlx5e_uplink_rep_profile@GOTPAGEOFF]
	cmp	x8, x9
	csel	x1, x11, x10, eq
	mov	x0, x20
	mov	x3, x19
	bl	_mlx5e_create_netdev
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	str	x0, [x19, #8]
	ldr	x8, [x21, #8]
Lloh9:
	adrp	x9, _REP_ETH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REP_ETH@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x19, [x8, x9, lsl #3]
	add	x0, x19, #4
	bl	_INIT_LIST_HEAD
	ldr	x8, [x21]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_mlx5e_create_mdev_resources
	mov	x23, x0
	cbnz	w0, LBB0_19
LBB0_4:
	mov	x0, x22
	bl	_netdev_priv
	bl	_mlx5e_attach_netdev
	cbz	w0, LBB0_9
; %bb.5:
	mov	x23, x0
	ldr	x1, [x21]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	b	LBB0_17
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	x1, [x21]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	mov	x0, x19
	bl	_kfree
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_20
LBB0_9:
	mov	x0, x19
	bl	_mlx5e_rep_neigh_init
	cbz	w0, LBB0_11
; %bb.10:
	mov	x23, x0
	ldr	x1, [x21]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
	b	LBB0_16
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_register_devlink_port
	cbz	w0, LBB0_13
; %bb.12:
	mov	x23, x0
	ldr	x2, [x21]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_esw_warn
	b	LBB0_15
LBB0_13:
	mov	x0, x22
	bl	_register_netdev
	cbz	w0, LBB0_21
; %bb.14:
	mov	x23, x0
	ldr	x1, [x21]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_warn
	mov	x0, x20
	mov	x1, x19
	bl	_unregister_devlink_port
LBB0_15:
	mov	x0, x19
	bl	_mlx5e_rep_neigh_cleanup
LBB0_16:
	mov	x0, x22
	bl	_netdev_priv
	bl	_mlx5e_detach_netdev
LBB0_17:
	ldr	x8, [x21]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_mlx5e_destroy_mdev_resources
LBB0_19:
	mov	x0, x22
	bl	_netdev_priv
	bl	_mlx5e_destroy_netdev
	mov	x0, x19
	bl	_kfree
LBB0_20:
	mov	x0, x23
	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
LBB0_21:
	mov	x0, x20
	mov	x1, x19
	bl	_is_devlink_port_supported
	cbz	x0, LBB0_23
; %bb.22:
	mov	x0, x19
	mov	x1, x22
	bl	_devlink_port_type_eth_set
LBB0_23:
	mov	w23, #0
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_VPORT_UPLINK,8,3          ; @MLX5_VPORT_UPLINK
	.comm	_mlx5e_uplink_rep_profile,4,2   ; @mlx5e_uplink_rep_profile
	.comm	_mlx5e_rep_profile,4,2          ; @mlx5e_rep_profile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create representor netdev for vport %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REP_ETH,8,3                    ; @REP_ETH
l_.str.1:                               ; @.str.1
	.asciz	"Failed to attach representor netdev for vport %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to initialized neighbours handling for vport %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to register devlink port %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to register representor netdev for vport %d\n"

	.no_dead_strip	_mlx5e_vport_rep_load
.subsections_via_symbols
