	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_fid_flood_set         ## -- Begin function mlxsw_sp_fid_flood_set
	.p2align	4, 0x90
_mlxsw_sp_fid_flood_set:                ## @mlxsw_sp_fid_flood_set
	.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
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	16(%r14), %r15
	cmpl	$0, 8(%r14)
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mlxsw_sp_fid_flood_table_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	_MLXSW_REG_SFTR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movl	4(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	*(%r15)
	movl	(%r13), %ecx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rsp)
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movl	$1, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_mlxsw_reg_sftr_pack
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	_sftr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_mlxsw_reg_write
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_MLXSW_REG_SFTR_LEN,4,2         ## @MLXSW_REG_SFTR_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sftr,4,2                       ## @sftr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_fid_flood_set         ; -- Begin function mlxsw_sp_fid_flood_set
	.p2align	2
_mlxsw_sp_fid_flood_set:                ; @mlxsw_sp_fid_flood_set
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x25, [x0]
	ldr	x26, [x25, #16]
	ldr	w8, [x25, #8]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x26]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_6:
	mov	x0, x21
	mov	x1, x22
	bl	_mlxsw_sp_fid_flood_table_lookup
	cbz	x0, LBB0_9
; %bb.7:
	mov	x23, x0
Lloh2:
	adrp	x8, _MLXSW_REG_SFTR_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXSW_REG_SFTR_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x22, x0
	ldr	w24, [x23, #4]
	ldr	x8, [x26]
	mov	x0, x21
	blr	x8
	mov	x2, x0
	ldr	w3, [x23]
	mov	x0, x22
	mov	x1, x24
	mov	w4, #1
	mov	x5, x20
	mov	x6, x19
	bl	_mlxsw_reg_sftr_pack
	ldr	x8, [x25]
	ldr	w19, [x8]
Lloh8:
	adrp	x8, _sftr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sftr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_mlxsw_reg_write
	mov	x19, x0
	mov	x0, x22
	bl	_kfree
	mov	x0, x19
	b	LBB0_4
LBB0_9:
Lloh11:
	adrp	x8, _ESRCH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_MLXSW_REG_SFTR_LEN,4,2         ; @MLXSW_REG_SFTR_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sftr,4,2                       ; @sftr
.subsections_via_symbols
