	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_clk_ctor                 ## -- Begin function gk20a_clk_ctor
	.p2align	4, 0x90
_gk20a_clk_ctor:                        ## @gk20a_clk_ctor
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_3
## %bb.1:
	movq	8(%rbx), %rdi
	movl	$4, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	incq	%r14
	movq	8(%rbx), %rdi
	movl	%r14d, -4(%rdi,%r13)
	movslq	(%rbx), %rax
	addq	$8, %r13
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_clk_get_rate
	movl	%eax, (%r15)
	leaq	4(%r15), %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	movq	%r14, %r8
	callq	_nvkm_clk_ctor
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %eax
	movq	_KHZ@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_nvkm_debug
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %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	"parent clock rate: %d Khz\n"

	.comm	_KHZ,4,2                        ## @KHZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_clk_ctor                 ; -- Begin function gk20a_clk_ctor
	.p2align	2
_gk20a_clk_ctor:                        ; @gk20a_clk_ctor
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	mov	x24, x0
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	mov	x26, #0
	ldr	x8, [x21, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x25
	add	x0, x8, #4
	bl	_INIT_LIST_HEAD
	add	x26, x26, #1
	ldr	x8, [x21, #8]
	str	w26, [x8, x25]
	ldrsw	x9, [x21]
	add	x25, x25, #8
	cmp	x26, x9
	b.lt	LBB0_2
LBB0_3:
	str	x23, [x19, #8]
	ldr	w0, [x24]
	bl	_clk_get_rate
	str	w0, [x19]
	add	x23, x19, #4
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	w3, #1
	mov	x4, x23
	bl	_nvkm_clk_ctor
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _KHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KHZ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w2, w8, w9
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_nvkm_debug
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parent clock rate: %d Khz\n"

	.comm	_KHZ,4,2                        ; @KHZ
.subsections_via_symbols
