	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gk20a_pmu_init
_gk20a_pmu_init:                        ## @gk20a_pmu_init
	.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	%rdi, %rbx
	callq	_gk20a_pmu
	movq	%rax, %r14
	leaq	8(%rbx), %r13
	movq	(%rbx), %r12
	movq	8(%rbx), %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_nvkm_falcon_get
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_nvkm_error
	jmp	LBB0_3
LBB0_2:
	movq	_BUSY_SLOT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	shll	$4, %esi
	addl	$1284, %esi                     ## imm = 0x504
	movq	%r12, %rdi
	movl	$2097153, %edx                  ## imm = 0x200001
	callq	_nvkm_falcon_wr32
	movl	(%r13), %esi
	shll	$4, %esi
	addl	$1292, %esi                     ## imm = 0x50C
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_nvkm_falcon_wr32
	movq	_CLK_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$4, %esi
	addl	$1292, %esi                     ## imm = 0x50C
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_nvkm_falcon_wr32
	movl	(%rbx), %edi
	movl	$2000000000, %esi               ## imm = 0x77359400
	movq	%r14, %rdx
	callq	_nvkm_timer_alarm
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot acquire %s falcon!\n"

	.comm	_BUSY_SLOT,4,2                  ## @BUSY_SLOT
	.comm	_CLK_SLOT,4,2                   ## @CLK_SLOT
	.no_dead_strip	_gk20a_pmu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gk20a_pmu_init
_gk20a_pmu_init:                        ; @gk20a_pmu_init
	.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, x0
	bl	_gk20a_pmu
	mov	x20, x0
	mov	x22, x19
	ldr	x23, [x22, #8]!
	ldr	x21, [x19]
	mov	x0, x21
	mov	x1, x22
	bl	_nvkm_falcon_get
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_nvkm_error
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x22, _BUSY_SLOT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BUSY_SLOT@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w8, w8, #4
	add	w1, w8, #1284
	mov	x0, x21
	mov	w2, #1
	movk	w2, #32, lsl #16
	bl	_nvkm_falcon_wr32
	ldr	w8, [x22]
	lsl	w8, w8, #4
	add	w1, w8, #1292
	mov	x0, x21
	mov	w2, #2
	bl	_nvkm_falcon_wr32
Lloh4:
	adrp	x8, _CLK_SLOT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CLK_SLOT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	lsl	w8, w8, #4
	add	w1, w8, #1292
	mov	x0, x21
	mov	w2, #3
	bl	_nvkm_falcon_wr32
	ldr	w0, [x23]
	mov	w1, #37888
	movk	w1, #30517, lsl #16
	mov	x2, x20
	bl	_nvkm_timer_alarm
LBB0_3:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot acquire %s falcon!\n"

	.comm	_BUSY_SLOT,4,2                  ; @BUSY_SLOT
	.comm	_CLK_SLOT,4,2                   ; @CLK_SLOT
	.no_dead_strip	_gk20a_pmu_init
.subsections_via_symbols
