	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_sb_sr_occ_query_cb
_mlxsw_sp_sb_sr_occ_query_cb:           ## @mlxsw_sp_sb_sr_occ_query_cb
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rcx, -96(%rbp)
	callq	_mlxsw_core_driver_priv
	movq	%rax, %r14
	leaq	-80(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	-80(%rbp), %r13
	movq	%rbx, %rdi
	callq	_mlxsw_core_max_ports
	xorl	%r15d, %r15d
	cmpq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jae	LBB0_10
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlxsw_core_max_ports
	cmpq	%rax, %r13
	jae	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r14), %rax
	cmpl	$0, (%rax,%r13,4)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MLXSW_PORT_CPU_PORT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MLXSW_SP_SB_ING_TC_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r15,%rbx), %r14d
	movq	_MLXSW_REG_SBXX_DIR_INGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_mlxsw_sp_sb_cm_get
	leaq	4(%rax), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rax, %rcx
	callq	_mlxsw_reg_sbsr_rec_unpack
	incl	%ebx
	movq	_MLXSW_SP_SB_ING_TC_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %r15d
	movq	%r12, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	-72(%rbp), %rbx
	jne	LBB0_9
LBB0_10:
	movq	-80(%rbp), %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlxsw_core_max_ports
	cmpq	%rax, %r13
	jae	LBB0_19
## %bb.11:
	xorl	%ebx, %ebx
	movq	_MLXSW_SP_SB_EG_TC_COUNT@GOTPCREL(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	-72(%rbp), %rbx
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlxsw_core_max_ports
	cmpq	%rax, %r13
	jae	LBB0_19
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	(%r14), %rax
	cmpl	$0, (%rax,%r13,4)
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, (%r12)
	jle	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r15,%rbx), %r14d
	movq	_MLXSW_REG_SBXX_DIR_EGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_mlxsw_sp_sb_cm_get
	leaq	4(%rax), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rax, %rcx
	callq	_mlxsw_reg_sbsr_rec_unpack
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	addl	%ebx, %r15d
	movq	%r13, %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_19:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_PORT_CPU_PORT,8,3        ## @MLXSW_PORT_CPU_PORT
	.comm	_MLXSW_SP_SB_ING_TC_COUNT,4,2   ## @MLXSW_SP_SB_ING_TC_COUNT
	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,4,2 ## @MLXSW_REG_SBXX_DIR_INGRESS
	.comm	_MLXSW_SP_SB_EG_TC_COUNT,4,2    ## @MLXSW_SP_SB_EG_TC_COUNT
	.comm	_MLXSW_REG_SBXX_DIR_EGRESS,4,2  ## @MLXSW_REG_SBXX_DIR_EGRESS
	.no_dead_strip	_mlxsw_sp_sb_sr_occ_query_cb
.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_sr_occ_query_cb
_mlxsw_sp_sb_sr_occ_query_cb:           ; @mlxsw_sp_sb_sr_occ_query_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x20, x0
	str	x3, [sp, #24]
	bl	_mlxsw_core_driver_priv
	mov	x21, x0
	add	x0, sp, #8
	add	x1, sp, #24
	mov	w2, #16
	bl	_memcpy
	ldr	x22, [sp, #8]
	mov	x0, x20
	bl	_mlxsw_core_max_ports
	cmp	x22, x0
	b.hs	LBB0_11
; %bb.1:
	mov	w25, #0
	mov	x26, #0
Lloh0:
	adrp	x23, _MLXSW_PORT_CPU_PORT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MLXSW_PORT_CPU_PORT@GOTPAGEOFF]
Lloh2:
	adrp	x28, _MLXSW_SP_SB_ING_TC_COUNT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _MLXSW_SP_SB_ING_TC_COUNT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MLXSW_REG_SBXX_DIR_INGRESS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_mlxsw_core_max_ports
	cmp	x22, x0
	b.hs	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x21]
	ldr	w8, [x8, x22, lsl #2]
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	cmp	x22, x8
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w24, w25, w23
	ldr	w3, [x27]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_mlxsw_sp_sb_cm_get
	mov	x3, x0
	add	x2, x0, #4
	mov	x0, x19
	mov	x1, x24
	bl	_mlxsw_reg_sbsr_rec_unpack
	add	w23, w23, #1
	ldr	w8, [x28]
	cmp	w23, w8
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, w23
Lloh6:
	adrp	x23, _MLXSW_PORT_CPU_PORT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MLXSW_PORT_CPU_PORT@GOTPAGEOFF]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldr	x8, [sp, #16]
	cmp	x26, x8
	b.ne	LBB0_3
	b	LBB0_12
LBB0_11:
	mov	w25, #0
LBB0_12:
	ldr	x22, [sp, #8]
	mov	x0, x20
	bl	_mlxsw_core_max_ports
	cmp	x22, x0
	b.hs	LBB0_21
; %bb.13:
	mov	x26, #0
Lloh8:
	adrp	x27, _MLXSW_SP_SB_EG_TC_COUNT@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MLXSW_SP_SB_EG_TC_COUNT@GOTPAGEOFF]
Lloh10:
	adrp	x28, _MLXSW_REG_SBXX_DIR_EGRESS@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MLXSW_REG_SBXX_DIR_EGRESS@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x26, x26, #1
	ldr	x8, [sp, #16]
	cmp	x26, x8
	b.eq	LBB0_21
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_mlxsw_core_max_ports
	cmp	x22, x0
	b.hs	LBB0_21
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	x8, [x21]
	ldr	w8, [x8, x22, lsl #2]
	cbz	w8, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w23, #0
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w24, w25, w23
	ldr	w3, [x28]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_mlxsw_sp_sb_cm_get
	mov	x3, x0
	add	x2, x0, #4
	mov	x0, x19
	mov	x1, x24
	bl	_mlxsw_reg_sbsr_rec_unpack
	add	w23, w23, #1
	ldr	w8, [x27]
	cmp	w23, w8
	b.lt	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w25, w25, w23
	b	LBB0_14
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_PORT_CPU_PORT,8,3        ; @MLXSW_PORT_CPU_PORT
	.comm	_MLXSW_SP_SB_ING_TC_COUNT,4,2   ; @MLXSW_SP_SB_ING_TC_COUNT
	.comm	_MLXSW_REG_SBXX_DIR_INGRESS,4,2 ; @MLXSW_REG_SBXX_DIR_INGRESS
	.comm	_MLXSW_SP_SB_EG_TC_COUNT,4,2    ; @MLXSW_SP_SB_EG_TC_COUNT
	.comm	_MLXSW_REG_SBXX_DIR_EGRESS,4,2  ; @MLXSW_REG_SBXX_DIR_EGRESS
	.no_dead_strip	_mlxsw_sp_sb_sr_occ_query_cb
.subsections_via_symbols
