	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trinity_get_vce_clock_voltage
_trinity_get_vce_clock_voltage:         ## @trinity_get_vce_clock_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%r10d, %r10d
	movq	%rdx, %rax
	orq	%rsi, %rax
	je	LBB0_1
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movq	(%rdi), %r9
	movl	$0, %eax
	testq	%r9, %r9
	je	LBB0_15
## %bb.5:
	jle	LBB0_11
## %bb.6:
	movq	8(%rdi), %r10
	addq	$16, %r10
	movq	%r9, %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$24, %r10
	decq	%rax
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, -16(%r10)
	jl	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rdx, -8(%r10)
	jl	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
                                        ## implicit-def: $r9
LBB0_11:
	testl	%r8d, %r8d
	je	LBB0_12
## %bb.13:
	negl	%r8d
	movq	8(%rdi), %rax
	leaq	(%r9,%r9,2), %rdx
	leaq	(%rax,%rdx,8), %r10
	addq	$-8, %r10
	movl	%r8d, %eax
LBB0_14:
	movl	(%r10), %r10d
LBB0_15:
	movl	%r10d, (%rcx)
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_trinity_get_vce_clock_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trinity_get_vce_clock_voltage
_trinity_get_vce_clock_voltage:         ; @trinity_get_vce_clock_voltage
	.cfi_startproc
; %bb.0:
	orr	x8, x2, x1
	cbz	x8, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	x0, LBB0_10
; %bb.2:
	ldr	x9, [x0]
	cbz	x9, LBB0_14
; %bb.3:
	cmp	x9, #1
	b.lt	LBB0_11
; %bb.4:
	ldr	x10, [x0, #8]
	add	x10, x10, #16
	mov	x11, x9
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x10, #24
	subs	x11, x11, #1
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-16]
	cmp	x12, x1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x12, [x10, #-8]
	cmp	x12, x2
	b.lt	LBB0_5
; %bb.8:
	mov	w8, #0
	b	LBB0_13
LBB0_9:
	mov	w9, #0
	b	LBB0_15
LBB0_10:
                                        ; implicit-def: $x9
LBB0_11:
	cbz	w8, LBB0_16
; %bb.12:
	neg	w8, w8
	ldr	x10, [x0, #8]
	mov	w11, #24
	madd	x9, x9, x11, x10
	sub	x10, x9, #8
LBB0_13:
	ldr	w9, [x10]
	b	LBB0_15
LBB0_14:
	mov	w8, #0
LBB0_15:
	str	w9, [x3]
LBB0_16:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_trinity_get_vce_clock_voltage
.subsections_via_symbols
