	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_vport_rep_load
_mlx5_ib_vport_rep_load:                ## @mlx5_ib_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, %r14
	movq	%rdi, %rbx
	callq	_mlx5_eswitch_get_total_vports
	movl	%eax, %r12d
	movq	(%r14), %rax
	movq	_MLX5_VPORT_UPLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	_mlx5_ib_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ib_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ib_alloc_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$16, %esi
	callq	_kcalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	$1, (%r15)
	movslq	8(%r14), %r13
	shlq	$4, %r13
	movq	%r14, 8(%rax,%r13)
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	callq	_mlx5_ib_get_rep_netdev
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%r13)
	movq	%rbx, 8(%r15)
	movl	%r12d, 4(%r15)
	movq	_uplink_rep_profile@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	___mlx5_ib_add
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	16(%r14), %rax
	movq	_REP_IB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r15, (%rax,%rcx,8)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_ib_set_vport_rep          ## TAILCALL
LBB0_5:
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_ib_dealloc_device
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_VPORT_UPLINK,8,3          ## @MLX5_VPORT_UPLINK
	.comm	_uplink_rep_profile,4,2         ## @uplink_rep_profile
	.comm	_mlx5_ib_dev,4,2                ## @mlx5_ib_dev
	.comm	_ib_dev,4,2                     ## @ib_dev
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REP_IB,8,3                     ## @REP_IB
	.no_dead_strip	_mlx5_ib_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 mlx5_ib_vport_rep_load
_mlx5_ib_vport_rep_load:                ; @mlx5_ib_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	x19, x1
	mov	x20, x0
	bl	_mlx5_eswitch_get_total_vports
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MLX5_VPORT_UPLINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_VPORT_UPLINK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _mlx5_ib_dev@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlx5_ib_dev@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ib_dev@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ib_dev@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ib_alloc_device
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #16
	bl	_kcalloc
	str	x0, [x22, #16]
	cbz	x0, LBB0_6
; %bb.3:
	mov	w8, #1
	str	w8, [x22]
	ldrsw	x8, [x19, #8]
	lsl	x23, x8, #4
	add	x8, x0, x23
	str	x19, [x8, #8]
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_mlx5_ib_get_rep_netdev
	ldr	x8, [x22, #16]
	str	w0, [x8, x23]
	str	x20, [x22, #8]
	str	w21, [x22, #4]
Lloh12:
	adrp	x1, _uplink_rep_profile@GOTPAGE
Lloh13:
	ldr	x1, [x1, _uplink_rep_profile@GOTPAGEOFF]
	mov	x0, x22
	bl	___mlx5_ib_add
	cbz	w0, LBB0_8
; %bb.4:
	mov	w0, #0
	ldr	x8, [x19, #16]
Lloh14:
	adrp	x9, _REP_IB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REP_IB@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	str	x22, [x8, x9, lsl #3]
	b	LBB0_10
LBB0_5:
	mov	x0, x20
	mov	x1, 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	_mlx5_ib_set_vport_rep
LBB0_6:
	add	x0, x22, #24
	bl	_ib_dealloc_device
LBB0_7:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_VPORT_UPLINK,8,3          ; @MLX5_VPORT_UPLINK
	.comm	_uplink_rep_profile,4,2         ; @uplink_rep_profile
	.comm	_mlx5_ib_dev,4,2                ; @mlx5_ib_dev
	.comm	_ib_dev,4,2                     ; @ib_dev
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REP_IB,8,3                     ; @REP_IB
	.no_dead_strip	_mlx5_ib_vport_rep_load
.subsections_via_symbols
