	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_erp_root_create
_mlxsw_sp_acl_erp_root_create:          ## @mlxsw_sp_acl_erp_root_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, (%rsi)
	jne	LBB0_4
## %bb.1:
	movq	_OBJAGG_OBJ_ROOT_ID_INVALID@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_MLXSW_SP_ACL_ERP_MAX_PER_REGION@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	ja	LBB0_4
## %bb.3:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJAGG_OBJ_ROOT_ID_INVALID,4,2 ## @OBJAGG_OBJ_ROOT_ID_INVALID
	.comm	_MLXSW_SP_ACL_ERP_MAX_PER_REGION,4,2 ## @MLXSW_SP_ACL_ERP_MAX_PER_REGION
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_mlxsw_sp_acl_erp_root_create
.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_root_create
_mlxsw_sp_acl_erp_root_create:          ; @mlxsw_sp_acl_erp_root_create
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _OBJAGG_OBJ_ROOT_ID_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJAGG_OBJ_ROOT_ID_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MLXSW_SP_ACL_ERP_MAX_PER_REGION@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MLXSW_SP_ACL_ERP_MAX_PER_REGION@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, #0
	ccmp	w9, w2, #4, eq
	ccmp	w10, w2, #2, ne
	b.ls	LBB0_2
; %bb.1:
	ldr	x0, [x0]
	ldr	x8, [x0]
	ldr	x2, [x8]
	br	x2
LBB0_2:
Lloh6:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJAGG_OBJ_ROOT_ID_INVALID,4,2 ; @OBJAGG_OBJ_ROOT_ID_INVALID
	.comm	_MLXSW_SP_ACL_ERP_MAX_PER_REGION,4,2 ; @MLXSW_SP_ACL_ERP_MAX_PER_REGION
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_mlxsw_sp_acl_erp_root_create
.subsections_via_symbols
