	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_clk_new_                  ## -- Begin function nv50_clk_new_
	.p2align	4, 0x90
_nv50_clk_new_:                         ## @nv50_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	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%r15d, %ecx
	leaq	40(%rax), %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_nvkm_clk_ctor
	movq	%r15, (%rbx)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	$9476, %edi                     ## imm = 0x2504
	callq	_hwsq_reg
	movq	%rax, 32(%r13)
	movl	$16416, %edi                    ## imm = 0x4020
	callq	_hwsq_reg
	movq	24(%r13), %rcx
	movq	%rax, (%rcx)
	movl	$16420, %edi                    ## imm = 0x4024
	callq	_hwsq_reg
	movq	24(%r13), %rcx
	movq	%rax, 8(%rcx)
	movl	$16424, %edi                    ## imm = 0x4028
	callq	_hwsq_reg
	movq	16(%r13), %rcx
	movq	%rax, (%rcx)
	movl	$16428, %edi                    ## imm = 0x402C
	callq	_hwsq_reg
	movq	16(%r13), %rcx
	movq	%rax, 8(%rcx)
	movl	$-146, %eax
	addl	(%r12), %eax
	movl	$18176, %edi                    ## imm = 0x4700
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.4:
	cltq
	leaq	l_switch.table.nv50_clk_new_(%rip), %rcx
	movl	(%rcx,%rax,4), %edi
LBB0_5:
	callq	_hwsq_reg
	movq	%rax, 8(%r13)
	movl	$49216, %edi                    ## imm = 0xC040
	callq	_hwsq_reg
	movq	%rax, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.nv50_clk_new_
l_switch.table.nv50_clk_new_:
	.long	18432                           ## 0x4800
	.long	18176                           ## 0x4700
	.long	18432                           ## 0x4800
	.long	18176                           ## 0x4700
	.long	18432                           ## 0x4800

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_clk_new_                  ; -- Begin function nv50_clk_new_
	.p2align	2
_nv50_clk_new_:                         ; @nv50_clk_new_
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x24, x0
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_4
; %bb.1:
	mov	x19, x0
	add	x25, x0, #40
	mov	x0, x24
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x25
	bl	_nvkm_clk_ctor
	str	x25, [x21]
	cbnz	w0, LBB0_7
; %bb.2:
	mov	w0, #9476
	bl	_hwsq_reg
	str	x0, [x19, #32]
	mov	w0, #16416
	bl	_hwsq_reg
	ldr	x8, [x19, #24]
	str	x0, [x8]
	mov	w0, #16420
	bl	_hwsq_reg
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
	mov	w0, #16424
	bl	_hwsq_reg
	ldr	x8, [x19, #16]
	str	x0, [x8]
	mov	w0, #16428
	bl	_hwsq_reg
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	ldr	w8, [x20]
	sub	w8, w8, #146
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, l_switch.table.nv50_clk_new_@PAGE
Lloh4:
	add	x9, x9, l_switch.table.nv50_clk_new_@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	w0, #18176
LBB0_6:
	bl	_hwsq_reg
	str	x0, [x19, #8]
	mov	w0, #49216
	bl	_hwsq_reg
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.nv50_clk_new_
l_switch.table.nv50_clk_new_:
	.long	18432                           ; 0x4800
	.long	18176                           ; 0x4700
	.long	18432                           ; 0x4800
	.long	18176                           ; 0x4700
	.long	18432                           ; 0x4800

.subsections_via_symbols
