	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_erp_tables_sizes_query
_mlxsw_sp_acl_erp_tables_sizes_query:   ## @mlxsw_sp_acl_erp_tables_sizes_query
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_ACL_ERPT_ENTRIES_2KB@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	movq	_ACL_ERPT_ENTRIES_4KB@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	movq	_ACL_ERPT_ENTRIES_8KB@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movq	_ACL_ERPT_ENTRIES_12KB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	(%r14), %rcx
	movq	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_2KB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	(%r14), %rcx
	movq	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_4KB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	(%rbx), %edi
	movl	(%r13), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	(%r14), %rcx
	movq	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_8KB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	(%rbx), %edi
	movq	_ACL_ERPT_ENTRIES_12KB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	(%r14), %rcx
	movq	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_12KB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_ERPT_ENTRIES_2KB,4,2       ## @ACL_ERPT_ENTRIES_2KB
	.comm	_ACL_ERPT_ENTRIES_4KB,4,2       ## @ACL_ERPT_ENTRIES_4KB
	.comm	_ACL_ERPT_ENTRIES_8KB,4,2       ## @ACL_ERPT_ENTRIES_8KB
	.comm	_ACL_ERPT_ENTRIES_12KB,4,2      ## @ACL_ERPT_ENTRIES_12KB
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_2KB,8,3 ## @MLXSW_SP_ACL_ATCAM_REGION_TYPE_2KB
	.comm	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_4KB,8,3 ## @MLXSW_SP_ACL_ATCAM_REGION_TYPE_4KB
	.comm	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_8KB,8,3 ## @MLXSW_SP_ACL_ATCAM_REGION_TYPE_8KB
	.comm	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_12KB,8,3 ## @MLXSW_SP_ACL_ATCAM_REGION_TYPE_12KB
	.no_dead_strip	_mlxsw_sp_acl_erp_tables_sizes_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_acl_erp_tables_sizes_query
_mlxsw_sp_acl_erp_tables_sizes_query:   ; @mlxsw_sp_acl_erp_tables_sizes_query
	.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, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _ACL_ERPT_ENTRIES_2KB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ACL_ERPT_ENTRIES_2KB@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x20]
Lloh2:
	adrp	x22, _ACL_ERPT_ENTRIES_4KB@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ACL_ERPT_ENTRIES_4KB@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x20]
Lloh4:
	adrp	x23, _ACL_ERPT_ENTRIES_8KB@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ACL_ERPT_ENTRIES_8KB@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x20]
Lloh6:
	adrp	x24, _ACL_ERPT_ENTRIES_12KB@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ACL_ERPT_ENTRIES_12KB@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_MLXSW_CORE_RES_GET
Lloh8:
	adrp	x8, _MLXSW_SP_ACL_ATCAM_REGION_TYPE_2KB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLXSW_SP_ACL_ATCAM_REGION_TYPE_2KB@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh10:
	ldr	x8, [x8]
	str	w0, [x9, x8, lsl #2]
	ldr	w0, [x20]
	ldr	w1, [x22]
	bl	_MLXSW_CORE_RES_GET
Lloh11:
	adrp	x8, _MLXSW_SP_ACL_ATCAM_REGION_TYPE_4KB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLXSW_SP_ACL_ATCAM_REGION_TYPE_4KB@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh13:
	ldr	x8, [x8]
	str	w0, [x9, x8, lsl #2]
	ldr	w0, [x20]
	ldr	w1, [x23]
	bl	_MLXSW_CORE_RES_GET
Lloh14:
	adrp	x8, _MLXSW_SP_ACL_ATCAM_REGION_TYPE_8KB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLXSW_SP_ACL_ATCAM_REGION_TYPE_8KB@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh16:
	ldr	x8, [x8]
	str	w0, [x9, x8, lsl #2]
	ldr	w0, [x20]
	ldr	w1, [x24]
	bl	_MLXSW_CORE_RES_GET
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
Lloh17:
	adrp	x10, _MLXSW_SP_ACL_ATCAM_REGION_TYPE_12KB@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MLXSW_SP_ACL_ATCAM_REGION_TYPE_12KB@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_ERPT_ENTRIES_2KB,4,2       ; @ACL_ERPT_ENTRIES_2KB
	.comm	_ACL_ERPT_ENTRIES_4KB,4,2       ; @ACL_ERPT_ENTRIES_4KB
	.comm	_ACL_ERPT_ENTRIES_8KB,4,2       ; @ACL_ERPT_ENTRIES_8KB
	.comm	_ACL_ERPT_ENTRIES_12KB,4,2      ; @ACL_ERPT_ENTRIES_12KB
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_2KB,8,3 ; @MLXSW_SP_ACL_ATCAM_REGION_TYPE_2KB
	.comm	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_4KB,8,3 ; @MLXSW_SP_ACL_ATCAM_REGION_TYPE_4KB
	.comm	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_8KB,8,3 ; @MLXSW_SP_ACL_ATCAM_REGION_TYPE_8KB
	.comm	_MLXSW_SP_ACL_ATCAM_REGION_TYPE_12KB,8,3 ; @MLXSW_SP_ACL_ATCAM_REGION_TYPE_12KB
	.no_dead_strip	_mlxsw_sp_acl_erp_tables_sizes_query
.subsections_via_symbols
