	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_fid_get
_mlxsw_sp_fid_get:                      ## @mlxsw_sp_fid_get
	.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	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_mlxsw_sp_fid_lookup
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rbx
	movl	28(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, (%rax)
	movq	16(%rbx), %rax
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*(%rax)
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	-48(%rbp), %rdi
	movq	%rdi, 24(%r14)
	subq	8(%rbx), %rdi
	movl	(%rbx), %esi
	callq	___set_bit
	movq	(%r14), %rax
	movq	16(%rax), %rcx
	movq	24(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*%rax
	movq	(%r14), %rax
	movq	16(%rax), %rcx
LBB0_5:
	movq	%r14, %rdi
	callq	*8(%rcx)
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	(%r15), %rdi
	leaq	16(%r14), %rsi
	movq	_mlxsw_sp_fid_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rhashtable_insert_fast
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r13d
	movq	(%r14), %rax
	movq	16(%rax), %rax
	movq	%r14, %rdi
	callq	*16(%rax)
LBB0_9:
	movq	-48(%rbp), %rdi
	subq	8(%rbx), %rdi
	movl	(%rbx), %esi
	callq	___clear_bit
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
	movl	%r13d, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	addq	$12, %rdi
	addq	$24, %rbx
	movq	%rbx, %rsi
	callq	_list_add
	incl	8(%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxsw_sp_fid_ht_params,4,2     ## @mlxsw_sp_fid_ht_params
	.no_dead_strip	_mlxsw_sp_fid_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_fid_get
_mlxsw_sp_fid_get:                      ; @mlxsw_sp_fid_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_mlxsw_sp_fid_lookup
	mov	x19, x0
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x23, [x8, w22, uxtw #3]
	ldr	w0, [x23, #28]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	str	x23, [x0]
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	add	x2, sp, #8
	mov	x1, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x19, #24]
	ldr	x9, [x23, #8]
	sub	x0, x8, x9
	ldr	w1, [x23]
	bl	___set_bit
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	blr	x9
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
LBB0_5:
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x0, [x20]
	add	x1, x19, #16
Lloh3:
	adrp	x8, _mlxsw_sp_fid_ht_params@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlxsw_sp_fid_ht_params@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_rhashtable_insert_fast
	cbz	w0, LBB0_12
; %bb.7:
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
LBB0_8:
	ldr	x8, [sp, #8]
	ldr	x9, [x23, #8]
	sub	x0, x8, x9
	ldr	w1, [x23]
	bl	___clear_bit
LBB0_9:
	mov	x0, x19
	bl	_kfree
	mov	x0, x22
	bl	_ERR_PTR
	mov	x19, x0
LBB0_10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #80
	b	_ERR_PTR
LBB0_12:
	add	x0, x19, #12
	add	x1, x23, #24
	bl	_list_add
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxsw_sp_fid_ht_params,4,2     ; @mlxsw_sp_fid_ht_params
	.no_dead_strip	_mlxsw_sp_fid_get
.subsections_via_symbols
