	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_mr_tcam_afa_block_create
_mlxsw_sp_mr_tcam_afa_block_create:     ## @mlxsw_sp_mr_tcam_afa_block_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	%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	%r9, %r12
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_mlxsw_afa_block_create
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_afa_block_append_allocated_counter
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_15:
	movq	%r15, %rdi
	callq	_mlxsw_afa_block_destroy
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	cmpl	$128, %r14d
	je	LBB0_10
## %bb.4:
	cmpl	$130, %r14d
	je	LBB0_10
## %bb.5:
	cmpl	$129, %r14d
	jne	LBB0_14
## %bb.6:
	movq	_MLXSW_TRAP_ID_ACL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mlxsw_afa_block_append_trap
LBB0_7:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_8
LBB0_10:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_mr_erif_list_commit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movl	(%r12), %r8d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_mlxsw_afa_block_append_mcrouter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	cmpl	$128, %r14d
	jne	LBB0_8
## %bb.13:
	movq	_MLXSW_TRAP_ID_ACL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mlxsw_afa_block_append_trap_and_forward
	jmp	LBB0_7
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_8:
	movq	%r15, %rdi
	callq	_mlxsw_afa_block_commit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLXSW_TRAP_ID_ACL1,4,2         ## @MLXSW_TRAP_ID_ACL1
	.comm	_MLXSW_TRAP_ID_ACL2,4,2         ## @MLXSW_TRAP_ID_ACL2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_sp_mr_tcam_afa_block_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_mr_tcam_afa_block_create
_mlxsw_sp_mr_tcam_afa_block_create:     ; @mlxsw_sp_mr_tcam_afa_block_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x5
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x25, x0
	ldr	w0, [x0]
	bl	_mlxsw_afa_block_create
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x1, x23
	bl	_mlxsw_afa_block_append_allocated_counter
	mov	x23, x0
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_mlxsw_afa_block_destroy
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	cmp	w20, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w20, #130
	b.eq	LBB0_9
; %bb.7:
	cmp	w20, #129
	b.ne	LBB0_15
; %bb.8:
Lloh3:
	adrp	x8, _MLXSW_TRAP_ID_ACL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_TRAP_ID_ACL1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mlxsw_afa_block_append_trap
	mov	x23, x0
	cbnz	w0, LBB0_2
	b	LBB0_13
LBB0_9:
	mov	x0, x25
	mov	x1, x24
	bl	_mlxsw_sp_mr_erif_list_commit
	mov	x23, x0
	cbnz	w0, LBB0_2
; %bb.10:
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	bl	_mlxsw_afa_block_append_mcrouter
	mov	x23, x0
	cbnz	w0, LBB0_2
; %bb.11:
	cmp	w20, #128
	b.ne	LBB0_13
; %bb.12:
Lloh6:
	adrp	x8, _MLXSW_TRAP_ID_ACL2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLXSW_TRAP_ID_ACL2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mlxsw_afa_block_append_trap_and_forward
	mov	x23, x0
	cbnz	w0, LBB0_2
LBB0_13:
	mov	x0, x19
	bl	_mlxsw_afa_block_commit
	mov	x23, x0
	cbnz	w0, LBB0_2
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLXSW_TRAP_ID_ACL1,4,2         ; @MLXSW_TRAP_ID_ACL1
	.comm	_MLXSW_TRAP_ID_ACL2,4,2         ; @MLXSW_TRAP_ID_ACL2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlxsw_sp_mr_tcam_afa_block_create
.subsections_via_symbols
