	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_tcam_region_create
_mlxsw_sp_acl_tcam_region_create:       ## @mlxsw_sp_acl_tcam_region_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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	24(%r14), %rdi
	addq	$32, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, 24(%rax)
	movq	%rbx, 16(%rax)
	movl	(%rbx), %eax
	movl	%eax, 12(%r12)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_acl_tcam_region_id_get
	movq	%r13, %rbx
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	*(%r14)
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	16(%r14), %eax
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_acl_tcam_region_alloc
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_acl_tcam_region_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	4(%r12), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r12, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	*8(%r14)
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_acl_tcam_region_disable
LBB0_8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_acl_tcam_region_free
LBB0_9:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_mlxsw_sp_acl_tcam_region_id_put
LBB0_10:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlxsw_sp_acl_tcam_region_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_tcam_region_create
_mlxsw_sp_acl_tcam_region_create:       ; @mlxsw_sp_acl_tcam_region_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x24, [x0]
	ldr	x8, [x24, #24]
	add	x0, x8, #32
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	stp	x23, x21, [x0, #16]
	ldr	w8, [x23]
	str	w8, [x0, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_acl_tcam_region_id_get
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	x8, [x24]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w8, [x24, #16]
	str	w8, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_mlxsw_sp_acl_tcam_region_alloc
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	bl	_mlxsw_sp_acl_tcam_region_enable
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x24, #8]
	ldr	w1, [x20, #4]
	ldr	w2, [x19]
	mov	x0, x21
	mov	x3, x20
	mov	x4, x22
	blr	x8
	cbz	w0, LBB0_12
; %bb.6:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	bl	_mlxsw_sp_acl_tcam_region_disable
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_mlxsw_sp_acl_tcam_region_free
LBB0_8:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mlxsw_sp_acl_tcam_region_id_put
LBB0_9:
	mov	x0, x20
	bl	_kfree
	b	LBB0_11
LBB0_10:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_12:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlxsw_sp_acl_tcam_region_create
.subsections_via_symbols
