	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mlxsw_sp_sb_cms_init
___mlxsw_sp_sb_cms_init:                ## @__mlxsw_sp_sb_cms_init
	.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	$40, %rsp
	.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
	testq	%r8, %r8
	je	LBB0_12
## %bb.1:
	movq	%r8, %r14
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	xorl	%edi, %edi
	cmpl	%r15d, (%rax,%rcx,4)
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	addq	$24, %rbx
	cmpq	%r12, %r14
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$8, %r12
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MLXSW_REG_SBXX_DIR_INGRESS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_11
	jmp	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rsi
	movq	%r13, %rdi
	callq	_mlxsw_sp_bytes_cells
	movq	%rax, %rcx
	movq	(%rbx), %rsi
	movq	%r13, %r14
	movq	16(%rbx), %r13
	movq	_MLXSW_SP_SB_INFI@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, (%rsp)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_mlxsw_sp_sb_pool_is_static
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mlxsw_sp_bytes_cells
	movq	%rax, %r13
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	xorl	%r9d, %r9d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_mlxsw_sp_sb_cm_write
	movq	%r14, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_11
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,4,2 ## @MLXSW_REG_SBXX_DIR_INGRESS
	.comm	_MLXSW_SP_SB_INFI,8,3           ## @MLXSW_SP_SB_INFI
	.no_dead_strip	___mlxsw_sp_sb_cms_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mlxsw_sp_sb_cms_init
___mlxsw_sp_sb_cms_init:                ; @__mlxsw_sp_sb_cms_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x4, LBB0_11
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x24, #0
	ldr	x27, [x0]
Lloh0:
	adrp	x28, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w21
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x20, x20, #24
	cmp	x19, x24
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x24, #8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cmp	w8, w21
	b.eq	LBB0_3
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20, #8]
	mov	x0, x23
	bl	_mlxsw_sp_bytes_cells
	mov	x25, x0
	ldr	x26, [x20, #16]
Lloh2:
	adrp	x8, _MLXSW_SP_SB_INFI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXSW_SP_SB_INFI@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x6, [x20]
	mov	x0, x23
	cmp	x26, x8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	mov	x4, #0
	mov	w5, #1
	bl	_mlxsw_sp_sb_cm_write
	cbz	w0, LBB0_3
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x6
	bl	_mlxsw_sp_sb_pool_is_static
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_mlxsw_sp_bytes_cells
	mov	x26, x0
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x6, [x20]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	mov	w5, #0
	bl	_mlxsw_sp_sb_cm_write
	cbz	w0, LBB0_3
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,4,2 ; @MLXSW_REG_SBXX_DIR_INGRESS
	.comm	_MLXSW_SP_SB_INFI,8,3           ; @MLXSW_SP_SB_INFI
	.no_dead_strip	___mlxsw_sp_sb_cms_init
.subsections_via_symbols
