	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_dpipe_table_adj_entry_prepare
_mlxsw_sp_dpipe_table_adj_entry_prepare: ## @mlxsw_sp_dpipe_table_adj_entry_prepare
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rsi, 24(%rdi)
	movq	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	%rcx, 8(%rdi)
	movq	_MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	(%rdx,%r14,4), %rax
	shlq	$5, %r14
	movq	%rax, 24(%rsi,%r14)
	movl	$4, (%rsi,%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 8(%r13,%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	(%r12,%rbx,4), %rax
	shlq	$5, %rbx
	movq	%rax, 24(%r13,%rbx)
	movl	$4, (%r13,%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 8(%r13,%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	(%r12,%rbx,4), %rax
	shlq	$5, %rbx
	movq	%rax, 24(%r13,%rbx)
	movl	$4, (%r13,%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 8(%r13,%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r14,%rbx,4), %rax
	shlq	$5, %rbx
	movq	%rax, 16(%r15,%rbx)
	movl	$4, (%r15,%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 8(%r15,%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	(%r14,%rbx,4), %rax
	shlq	$5, %rbx
	movq	%rax, 16(%r15,%rbx)
	movl	$4, (%r15,%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, %rcx
	movq	%rax, 8(%r15,%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_COUNT,4,2 ## @MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_COUNT
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_COUNT,4,2 ## @MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_COUNT
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX,8,3 ## @MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE,8,3 ## @MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX,8,3 ## @MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC,8,3 ## @MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT,8,3 ## @MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT
	.no_dead_strip	_mlxsw_sp_dpipe_table_adj_entry_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_dpipe_table_adj_entry_prepare
_mlxsw_sp_dpipe_table_adj_entry_prepare: ; @mlxsw_sp_dpipe_table_adj_entry_prepare
	.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	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	str	x1, [x0, #24]
Lloh0:
	adrp	x8, _MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	x3, [x0, #8]
Lloh3:
	adrp	x8, _MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh6:
	adrp	x8, _MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x9, x2, x8, lsl #2
	add	x25, x1, x8, lsl #5
	str	x9, [x25, #24]
	mov	w24, #4
	str	w24, [x25]
Lloh9:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x25, #8]
	cbz	x0, LBB0_6
; %bb.1:
Lloh11:
	adrp	x8, _MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x9, x22, x8, lsl #2
	add	x25, x21, x8, lsl #5
	str	x9, [x25, #24]
	str	w24, [x25]
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x25, #8]
	cbz	x0, LBB0_6
; %bb.2:
Lloh14:
	adrp	x8, _MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x9, x22, x8, lsl #2
	add	x22, x21, x8, lsl #5
	str	x9, [x22, #24]
	mov	w21, #4
	str	w21, [x22]
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x22, #8]
	cbz	x0, LBB0_6
; %bb.3:
Lloh17:
	adrp	x8, _MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x9, x20, x8, lsl #2
	add	x22, x19, x8, lsl #5
	str	x9, [x22, #16]
	str	w21, [x22]
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x22, #8]
	cbz	x0, LBB0_6
; %bb.4:
Lloh20:
	adrp	x8, _MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x9, x20, x8, lsl #2
	add	x19, x19, x8, lsl #5
	str	x9, [x19, #16]
	mov	w8, #4
	str	w8, [x19]
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_COUNT,4,2 ; @MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_COUNT
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_COUNT,4,2 ; @MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_COUNT
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX,8,3 ; @MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_INDEX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE,8,3 ; @MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_SIZE
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX,8,3 ; @MLXSW_SP_DPIPE_TABLE_ADJ_MATCH_HASH_INDEX
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC,8,3 ; @MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_DST_MAC
	.comm	_MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT,8,3 ; @MLXSW_SP_DPIPE_TABLE_ADJ_ACTION_ERIF_PORT
	.no_dead_strip	_mlxsw_sp_dpipe_table_adj_entry_prepare
.subsections_via_symbols
