	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_upload_smc_data
_si_upload_smc_data:                    ## @si_upload_smc_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 16(%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	movl	24(%rbx), %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %edx
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpl	%ecx, %eax
	jne	LBB0_3
	jmp	LBB0_10
LBB0_5:
	movq	8(%rbx), %rax
	movq	(%rax,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.6:
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.7:
	movq	_SI_SMC_SOFT_REGISTER_crtc_index@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_si_write_smc_soft_register
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.8:
	movq	_SI_SMC_SOFT_REGISTER_mclk_change_block_cp_min@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %eax
	cltd
	idivl	(%r14)
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_si_write_smc_soft_register
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.9:
	movq	_SI_SMC_SOFT_REGISTER_mclk_change_block_cp_max@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %eax
	cltd
	idivl	(%r14)
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_si_write_smc_soft_register
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI_SMC_SOFT_REGISTER_crtc_index,4,2 ## @SI_SMC_SOFT_REGISTER_crtc_index
	.comm	_PPSMC_Result_OK,8,3            ## @PPSMC_Result_OK
	.comm	_SI_SMC_SOFT_REGISTER_mclk_change_block_cp_min,4,2 ## @SI_SMC_SOFT_REGISTER_mclk_change_block_cp_min
	.comm	_SI_SMC_SOFT_REGISTER_mclk_change_block_cp_max,4,2 ## @SI_SMC_SOFT_REGISTER_mclk_change_block_cp_max
	.no_dead_strip	_si_upload_smc_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_upload_smc_data
_si_upload_smc_data:                    ; @si_upload_smc_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x9, #0
	ldr	w10, [x19, #24]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w10, w9
	tbnz	w11, #0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	w8, w9
	b.ne	LBB0_3
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x9, lsl #3]
	cbz	x20, LBB0_10
; %bb.6:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
Lloh0:
	adrp	x8, _SI_SMC_SOFT_REGISTER_crtc_index@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI_SMC_SOFT_REGISTER_crtc_index@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_si_write_smc_soft_register
Lloh3:
	adrp	x21, _PPSMC_Result_OK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PPSMC_Result_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
Lloh5:
	adrp	x8, _SI_SMC_SOFT_REGISTER_mclk_change_block_cp_min@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SI_SMC_SOFT_REGISTER_mclk_change_block_cp_min@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ldr	w9, [x20]
	sdiv	w2, w8, w9
	mov	x0, x19
	bl	_si_write_smc_soft_register
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _SI_SMC_SOFT_REGISTER_mclk_change_block_cp_max@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SI_SMC_SOFT_REGISTER_mclk_change_block_cp_max@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x20, #12]
	ldr	w9, [x20]
	sdiv	w2, w8, w9
	mov	x0, x19
	bl	_si_write_smc_soft_register
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SI_SMC_SOFT_REGISTER_crtc_index,4,2 ; @SI_SMC_SOFT_REGISTER_crtc_index
	.comm	_PPSMC_Result_OK,8,3            ; @PPSMC_Result_OK
	.comm	_SI_SMC_SOFT_REGISTER_mclk_change_block_cp_min,4,2 ; @SI_SMC_SOFT_REGISTER_mclk_change_block_cp_min
	.comm	_SI_SMC_SOFT_REGISTER_mclk_change_block_cp_max,4,2 ; @SI_SMC_SOFT_REGISTER_mclk_change_block_cp_max
	.no_dead_strip	_si_upload_smc_data
.subsections_via_symbols
