	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_atcam_region_12kb_init
_mlxsw_sp_acl_atcam_region_12kb_init:   ## @mlxsw_sp_acl_atcam_region_12kb_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %edi
	movq	_ACL_MAX_LARGE_KEY_ID@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_MLXSW_CORE_RES_GET
	movl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	%r15d, %edi
	callq	_BITS_TO_LONGS
	movslq	%eax, %rdi
	shlq	$3, %rdi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	addq	$12, %rdi
	movq	_mlxsw_sp_acl_atcam_lkey_id_ht_params@GOTPCREL(%rip), %rsi
	callq	_rhashtable_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_8:
	movl	%r15d, 8(%r12)
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_MAX_LARGE_KEY_ID,4,2       ## @ACL_MAX_LARGE_KEY_ID
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxsw_sp_acl_atcam_lkey_id_ht_params,4,2 ## @mlxsw_sp_acl_atcam_lkey_id_ht_params
	.no_dead_strip	_mlxsw_sp_acl_atcam_region_12kb_init
.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_atcam_region_12kb_init
_mlxsw_sp_acl_atcam_region_12kb_init:   ; @mlxsw_sp_acl_atcam_region_12kb_init
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w0, [x20]
Lloh0:
	adrp	x21, _ACL_MAX_LARGE_KEY_ID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ACL_MAX_LARGE_KEY_ID@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_MLXSW_CORE_RES_GET
	mov	x21, x0
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_BITS_TO_LONGS
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x0, x0, #3, #32
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.3:
	add	x0, x20, #12
Lloh4:
	adrp	x1, _mlxsw_sp_acl_atcam_lkey_id_ht_params@GOTPAGE
Lloh5:
	ldr	x1, [x1, _mlxsw_sp_acl_atcam_lkey_id_ht_params@GOTPAGEOFF]
	bl	_rhashtable_init
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.4:
	ldr	x0, [x20]
	bl	_kfree
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x20
	bl	_kfree
	b	LBB0_11
LBB0_10:
	str	w21, [x20, #8]
	str	x20, [x19]
LBB0_11:
	mov	x0, x22
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_MAX_LARGE_KEY_ID,4,2       ; @ACL_MAX_LARGE_KEY_ID
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxsw_sp_acl_atcam_lkey_id_ht_params,4,2 ; @mlxsw_sp_acl_atcam_lkey_id_ht_params
	.no_dead_strip	_mlxsw_sp_acl_atcam_region_12kb_init
.subsections_via_symbols
