	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_sb_pms_init
_mlxsw_sp_sb_pms_init:                  ## @mlxsw_sp_sb_pms_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_mlxsw_sp_sb_pm_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	_MLXSW_REG_SBXX_DIR_INGRESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12,%rbx,8), %esi
	movq	%r13, %rdi
	callq	_mlxsw_sp_bytes_cells
	movl	%eax, %r15d
	movl	(%r12,%rbx,8), %r14d
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_sp_sb_pool_is_static
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mlxsw_sp_bytes_cells
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,8,3 ## @MLXSW_REG_SBXX_DIR_INGRESS
	.no_dead_strip	_mlxsw_sp_sb_pms_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_pms_init
_mlxsw_sp_sb_pms_init:                  ; @mlxsw_sp_sb_pms_init
	.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
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	add	x25, x2, #4
Lloh0:
	adrp	x26, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_mlxsw_sp_sb_pm_write
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x8]
	add	x25, x25, #8
	cmp	x22, x9
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w19, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8, #8]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x10, [x26]
	cmp	x9, x10
	b.eq	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	mov	x0, x21
	bl	_mlxsw_sp_bytes_cells
	mov	x23, x0
	ldur	w24, [x25, #-4]
	mov	x0, x21
	mov	x1, x22
	bl	_mlxsw_sp_sb_pool_is_static
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_mlxsw_sp_bytes_cells
	mov	x24, x0
	b	LBB0_2
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,8,3 ; @MLXSW_REG_SBXX_DIR_INGRESS
	.no_dead_strip	_mlxsw_sp_sb_pms_init
.subsections_via_symbols
