	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_initialize_smc_dte_tables
_si_initialize_smc_dte_tables:          ## @si_initialize_smc_dte_tables
	.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
	callq	_si_get_pi
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	cmpq	$0, 16(%rax)
	jle	LBB0_3
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_SMC_SISLANDS_DTE_MAX_FILTER_STAGES@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	cmpq	%r12, %rax
	cmovlq	%rax, %r12
	movq	_SMC_SISLANDS_DTE_MAX_TEMPERATURE_DEPENDENT_ARRAY_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmpq	%r13, %rcx
	cmovlq	%rcx, %r13
	movq	%r12, %rdi
	callq	_cpu_to_be32
	movq	%rax, 88(%r15)
	movq	32(%r14), %rdi
	callq	_cpu_to_be32
	movq	%rax, 80(%r15)
	movq	40(%r14), %rdi
	callq	_cpu_to_be32
	movq	%rax, 72(%r15)
	movl	104(%r14), %eax
	movl	%eax, 64(%r15)
	movl	100(%r14), %eax
	movl	%eax, 60(%r15)
	movl	96(%r14), %eax
	movl	%eax, 56(%r15)
	movq	48(%r14), %rdi
	callq	_cpu_to_be32
	movq	%rax, 48(%r15)
	xorl	%eax, %eax
	testq	%r13, %r13
	setg	%al
	subq	%rax, %r12
	testq	%r12, %r12
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_cpu_to_be32
	movq	40(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	64(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_cpu_to_be32
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_9
LBB0_10:
	movq	%r13, 24(%r15)
	testq	%r13, %r13
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	88(%r14), %rax
	movl	(%rax,%rbx,4), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	72(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_cpu_to_be32
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	80(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_cpu_to_be32
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_12
LBB0_13:
	movl	4(%r14), %r8d
	movl	8(%r14), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	$96, %ecx
	callq	_si_copy_bytes_to_smc
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movl	$0, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SMC_SISLANDS_DTE_MAX_FILTER_STAGES,8,3 ## @SMC_SISLANDS_DTE_MAX_FILTER_STAGES
	.comm	_SMC_SISLANDS_DTE_MAX_TEMPERATURE_DEPENDENT_ARRAY_SIZE,8,3 ## @SMC_SISLANDS_DTE_MAX_TEMPERATURE_DEPENDENT_ARRAY_SIZE
	.no_dead_strip	_si_initialize_smc_dte_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_initialize_smc_dte_tables
_si_initialize_smc_dte_tables:          ; @si_initialize_smc_dte_tables
	.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	x19, x0
	bl	_si_get_pi
	ldr	w8, [x0]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cmp	x8, #0
	b.le	LBB0_11
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #96
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x8, _SMC_SISLANDS_DTE_MAX_FILTER_STAGES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMC_SISLANDS_DTE_MAX_FILTER_STAGES@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldp	x9, x10, [x20, #16]
	cmp	x9, x8
	csel	x22, x9, x8, lt
Lloh6:
	adrp	x8, _SMC_SISLANDS_DTE_MAX_TEMPERATURE_DEPENDENT_ARRAY_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMC_SISLANDS_DTE_MAX_TEMPERATURE_DEPENDENT_ARRAY_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x10, x8
	csel	x23, x10, x8, lt
	mov	x0, x22
	bl	_cpu_to_be32
	str	x0, [x21, #88]
	ldr	x0, [x20, #32]
	bl	_cpu_to_be32
	str	x0, [x21, #80]
	ldr	x0, [x20, #40]
	bl	_cpu_to_be32
	str	x0, [x21, #72]
	ldr	w8, [x20, #104]
	str	w8, [x21, #64]
	ldr	d0, [x20, #96]
	str	d0, [x21, #56]
	ldr	x0, [x20, #48]
	bl	_cpu_to_be32
	str	x0, [x21, #48]
	cmp	x23, #0
	cset	w8, gt
	sub	x22, x22, x8
	cmp	x22, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #56]
	lsl	x25, x24, #3
	ldr	x0, [x8, x25]
	bl	_cpu_to_be32
	ldr	x8, [x21, #40]
	str	x0, [x8, x25]
	ldr	x8, [x20, #64]
	ldr	x0, [x8, x25]
	bl	_cpu_to_be32
	ldr	x8, [x21, #32]
	str	x0, [x8, x25]
	add	x24, x24, #1
	cmp	x22, x24
	b.ne	LBB0_5
LBB0_6:
	str	x23, [x21, #24]
	cmp	x23, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #88]
	lsl	x9, x22, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x21, #16]
	str	w8, [x10, x9]
	ldr	x8, [x20, #72]
	lsl	x24, x22, #3
	ldr	x0, [x8, x24]
	bl	_cpu_to_be32
	ldr	x8, [x21, #8]
	str	x0, [x8, x24]
	ldr	x8, [x20, #80]
	ldr	x0, [x8, x24]
	bl	_cpu_to_be32
	ldr	x8, [x21]
	str	x0, [x8, x24]
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_8
LBB0_9:
	ldp	w4, w1, [x20, #4]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #96
	bl	_si_copy_bytes_to_smc
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	b	LBB0_14
LBB0_10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	str	wzr, [x20]
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SMC_SISLANDS_DTE_MAX_FILTER_STAGES,8,3 ; @SMC_SISLANDS_DTE_MAX_FILTER_STAGES
	.comm	_SMC_SISLANDS_DTE_MAX_TEMPERATURE_DEPENDENT_ARRAY_SIZE,8,3 ; @SMC_SISLANDS_DTE_MAX_TEMPERATURE_DEPENDENT_ARRAY_SIZE
	.no_dead_strip	_si_initialize_smc_dte_tables
.subsections_via_symbols
