	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mlxsw_sp2_afk_block_value_set
___mlxsw_sp2_afk_block_value_set:       ## @__mlxsw_sp2_afk_block_value_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	testl	%esi, %esi
	js	LBB0_1
## %bb.2:
	movq	_mlxsw_sp2_afk_blocks_layout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setle	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_mlxsw_sp2_afk_blocks_layout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movslq	(%rax,%rcx,8), %rdx
	addq	%rdx, %r15
	leaq	(%rax,%rcx,8), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___mlxsw_item_set64             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp2_afk_blocks_layout,8,3 ## @mlxsw_sp2_afk_blocks_layout
	.no_dead_strip	___mlxsw_sp2_afk_block_value_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mlxsw_sp2_afk_block_value_set
___mlxsw_sp2_afk_block_value_set:       ; @__mlxsw_sp2_afk_block_value_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _mlxsw_sp2_afk_blocks_layout@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mlxsw_sp2_afk_blocks_layout@GOTPAGEOFF]
	tbnz	w1, #31, LBB0_3
; %bb.1:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, w21
	cset	w0, le
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	x8, [x22]
	add	x1, x8, w21, sxtw #3
	ldrsw	x8, [x1], #4
	add	x0, x20, x8
	mov	w2, #0
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	___mlxsw_item_set64
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp2_afk_blocks_layout,8,3 ; @mlxsw_sp2_afk_blocks_layout
	.no_dead_strip	___mlxsw_sp2_afk_block_value_set
.subsections_via_symbols
