	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_erp_hints_check
_mlxsw_sp_acl_erp_hints_check:          ## @mlxsw_sp_acl_erp_hints_check
	.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	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	movl	$0, (%rcx)
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	4(%rbx), %edi
	callq	_objagg_stats_get
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err_ratelimited
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	callq	_objagg_hints_stats_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err_ratelimited
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jge	LBB0_5
## %bb.4:
	movl	$1, (%r14)
LBB0_5:
	movq	%r12, %rdi
	callq	_objagg_stats_put
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r13, %rdi
	callq	_objagg_stats_put
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get ERP stats\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get ERP hints stats\n"

	.no_dead_strip	_mlxsw_sp_acl_erp_hints_check
.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_hints_check
_mlxsw_sp_acl_erp_hints_check:          ; @mlxsw_sp_acl_erp_hints_check
	.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	x20, x3
	mov	x22, x2
	mov	x21, x0
	ldr	x23, [x1]
	str	wzr, [x3]
	mov	x0, x23
	bl	_mutex_lock
	ldr	w0, [x23, #4]
	bl	_objagg_stats_get
	mov	x19, x0
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x19
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err_ratelimited
	mov	x0, x19
	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
	b	_PTR_ERR
LBB0_2:
	mov	x0, x22
	bl	_objagg_hints_stats_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err_ratelimited
	mov	x0, x22
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_7
LBB0_4:
	ldr	x8, [x22]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x20]
LBB0_6:
	mov	x0, x22
	bl	_objagg_stats_put
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_objagg_stats_put
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get ERP stats\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get ERP hints stats\n"

	.no_dead_strip	_mlxsw_sp_acl_erp_hints_check
.subsections_via_symbols
