	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_init_scheduling
_sja1105_init_scheduling:               ## @sja1105_init_scheduling
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_BLK_IDX_SCHEDULE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	$0, (%rax,%rcx,8)
	je	LBB0_2
## %bb.1:
	leaq	(%rax,%rcx,8), %rbx
	movq	8(%rax,%rcx,8), %rdi
	callq	_kfree
	movl	$0, (%rbx)
	movq	(%r13), %rax
LBB0_2:
	movq	_BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.3:
	leaq	(%rax,%rcx,8), %rbx
	movq	8(%rax,%rcx,8), %rdi
	callq	_kfree
	movl	$0, (%rbx)
	movq	(%r13), %rax
LBB0_4:
	movq	_BLK_IDX_SCHEDULE_PARAMS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	$0, (%rax,%rcx,8)
	je	LBB0_6
## %bb.5:
	leaq	(%rax,%rcx,8), %rbx
	movq	8(%rax,%rcx,8), %rdi
	callq	_kfree
	movl	$0, (%rbx)
	movq	(%r13), %rax
LBB0_6:
	movq	_BLK_IDX_SCHEDULE_ENTRY_POINTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	$0, (%rax,%rcx,8)
	je	LBB0_8
## %bb.7:
	leaq	(%rax,%rcx,8), %rbx
	movq	8(%rax,%rcx,8), %rdi
	callq	_kfree
	movl	$0, (%rbx)
LBB0_8:
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_48
## %bb.9:
	movq	8(%r13), %rcx
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.10:
	xorl	%edx, %edx
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_17:
	testb	$1, %al
	je	LBB0_20
