	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_actmon_start
_tegra_actmon_start:                    ## @tegra_actmon_start
	.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
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_disable_irq
	movq	_ACTMON_SAMPLING_PERIOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	_ACTMON_GLB_PERIOD_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_actmon_writel
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_tegra_actmon_configure_device
	incq	%rbx
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_actmon_write_barrier
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enable_irq                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACTMON_SAMPLING_PERIOD,8,3     ## @ACTMON_SAMPLING_PERIOD
	.comm	_ACTMON_GLB_PERIOD_CTRL,4,2     ## @ACTMON_GLB_PERIOD_CTRL
	.no_dead_strip	_tegra_actmon_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_actmon_start
_tegra_actmon_start:                    ; @tegra_actmon_start
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_disable_irq
Lloh0:
	adrp	x8, _ACTMON_SAMPLING_PERIOD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACTMON_SAMPLING_PERIOD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x1, x8, #1
Lloh3:
	adrp	x8, _ACTMON_GLB_PERIOD_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACTMON_GLB_PERIOD_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_actmon_writel
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_tegra_actmon_configure_device
	add	x21, x21, #1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	add	x20, x20, #4
	cmp	x21, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_actmon_write_barrier
	ldr	w0, [x19]
	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
	b	_enable_irq
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ACTMON_SAMPLING_PERIOD,8,3     ; @ACTMON_SAMPLING_PERIOD
	.comm	_ACTMON_GLB_PERIOD_CTRL,4,2     ; @ACTMON_GLB_PERIOD_CTRL
	.no_dead_strip	_tegra_actmon_start
.subsections_via_symbols
