	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_apply_disp_minimum_voltage_request
_ci_apply_disp_minimum_voltage_request: ## @ci_apply_disp_minimum_voltage_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_17
## %bb.1:
	movq	(%rdi), %rdx
	movq	32(%rdi), %r8
	cmpq	$1, %r9
	jne	LBB0_8
## %bb.2:
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
LBB0_3:
	testb	$1, %r9b
	je	LBB0_6
## %bb.4:
	shlq	$4, %rcx
	cmpq	(%r8,%rcx), %rdx
	jne	LBB0_6
## %bb.5:
	movq	8(%r8,%rcx), %r10
LBB0_6:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	16(%rdi), %rcx
	addq	$8, %rcx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	cmpq	%rdx, %r10
	jbe	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	$16, %rcx
	decq	%rax
	jne	LBB0_15
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_8:
	movq	%r9, %rsi
	andq	$-2, %rsi
	leaq	24(%r8), %rax
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %rcx
	addq	$32, %rax
	cmpq	%rcx, %rsi
	je	LBB0_3
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-24(%rax), %rdx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-16(%rax), %r10
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	-8(%rax), %rdx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rax), %r10
	jmp	LBB0_13
LBB0_16:
	movq	_PPSMC_MSG_VddC_Request@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdx
	callq	_ci_send_msg_to_smc_with_parameter
	movq	%rax, %rcx
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %rdx
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	cmpq	(%rdx), %rcx
	cmovel	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PPSMC_MSG_VddC_Request,4,2     ## @PPSMC_MSG_VddC_Request
	.comm	_VOLTAGE_SCALE,8,3              ## @VOLTAGE_SCALE
	.comm	_PPSMC_Result_OK,8,3            ## @PPSMC_Result_OK
	.no_dead_strip	_ci_apply_disp_minimum_voltage_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_apply_disp_minimum_voltage_request
_ci_apply_disp_minimum_voltage_request: ; @ci_apply_disp_minimum_voltage_request
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0, #24]
	cbz	x9, LBB0_9
; %bb.1:
	mov	x8, #0
	ldr	x10, [x0]
	ldr	x11, [x0, #32]
	add	x11, x11, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #16
	subs	x9, x9, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x11, #-8]
	cmp	x10, x12
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x11]
	b	LBB0_2
LBB0_5:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_9
; %bb.6:
	ldr	x10, [x0, #16]
	add	x10, x10, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x8, x11
	b.ls	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_9:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh3:
	adrp	x8, _PPSMC_MSG_VddC_Request@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_VddC_Request@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _VOLTAGE_SCALE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VOLTAGE_SCALE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mul	x2, x8, x11
	bl	_ci_send_msg_to_smc_with_parameter
Lloh9:
	adrp	x8, _PPSMC_Result_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PPSMC_Result_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _EINVAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	x0, x8
	csneg	w0, wzr, w9, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PPSMC_MSG_VddC_Request,4,2     ; @PPSMC_MSG_VddC_Request
	.comm	_VOLTAGE_SCALE,8,3              ; @VOLTAGE_SCALE
	.comm	_PPSMC_Result_OK,8,3            ; @PPSMC_Result_OK
	.no_dead_strip	_ci_apply_disp_minimum_voltage_request
.subsections_via_symbols
