	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_erp_rehash_hints_get ## -- Begin function mlxsw_sp_acl_erp_rehash_hints_get
	.p2align	4, 0x90
_mlxsw_sp_acl_erp_rehash_hints_get:     ## @mlxsw_sp_acl_erp_rehash_hints_get
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	4(%rbx), %edi
	movq	_OBJAGG_OPT_ALGO_SIMPLE_GREEDY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_objagg_hints_get
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err_ratelimited
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_1:
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_mlxsw_sp_acl_erp_hints_check
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	callq	_objagg_hints_put
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
	jmp	LBB0_5
LBB0_2:
	cmpl	$0, -36(%rbp)
	je	LBB0_3
LBB0_5:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJAGG_OPT_ALGO_SIMPLE_GREEDY,4,2 ## @OBJAGG_OPT_ALGO_SIMPLE_GREEDY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create ERP hints\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_erp_rehash_hints_get ; -- Begin function mlxsw_sp_acl_erp_rehash_hints_get
	.p2align	2
_mlxsw_sp_acl_erp_rehash_hints_get:     ; @mlxsw_sp_acl_erp_rehash_hints_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldp	x8, x22, [x0]
	ldr	x21, [x8]
	mov	x0, x22
	bl	_mutex_lock
	ldr	w0, [x22, #4]
Lloh0:
	adrp	x8, _OBJAGG_OPT_ALGO_SIMPLE_GREEDY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJAGG_OPT_ALGO_SIMPLE_GREEDY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_objagg_hints_get
	mov	x19, x0
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	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
	add	sp, sp, #64
	b	_ERR_CAST
LBB0_2:
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_mlxsw_sp_acl_erp_hints_check
	mov	x20, x0
	cbz	w0, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_objagg_hints_put
	mov	x0, x20
	bl	_ERR_PTR
	mov	x19, x0
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJAGG_OPT_ALGO_SIMPLE_GREEDY,4,2 ; @OBJAGG_OPT_ALGO_SIMPLE_GREEDY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create ERP hints\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
