	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_counter_sub_pools_prepare
_mlxsw_sp_counter_sub_pools_prepare:    ## @mlxsw_sp_counter_sub_pools_prepare
	.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
	movq	%rdi, %rbx
	movq	_mlxsw_sp_counter_sub_pools@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movq	_MLXSW_SP_COUNTER_SUB_POOL_FLOW@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	(%rdi), %edi
	movq	_COUNTER_SIZE_PACKETS_BYTES@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movl	(%r13), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	%rax, (%r15,%r12,8)
	movq	(%r14), %r14
	movq	_MLXSW_SP_COUNTER_SUB_POOL_RIF@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	(%rbx), %edi
	movq	_COUNTER_SIZE_ROUTER_BASIC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	%rax, (%r14,%r15,8)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp_counter_sub_pools,8,3 ## @mlxsw_sp_counter_sub_pools
	.comm	_MLXSW_SP_COUNTER_SUB_POOL_FLOW,8,3 ## @MLXSW_SP_COUNTER_SUB_POOL_FLOW
	.comm	_COUNTER_SIZE_PACKETS_BYTES,4,2 ## @COUNTER_SIZE_PACKETS_BYTES
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MLXSW_SP_COUNTER_SUB_POOL_RIF,8,3 ## @MLXSW_SP_COUNTER_SUB_POOL_RIF
	.comm	_COUNTER_SIZE_ROUTER_BASIC,4,2  ## @COUNTER_SIZE_ROUTER_BASIC
	.no_dead_strip	_mlxsw_sp_counter_sub_pools_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_counter_sub_pools_prepare
_mlxsw_sp_counter_sub_pools_prepare:    ; @mlxsw_sp_counter_sub_pools_prepare
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _mlxsw_sp_counter_sub_pools@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mlxsw_sp_counter_sub_pools@GOTPAGEOFF]
Lloh2:
	adrp	x8, _MLXSW_SP_COUNTER_SUB_POOL_FLOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXSW_SP_COUNTER_SUB_POOL_FLOW@GOTPAGEOFF]
	ldr	x21, [x20]
Lloh4:
	ldr	x22, [x8]
	ldr	w0, [x0]
Lloh5:
	adrp	x23, _COUNTER_SIZE_PACKETS_BYTES@GOTPAGE
Lloh6:
	ldr	x23, [x23, _COUNTER_SIZE_PACKETS_BYTES@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_MLXSW_CORE_RES_GET
	str	x0, [x21, x22, lsl #3]
Lloh7:
	adrp	x8, _MLXSW_SP_COUNTER_SUB_POOL_RIF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLXSW_SP_COUNTER_SUB_POOL_RIF@GOTPAGEOFF]
	ldr	x20, [x20]
Lloh9:
	ldr	x21, [x8]
	ldr	w0, [x19]
Lloh10:
	adrp	x22, _COUNTER_SIZE_ROUTER_BASIC@GOTPAGE
Lloh11:
	ldr	x22, [x22, _COUNTER_SIZE_ROUTER_BASIC@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	ldr	w1, [x22]
	bl	_MLXSW_CORE_RES_GET
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20, x21, lsl #3]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp_counter_sub_pools,8,3 ; @mlxsw_sp_counter_sub_pools
	.comm	_MLXSW_SP_COUNTER_SUB_POOL_FLOW,8,3 ; @MLXSW_SP_COUNTER_SUB_POOL_FLOW
	.comm	_COUNTER_SIZE_PACKETS_BYTES,4,2 ; @COUNTER_SIZE_PACKETS_BYTES
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MLXSW_SP_COUNTER_SUB_POOL_RIF,8,3 ; @MLXSW_SP_COUNTER_SUB_POOL_RIF
	.comm	_COUNTER_SIZE_ROUTER_BASIC,4,2  ; @COUNTER_SIZE_ROUTER_BASIC
	.no_dead_strip	_mlxsw_sp_counter_sub_pools_prepare
.subsections_via_symbols
