	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_bf_init           ## -- Begin function mlxsw_sp_acl_bf_init
	.p2align	4, 0x90
_mlxsw_sp_acl_bf_init:                  ## @mlxsw_sp_acl_bf_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_ACL_MAX_BF_LOG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_MLXSW_CORE_RES_VALID
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_MLXSW_CORE_RES_GET
	movl	%eax, %r14d
	movq	_refcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %ecx
	shll	%cl, %r15d
	movl	%r15d, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_MAX_BF_LOG,4,2             ## @ACL_MAX_BF_LOG
	.comm	_EIO,4,2                        ## @EIO
	.comm	_refcnt,4,2                     ## @refcnt
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_bf_init           ; -- Begin function mlxsw_sp_acl_bf_init
	.p2align	2
_mlxsw_sp_acl_bf_init:                  ; @mlxsw_sp_acl_bf_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, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _ACL_MAX_BF_LOG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ACL_MAX_BF_LOG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_MLXSW_CORE_RES_VALID
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_MLXSW_CORE_RES_GET
	mov	x20, x0
Lloh2:
	adrp	x8, _refcnt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _refcnt@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	lsl	w2, w19, w0
	bl	_struct_size
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
	mov	w8, #1
	lsl	w8, w8, w20
	str	w8, [x0], #4
	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
LBB0_3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_MAX_BF_LOG,4,2             ; @ACL_MAX_BF_LOG
	.comm	_EIO,4,2                        ; @EIO
	.comm	_refcnt,4,2                     ; @refcnt
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
