	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_governor_get_target
_tegra_governor_get_target:             ## @tegra_governor_get_target
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_devfreq_update_stats
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r15
	leaq	(%r15,%rbx), %rsi
	movq	%r12, %rdi
	callq	_actmon_update_target
	movl	(%r15,%rbx), %esi
	movq	%r13, %rdi
	callq	_max
	movq	%rax, %r13
	incq	%r14
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jb	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%r13d, %r13d
LBB0_5:
	movq	_KHZ@GOTPCREL(%rip), %rax
	imulq	(%rax), %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	xorl	%eax, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KHZ,8,3                        ## @KHZ
	.no_dead_strip	_tegra_governor_get_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_governor_get_target
_tegra_governor_get_target:             ; @tegra_governor_get_target
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_devfreq_update_stats
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x20, [x20]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.2:
	mov	x23, #0
	mov	x24, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x22, x8, x23
	mov	x0, x20
	mov	x1, x22
	bl	_actmon_update_target
	ldr	w1, [x22]
	mov	x0, x21
	bl	_max
	mov	x21, x0
	add	x24, x24, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x23, x23, #4
	cmp	x24, w0, uxtw
	b.lo	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
	mov	w0, #0
Lloh0:
	adrp	x8, _KHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KHZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mul	x8, x8, x21
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KHZ,8,3                        ; @KHZ
	.no_dead_strip	_tegra_governor_get_target
.subsections_via_symbols
