	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mlxsw_sp_port_get_stats
___mlxsw_sp_port_get_stats:             ## @__mlxsw_sp_port_get_stats
	.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	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movq	_MLXSW_REG_PPCNT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	-64(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	movl	%r15d, %edx
	callq	_mlxsw_sp_get_hw_stats_by_group
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_mlxsw_sp_port_get_stats_raw
	cmpl	$0, -52(%rbp)
	jle	LBB0_6
## %bb.2:
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	-52(%rbp), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movq	%r13, %rdi
	callq	*8(%rax,%rbx,4)
	movl	%eax, (%r15,%rbx)
	movq	-64(%rbp), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mlxsw_sp_cells_bytes
	movl	%eax, (%r15,%rbx)
	jmp	LBB0_5
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_PPCNT_LEN,4,2        ## @MLXSW_REG_PPCNT_LEN
	.no_dead_strip	___mlxsw_sp_port_get_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mlxsw_sp_port_get_stats
___mlxsw_sp_port_get_stats:             ; @__mlxsw_sp_port_get_stats
	.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
	sub	sp, sp, #32
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_netdev_priv
	mov	x26, sp
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _MLXSW_REG_PPCNT_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_PPCNT_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	sub	x0, x29, #80
	sub	x1, x29, #84
	mov	x2, x24
	bl	_mlxsw_sp_get_hw_stats_by_group
	cbz	w0, LBB0_3
LBB0_1:
	mov	sp, x26
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.2:
	sub	sp, x29, #64
	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_3:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	bl	_mlxsw_sp_port_get_stats_raw
	ldur	w8, [x29, #-84]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.4:
	mov	x23, #0
	mov	x24, #0
	add	x21, x22, w21, sxtw #2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldursw	x8, [x29, #-84]
	add	x23, x23, #16
	cmp	x24, x8
	b.ge	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-80]
	add	x8, x8, x23
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	str	w0, [x21, x24, lsl #2]
	ldur	x8, [x29, #-80]
	ldr	w8, [x8, x23]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_mlxsw_sp_cells_bytes
	str	w0, [x21, x24, lsl #2]
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_PPCNT_LEN,4,2        ; @MLXSW_REG_PPCNT_LEN
	.no_dead_strip	___mlxsw_sp_port_get_stats
.subsections_via_symbols
