	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sja1105_init_l2_lookup_params
LCPI0_0:
	.long	151                             ## 0x97
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sja1105_init_l2_lookup_params:         ## @sja1105_init_l2_lookup_params
	.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	%rdi, %rbx
	movq	_SJA1105_MAX_L2_LOOKUP_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SJA1105ET_FDB_BIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$300000, %edi                   ## imm = 0x493E0
	callq	_SJA1105_AGEING_TIME_MS
	movl	%eax, %r15d
	movq	(%rbx), %r12
	movq	_BLK_IDX_L2_LOOKUP_PARAMS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %r14
	leaq	(%r12,%r14,8), %rbx
	cmpq	$0, 8(%r12,%r14,8)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
LBB0_2:
	movq	_SJA1105_MAX_L2_LOOKUP_PARAMS_COUNT@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	16(%r12,%r14,8), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kcalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r13), %rcx
	movq	%rcx, 8(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [151,1,0,1]
	movups	%xmm0, (%rax)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 16(%rax)
	movl	$1, 24(%rax)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 28(%rax)
	movl	$0, 32(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 36(%rax)
	movl	%r15d, 40(%rax)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1105_MAX_L2_LOOKUP_COUNT,4,2 ## @SJA1105_MAX_L2_LOOKUP_COUNT
	.comm	_SJA1105_NUM_PORTS,4,2          ## @SJA1105_NUM_PORTS
	.comm	_SJA1105ET_FDB_BIN_SIZE,4,2     ## @SJA1105ET_FDB_BIN_SIZE
	.comm	_BLK_IDX_L2_LOOKUP_PARAMS,8,3   ## @BLK_IDX_L2_LOOKUP_PARAMS
	.comm	_SJA1105_MAX_L2_LOOKUP_PARAMS_COUNT,8,3 ## @SJA1105_MAX_L2_LOOKUP_PARAMS_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_sja1105_init_l2_lookup_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function sja1105_init_l2_lookup_params
lCPI0_0:
	.long	151                             ; 0x97
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sja1105_init_l2_lookup_params:         ; @sja1105_init_l2_lookup_params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, _SJA1105_MAX_L2_LOOKUP_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SJA1105_MAX_L2_LOOKUP_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _SJA1105_NUM_PORTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SJA1105_NUM_PORTS@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _SJA1105ET_FDB_BIN_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SJA1105ET_FDB_BIN_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	w0, #37856
	movk	w0, #4, lsl #16
	bl	_SJA1105_AGEING_TIME_MS
	mov	x19, x0
	ldr	x25, [x20]
Lloh9:
	adrp	x8, _BLK_IDX_L2_LOOKUP_PARAMS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BLK_IDX_L2_LOOKUP_PARAMS@GOTPAGEOFF]
Lloh11:
	ldr	x27, [x8]
	mov	w8, #24
	madd	x24, x27, x8, x25
	mov	x20, x24
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x24]
	bl	_kfree
	str	xzr, [x20]
LBB0_2:
Lloh12:
	adrp	x26, _SJA1105_MAX_L2_LOOKUP_PARAMS_COUNT@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SJA1105_MAX_L2_LOOKUP_PARAMS_COUNT@GOTPAGEOFF]
	ldr	x0, [x26]
	mov	w8, #24
	madd	x8, x27, x8, x25
	ldr	x8, [x8, #16]
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_kcalloc
	str	x0, [x24]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x26]
	str	x9, [x20]
Lloh17:
	adrp	x9, lCPI0_0@PAGE
Lloh18:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [x8]
	movi.2s	v0, #1
	str	d0, [x8, #16]
	sdiv	w9, w22, w23
	mov	w10, #1
	stp	w10, w9, [x8, #24]
	stp	wzr, w21, [x8, #32]
	str	w19, [x8, #40]
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1105_MAX_L2_LOOKUP_COUNT,4,2 ; @SJA1105_MAX_L2_LOOKUP_COUNT
	.comm	_SJA1105_NUM_PORTS,4,2          ; @SJA1105_NUM_PORTS
	.comm	_SJA1105ET_FDB_BIN_SIZE,4,2     ; @SJA1105ET_FDB_BIN_SIZE
	.comm	_BLK_IDX_L2_LOOKUP_PARAMS,8,3   ; @BLK_IDX_L2_LOOKUP_PARAMS
	.comm	_SJA1105_MAX_L2_LOOKUP_PARAMS_COUNT,8,3 ; @SJA1105_MAX_L2_LOOKUP_PARAMS_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_sja1105_init_l2_lookup_params
.subsections_via_symbols
