	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_erp_table_create
_mlxsw_sp_acl_erp_table_create:         ## @mlxsw_sp_acl_erp_table_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_mlxsw_sp_acl_erp_objagg_ops@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_objagg_create
	movl	%eax, 36(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	36(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %edi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_erp_no_mask_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	callq	_mutex_init
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxsw_sp_acl_erp_objagg_ops,4,2 ## @mlxsw_sp_acl_erp_objagg_ops
	.comm	_erp_no_mask_ops,4,2            ## @erp_no_mask_ops
	.no_dead_strip	_mlxsw_sp_acl_erp_table_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_table_create
_mlxsw_sp_acl_erp_table_create:         ; @mlxsw_sp_acl_erp_table_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x0, _mlxsw_sp_acl_erp_objagg_ops@GOTPAGE
Lloh4:
	ldr	x0, [x0, _mlxsw_sp_acl_erp_objagg_ops@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x20
	bl	_objagg_create
	str	w0, [x19, #36]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #36]
	bl	_PTR_ERR
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh8:
	adrp	x8, _erp_no_mask_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _erp_no_mask_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_mutex_init
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxsw_sp_acl_erp_objagg_ops,4,2 ; @mlxsw_sp_acl_erp_objagg_ops
	.comm	_erp_no_mask_ops,4,2            ; @erp_no_mask_ops
	.no_dead_strip	_mlxsw_sp_acl_erp_table_create
.subsections_via_symbols
