	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_erp_region_table_trans
_mlxsw_sp_acl_erp_region_table_trans:   ## @mlxsw_sp_acl_erp_region_table_trans
	.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	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	24(%rdi), %r14
	movl	(%r14), %esi
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_mlxsw_sp_acl_erp_table_alloc
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_mlxsw_sp_acl_erp_table_master_rp
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	$0, (%rax)
	movl	20(%rbx), %esi
	xorl	%edi, %edi
	callq	___set_bit
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_sp_acl_erp_table_erp_add
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_acl_erp_table_bf_add
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mlxsw_sp_acl_erp_table_enable
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_acl_erp_table_bf_del
	movl	%r13d, %r12d
LBB0_7:
	movq	%r15, %rdi
	callq	_mlxsw_sp_acl_erp_table_erp_del
LBB0_8:
	movq	(%r15), %rdi
	movl	20(%rbx), %esi
	callq	___clear_bit
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movl	16(%rbx), %esi
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_mlxsw_sp_acl_erp_table_free
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_sp_acl_erp_region_table_trans
.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_region_table_trans
_mlxsw_sp_acl_erp_region_table_trans:   ; @mlxsw_sp_acl_erp_region_table_trans
	.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	x20, x0
	ldr	x19, [x0, #24]
	ldr	w1, [x19]
	ldr	x8, [x0, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_mlxsw_sp_acl_erp_table_alloc
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w8, [x19]
	str	w8, [x20, #16]
	mov	x0, x20
	bl	_mlxsw_sp_acl_erp_table_master_rp
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
	str	xzr, [x0]
	ldr	w1, [x20, #20]
	mov	x0, #0
	bl	___set_bit
	mov	x0, x20
	mov	x1, x22
	bl	_mlxsw_sp_acl_erp_table_erp_add
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	_mlxsw_acl_erp_table_bf_add
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	bl	_mlxsw_sp_acl_erp_table_enable
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.5:
	mov	x0, x20
	mov	x1, x22
	bl	_mlxsw_acl_erp_table_bf_del
LBB0_6:
	mov	x0, x22
	bl	_mlxsw_sp_acl_erp_table_erp_del
LBB0_7:
	ldr	x0, [x22]
	ldr	w1, [x20, #20]
	bl	___clear_bit
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	ldr	w1, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_mlxsw_sp_acl_erp_table_free
LBB0_10:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlxsw_sp_acl_erp_region_table_trans
.subsections_via_symbols