## %bb.18:
	movq	(%rcx,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	addl	(%rax), %ebx
	incl	%r14d
LBB0_20:
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	je	LBB0_49
## %bb.21:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r13
	movq	(%r12), %rax
	leaq	(%rax,%rax,2), %r12
	movq	16(%r13,%r12,8), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_kcalloc
	movq	%rax, 8(%r13,%r12,8)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movl	%ebx, (%r13,%r12,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	_BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SJA1105_MAX_SCHEDULE_ENTRY_POINTS_PARAMS_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	(%rax,%rax,2), %r12
	movq	16(%rbx,%r12,8), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kcalloc
	movq	%rax, 8(%rbx,%r12,8)
	testq	%rax, %rax
	je	LBB0_22
## %bb.24:
	movq	%rax, %r13
	movq	_SJA1105_MAX_SCHEDULE_ENTRY_POINTS_PARAMS_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx,%r12,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	_BLK_IDX_SCHEDULE_PARAMS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SJA1105_MAX_SCHEDULE_PARAMS_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	(%rax,%rax,2), %r12
	movq	16(%rbx,%r12,8), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kcalloc
	movq	%rax, 8(%rbx,%r12,8)
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_22
## %bb.25:
	movq	_SJA1105_MAX_SCHEDULE_PARAMS_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx,%r12,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	_BLK_IDX_SCHEDULE_ENTRY_POINTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rbx
	movq	16(%r12,%rbx,8), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_kcalloc
	movq	%rax, 8(%r12,%rbx,8)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_22
## %bb.26:
	movl	%r14d, (%r12,%rbx,8)
	movq	_SJA1105_TAS_CLKSRC_STANDALONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	decl	%r14d
	movl	%r14d, (%r13)
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %r10
	movl	(%r10), %eax
	testl	%eax, %eax
	jle	LBB0_49
## %bb.27:
	addq	$32, -64(%rbp)                  ## 8-byte Folded Spill
	xorl	%ebx, %ebx
	movq	_SJA1105_GATE_MASK@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_28 Depth=1
	incl	%esi
	movl	(%r10), %eax
LBB0_47:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_48
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
                                        ##     Child Loop BB0_37 Depth 2
                                        ##     Child Loop BB0_40 Depth 2
                                        ##     Child Loop BB0_44 Depth 2
	movq	8(%r12), %rcx
	movq	(%rcx,%rbx,8), %r15
	testq	%r15, %r15
	je	LBB0_47
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	(%r15), %ecx
	movslq	%esi, %rax
	leaq	(%rax,%rax,4), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, 4(%rdi,%rdx,8)
	movl	$1, 8(%rdi,%rdx,8)
	movl	%r13d, 12(%rdi,%rdx,8)
	cmpl	$7, %eax
	jg	LBB0_42
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	leal	(%rcx,%r13), %r11d
	decl	%r11d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rdx
	movl	$7, %r9d
	subl	%esi, %r9d
	cmpl	$7, %r9d
	jb	LBB0_40
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	movd	%r11d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rcx
	movq	%rcx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r10d
	andl	$3, %r10d
	cmpq	$24, %rcx
	jae	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_35
LBB0_33:                                ##   in Loop: Header=BB0_28 Depth=1
	andq	$-4, %rdi
	leaq	(%rdx,%rax,4), %rcx
	addq	$112, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -112(%rcx,%rsi,4)
	movdqu	%xmm0, -96(%rcx,%rsi,4)
	movdqu	%xmm0, -80(%rcx,%rsi,4)
	movdqu	%xmm0, -64(%rcx,%rsi,4)
	movdqu	%xmm0, -48(%rcx,%rsi,4)
	movdqu	%xmm0, -32(%rcx,%rsi,4)
	movdqu	%xmm0, -16(%rcx,%rsi,4)
	movdqu	%xmm0, (%rcx,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rdi
	jne	LBB0_34
LBB0_35:                                ##   in Loop: Header=BB0_28 Depth=1
	testq	%r10, %r10
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_28 Depth=1
	addq	%rax, %rsi
	leaq	(%rdx,%rsi,4), %rcx
	addq	$16, %rcx
	shlq	$5, %r10
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -16(%rcx,%rsi)
	movdqu	%xmm0, (%rcx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_37
LBB0_38:                                ##   in Loop: Header=BB0_28 Depth=1
	cmpq	%r8, %r9
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %r10
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_28 Depth=1
	addq	%r8, %rax
	.p2align	4, 0x90
LBB0_40:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r11d, (%rdx,%rax,4)
	incq	%rax
	cmpl	$8, %eax
	jne	LBB0_40
LBB0_41:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	(%r15), %ecx
LBB0_42:                                ##   in Loop: Header=BB0_28 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_46
## %bb.43:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %rcx
	movq	8(%r15), %rax
	leaq	(%rcx,%rcx,4), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%r13,8), %edi
	callq	_ns_to_sja1105_delta
	movl	%eax, -24(%r12)
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, (%r12)
	movl	$1, -8(%r12)
	movq	8(%r15), %rax
	movl	4(%rax,%r13,8), %ecx
	notl	%ecx
	andl	(%r14), %ecx
	movl	%ecx, -4(%r12)
	incq	%r13
	movslq	(%r15), %rcx
	addq	$40, %r12
	cmpq	%rcx, %r13
	jl	LBB0_44
## %bb.45:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	movq	%rax, %r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %r10
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_46
LBB0_48:
	xorl	%r15d, %r15d
	jmp	LBB0_49
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_49:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	addl	(%rdi), %ebx
	incl	%r14d
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%rcx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	addl	(%rdi), %ebx
	incl	%r14d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_IDX_SCHEDULE,8,3           ## @BLK_IDX_SCHEDULE
	.comm	_BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS,8,3 ## @BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS
	.comm	_BLK_IDX_SCHEDULE_PARAMS,8,3    ## @BLK_IDX_SCHEDULE_PARAMS
	.comm	_BLK_IDX_SCHEDULE_ENTRY_POINTS,8,3 ## @BLK_IDX_SCHEDULE_ENTRY_POINTS
	.comm	_SJA1105_NUM_PORTS,4,2          ## @SJA1105_NUM_PORTS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SJA1105_MAX_SCHEDULE_ENTRY_POINTS_PARAMS_COUNT,4,2 ## @SJA1105_MAX_SCHEDULE_ENTRY_POINTS_PARAMS_COUNT
	.comm	_SJA1105_MAX_SCHEDULE_PARAMS_COUNT,4,2 ## @SJA1105_MAX_SCHEDULE_PARAMS_COUNT
	.comm	_SJA1105_TAS_CLKSRC_STANDALONE,4,2 ## @SJA1105_TAS_CLKSRC_STANDALONE
	.comm	_SJA1105_GATE_MASK,4,2          ## @SJA1105_GATE_MASK
	.no_dead_strip	_sja1105_init_scheduling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_init_scheduling
_sja1105_init_scheduling:               ; @sja1105_init_scheduling
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _BLK_IDX_SCHEDULE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BLK_IDX_SCHEDULE@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	w10, #24
	madd	x20, x9, x10, x8
	ldr	w10, [x20]
	cbz	w10, LBB0_2
; %bb.1:
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x0, [x8, #8]
	bl	_kfree
	str	wzr, [x20]
	ldr	x8, [x19]
LBB0_2:
Lloh2:
	adrp	x24, _BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS@GOTPAGEOFF]
	ldr	x9, [x24]
	mov	w10, #24
	madd	x20, x9, x10, x8
	ldr	w10, [x20]
	cbz	w10, LBB0_4
; %bb.3:
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x0, [x8, #8]
	bl	_kfree
	str	wzr, [x20]
	ldr	x8, [x19]
LBB0_4:
Lloh4:
	adrp	x26, _BLK_IDX_SCHEDULE_PARAMS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _BLK_IDX_SCHEDULE_PARAMS@GOTPAGEOFF]
	ldr	x9, [x26]
	mov	w10, #24
	madd	x20, x9, x10, x8
	ldr	w10, [x20]
	cbz	w10, LBB0_6
; %bb.5:
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x0, [x8, #8]
	bl	_kfree
	str	wzr, [x20]
	ldr	x8, [x19]
LBB0_6:
Lloh6:
	adrp	x9, _BLK_IDX_SCHEDULE_ENTRY_POINTS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BLK_IDX_SCHEDULE_ENTRY_POINTS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x20, x9, x10, x8
	ldr	w10, [x20]
	cbz	w10, LBB0_8
; %bb.7:
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x0, [x8, #8]
	bl	_kfree
	str	wzr, [x20]
LBB0_8:
Lloh9:
	adrp	x8, _SJA1105_NUM_PORTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SJA1105_NUM_PORTS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.9:
	mov	w22, #0
	mov	w20, #0
	ldr	x9, [x19, #8]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w10, [x10]
	add	w20, w10, w20
	add	w22, w22, #1
	b	LBB0_10
LBB0_13:
	cbz	w22, LBB0_34
; %bb.14:
	ldr	x25, [x19]
	ldr	x28, [x21]
	mov	w8, #24
	madd	x27, x28, x8, x25
	ldr	x8, [x27, #16]
	ldr	w1, [x8]
Lloh12:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_kcalloc
	str	x0, [x27, #8]
	cbz	x0, LBB0_35
; %bb.15:
	mov	x23, x0
	mov	w8, #24
	mul	x9, x28, x8
	str	w20, [x25, x9]
	ldr	x20, [x19]
Lloh14:
	adrp	x28, _SJA1105_MAX_SCHEDULE_ENTRY_POINTS_PARAMS_COUNT@GOTPAGE
Lloh15:
	ldr	x28, [x28, _SJA1105_MAX_SCHEDULE_ENTRY_POINTS_PARAMS_COUNT@GOTPAGEOFF]
	ldr	x25, [x24]
	ldr	w0, [x28]
	madd	x27, x25, x8, x20
	ldr	x8, [x27, #16]
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_kcalloc
	str	x0, [x27, #8]
	cbz	x0, LBB0_35
; %bb.16:
	mov	x24, x0
	ldr	w8, [x28]
	mov	w9, #24
	mul	x10, x25, x9
	str	w8, [x20, x10]
	ldr	x20, [x19]
Lloh16:
	adrp	x28, _SJA1105_MAX_SCHEDULE_PARAMS_COUNT@GOTPAGE
Lloh17:
	ldr	x28, [x28, _SJA1105_MAX_SCHEDULE_PARAMS_COUNT@GOTPAGEOFF]
	ldr	x25, [x26]
	ldr	w0, [x28]
	madd	x26, x25, x9, x20
	ldr	x8, [x26, #16]
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_kcalloc
	str	x0, [x26, #8]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_35
; %bb.17:
	ldr	w8, [x28]
	mov	w9, #24
	mul	x10, x25, x9
	str	w8, [x20, x10]
	ldr	x20, [x19]
Lloh18:
	adrp	x8, _BLK_IDX_SCHEDULE_ENTRY_POINTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BLK_IDX_SCHEDULE_ENTRY_POINTS@GOTPAGEOFF]
Lloh20:
	ldr	x25, [x8]
	madd	x26, x25, x9, x20
	ldr	x8, [x26, #16]
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x22
	bl	_kcalloc
	str	x0, [x26, #8]
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_35
; %bb.18:
	mov	w8, #24
	mul	x8, x25, x8
	str	w22, [x20, x8]
Lloh21:
	adrp	x8, _SJA1105_TAS_CLKSRC_STANDALONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SJA1105_TAS_CLKSRC_STANDALONE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x24, #36]
	sub	w8, w22, #1
	str	w8, [x24]
Lloh24:
	adrp	x15, _SJA1105_NUM_PORTS@GOTPAGE
Lloh25:
	ldr	x15, [x15, _SJA1105_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x15]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.19:
	mov	x22, #0
	mov	w24, #0
	mov	w26, #0
	add	x9, x23, #32
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	mov	w16, #40
	mov	w28, #1
Lloh26:
	adrp	x23, _SJA1105_GATE_MASK@GOTPAGE
Lloh27:
	ldr	x23, [x23, _SJA1105_GATE_MASK@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	add	w26, w26, #1
	ldr	w8, [x15]
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_34
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
                                        ;     Child Loop BB0_28 Depth 2
                                        ;     Child Loop BB0_32 Depth 2
	ldr	x9, [x19, #8]
	ldr	x27, [x9, x22, lsl #3]
	cbz	x27, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w8, [x27]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	smaddl	x9, w26, w16, x9
	stp	w26, w28, [x9, #4]
	str	w24, [x9, #12]
	cmp	w26, #7
	b.gt	LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	add	w8, w24, w8
	sub	w8, w8, #1
	sxtw	x13, w26
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #16]
	mov	w10, #7
	sub	w11, w10, w26
	mov	x10, x13
	cmp	w11, #15
	b.lo	LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x11, x11, #1
	and	x12, x11, #0x1fffffff0
	add	x10, x12, x13
	dup.4s	v0, w8
	add	x13, x9, x13, lsl #2
	add	x13, x13, #32
	mov	x14, x12
LBB0_26:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_26
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	x11, x12
	b.eq	LBB0_29
LBB0_28:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w8, [x9, x10, lsl #2]
	add	x10, x10, #1
	cmp	w10, #8
	b.ne	LBB0_28
LBB0_29:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w8, [x27]
LBB0_30:                                ;   in Loop: Header=BB0_22 Depth=1
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.31:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x25, #0
	mov	x20, #0
	ldr	x8, [x27, #8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	smaddl	x21, w24, w16, x9
LBB0_32:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x8, x25]
	bl	_ns_to_sja1105_delta
	stur	w0, [x21, #-24]
	mov	x0, x22
	bl	_BIT
	str	w0, [x21]
	stur	w28, [x21, #-8]
	ldr	w9, [x23]
	ldr	x8, [x27, #8]
	add	x10, x8, x25
	ldr	w10, [x10, #4]
	bic	w9, w9, w10
	stur	w9, [x21, #-4]
	add	x20, x20, #1
	ldrsw	x9, [x27]
	add	x25, x25, #8
	add	x21, x21, #40
	cmp	x20, x9
	b.lt	LBB0_32
; %bb.33:                               ;   in Loop: Header=BB0_22 Depth=1
	add	w24, w24, w20
Lloh28:
	adrp	x15, _SJA1105_NUM_PORTS@GOTPAGE
Lloh29:
	ldr	x15, [x15, _SJA1105_NUM_PORTS@GOTPAGEOFF]
	mov	w16, #40
	b	LBB0_20
LBB0_34:
	mov	w0, #0
	b	LBB0_36
LBB0_35:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_36:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_IDX_SCHEDULE,8,3           ; @BLK_IDX_SCHEDULE
	.comm	_BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS,8,3 ; @BLK_IDX_SCHEDULE_ENTRY_POINTS_PARAMS
	.comm	_BLK_IDX_SCHEDULE_PARAMS,8,3    ; @BLK_IDX_SCHEDULE_PARAMS
	.comm	_BLK_IDX_SCHEDULE_ENTRY_POINTS,8,3 ; @BLK_IDX_SCHEDULE_ENTRY_POINTS
	.comm	_SJA1105_NUM_PORTS,4,2          ; @SJA1105_NUM_PORTS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SJA1105_MAX_SCHEDULE_ENTRY_POINTS_PARAMS_COUNT,4,2 ; @SJA1105_MAX_SCHEDULE_ENTRY_POINTS_PARAMS_COUNT
	.comm	_SJA1105_MAX_SCHEDULE_PARAMS_COUNT,4,2 ; @SJA1105_MAX_SCHEDULE_PARAMS_COUNT
	.comm	_SJA1105_TAS_CLKSRC_STANDALONE,4,2 ; @SJA1105_TAS_CLKSRC_STANDALONE
	.comm	_SJA1105_GATE_MASK,4,2          ; @SJA1105_GATE_MASK
	.no_dead_strip	_sja1105_init_scheduling
.subsections_via_symbols
