	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm20b_clk_new                  ## -- Begin function gm20b_clk_new
	.p2align	4, 0x90
_gm20b_clk_new:                         ## @gm20b_clk_new
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	callq	*(%rax)
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %rbx
	leaq	8(%rax), %r8
	leaq	20(%rax), %r13
	movq	%r13, (%r14)
	movq	%rax, %rcx
	addq	$24, %rcx
	movq	_gm20b_pllg_params@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdx
	movq	%rdx, 40(%rbx)
	movups	(%rax), %xmm0
	movups	%xmm0, 24(%rbx)
	movq	_gm20b_clk@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_gk20a_clk_ctor
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movl	8(%rbx), %eax
	movl	40(%rbx), %edi
	movq	_KHZ@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	_pl_to_div@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_div_to_pl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_gm20b_dvfs_params@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_gm20b_clk_init_fused_params
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_nvkm_warn
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gm20b_clk_init_safe_fmax       ## TAILCALL
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_nvkm_warn
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gm20b_clk_new_speedo0          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gm20b_pllg_params,24,3         ## @gm20b_pllg_params
	.comm	_gm20b_clk,4,2                  ## @gm20b_clk
	.comm	_KHZ,4,2                        ## @KHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot use NAPLL, using legacy clock...\n"

	.comm	_pl_to_div,4,2                  ## @pl_to_div
	.comm	_div_to_pl,4,2                  ## @div_to_pl
	.comm	_gm20b_dvfs_params,4,2          ## @gm20b_dvfs_params
L_.str.1:                               ## @.str.1
	.asciz	"no fused calibration parameters\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm20b_clk_new                  ; -- Begin function gm20b_clk_new
	.p2align	2
_gm20b_clk_new:                         ; @gm20b_clk_new
	.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, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	add	x4, x0, #8
	add	x23, x0, #20
	str	x23, [x19]
	add	x3, x0, #24
Lloh3:
	adrp	x8, _gm20b_pllg_params@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gm20b_pllg_params@GOTPAGEOFF]
	ldr	q0, [x8]
	stur	q0, [x0, #24]
	ldr	x8, [x8, #16]
	str	x8, [x0, #40]
Lloh5:
	adrp	x2, _gm20b_clk@GOTPAGE
Lloh6:
	ldr	x2, [x2, _gm20b_clk@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x20
	bl	_gk20a_clk_ctor
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w0, [x21, #40]
	ldr	w8, [x21, #8]
Lloh7:
	adrp	x9, _KHZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _KHZ@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sdiv	w1, w8, w9
	bl	_DIV_ROUND_UP
	stp	x0, x0, [x21, #24]
	cbz	x0, LBB0_9
; %bb.4:
Lloh10:
	adrp	x8, _pl_to_div@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pl_to_div@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _div_to_pl@GOTPAGE
Lloh14:
	ldr	x9, [x9, _div_to_pl@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #12]
Lloh16:
	adrp	x8, _gm20b_dvfs_params@GOTPAGE
Lloh17:
	ldr	x8, [x8, _gm20b_dvfs_params@GOTPAGEOFF]
	str	x8, [x21]
	mov	x0, x21
	bl	_gm20b_clk_init_fused_params
	cbz	w0, LBB0_6
; %bb.5:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_nvkm_warn
LBB0_6:
	mov	x0, x21
	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
	b	_gm20b_clk_init_safe_fmax
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_nvkm_warn
	mov	x0, x21
	bl	_kfree
LBB0_10:
	mov	x0, x22
	mov	x1, x20
	mov	x2, 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
	b	_gm20b_clk_new_speedo0
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gm20b_pllg_params,24,3         ; @gm20b_pllg_params
	.comm	_gm20b_clk,4,2                  ; @gm20b_clk
	.comm	_KHZ,4,2                        ; @KHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot use NAPLL, using legacy clock...\n"

	.comm	_pl_to_div,4,2                  ; @pl_to_div
	.comm	_div_to_pl,4,2                  ; @div_to_pl
	.comm	_gm20b_dvfs_params,4,2          ; @gm20b_dvfs_params
l_.str.1:                               ; @.str.1
	.asciz	"no fused calibration parameters\n"

.subsections_via_symbols
