	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_nic_vport_update_local_lb ## -- Begin function mlx5_nic_vport_update_local_lb
	.p2align	4, 0x90
_mlx5_nic_vport_update_local_lb:        ## @mlx5_nic_vport_update_local_lb
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_modify_nic_vport_context_in@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %ebx
	movq	_disable_local_lb_mc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_disable_local_lb_uc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	movq	_nic_vport_context@GOTPCREL(%rip), %r14
	movl	4(%r14), %edx
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%bl
	movq	%rax, %rsi
	movl	%ebx, %ecx
	callq	_MLX5_SET
	movl	(%r15), %edi
	movl	(%r14), %edx
	movq	%r13, %rsi
	movl	%ebx, %ecx
	callq	_MLX5_SET
	movq	_disable_local_lb_mc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movq	_field_select@GOTPCREL(%rip), %rax
	movl	4(%rax), %edx
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
LBB0_7:
	movq	_disable_local_lb_uc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	movq	_field_select@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
LBB0_9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_mlx5_modify_nic_vport_context
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx5_core_dbg
LBB0_11:
	movq	%r13, %rdi
	callq	_kvfree
	jmp	LBB0_12
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_modify_nic_vport_context_in,4,2 ## @modify_nic_vport_context_in
	.comm	_disable_local_lb_mc,4,2        ## @disable_local_lb_mc
	.comm	_disable_local_lb_uc,4,2        ## @disable_local_lb_uc
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nic_vport_context,8,2          ## @nic_vport_context
	.comm	_field_select,8,2               ## @field_select
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s local_lb\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_nic_vport_update_local_lb ; -- Begin function mlx5_nic_vport_update_local_lb
	.p2align	2
_mlx5_nic_vport_update_local_lb:        ; @mlx5_nic_vport_update_local_lb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _modify_nic_vport_context_in@GOTPAGE
Lloh1:
	ldr	x24, [x24, _modify_nic_vport_context_in@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_MLX5_ST_SZ_BYTES
	mov	x21, x0
Lloh2:
	adrp	x25, _disable_local_lb_mc@GOTPAGE
Lloh3:
	ldr	x25, [x25, _disable_local_lb_mc@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _disable_local_lb_uc@GOTPAGE
Lloh5:
	ldr	x8, [x8, _disable_local_lb_uc@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_11
LBB0_2:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kvzalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x22, x0
	ldr	w0, [x24]
Lloh10:
	adrp	x26, _nic_vport_context@GOTPAGE
Lloh11:
	ldr	x26, [x26, _nic_vport_context@GOTPAGEOFF]
	ldr	w2, [x26, #4]
	cmp	w20, #0
	cset	w23, eq
	mov	x1, x22
	mov	x3, x23
	bl	_MLX5_SET
	ldr	w0, [x24]
	ldr	w2, [x26]
	mov	x1, x22
	mov	x3, x23
	bl	_MLX5_SET
	ldr	w1, [x25]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
Lloh12:
	adrp	x23, _field_select@GOTPAGE
Lloh13:
	ldr	x23, [x23, _field_select@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x24]
	ldr	w2, [x23, #4]
	mov	x1, x22
	mov	w3, #1
	bl	_MLX5_SET
LBB0_5:
Lloh14:
	adrp	x8, _disable_local_lb_uc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _disable_local_lb_uc@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x24]
	ldr	w2, [x23]
	mov	x1, x22
	mov	w3, #1
	bl	_MLX5_SET
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_mlx5_modify_nic_vport_context
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, l_.str.1@PAGE
Lloh18:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh19:
	adrp	x9, l_.str.2@PAGE
Lloh20:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_dbg
LBB0_9:
	mov	x0, x22
	bl	_kvfree
	b	LBB0_12
LBB0_10:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_modify_nic_vport_context_in,4,2 ; @modify_nic_vport_context_in
	.comm	_disable_local_lb_mc,4,2        ; @disable_local_lb_mc
	.comm	_disable_local_lb_uc,4,2        ; @disable_local_lb_uc
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nic_vport_context,8,2          ; @nic_vport_context
	.comm	_field_select,8,2               ; @field_select
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s local_lb\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

.subsections_via_symbols
