	.file	"extr_nv50.c_nv50_clk_new_.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nv50_clk_new_
	.type	nv50_clk_new_, @function
nv50_clk_new_:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	edi, 48
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	test	rax, rax
	je	.L11
	lea	r8, 40[rax]
	mov	rdi, r12
	mov	ecx, r15d
	mov	edx, r14d
	mov	rsi, rbp
	mov	QWORD PTR 8[rsp], r8
	mov	rbx, rax
	call	nvkm_clk_ctor@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	r12d, eax
	mov	QWORD PTR 0[r13], r8
	test	eax, eax
	je	.L12
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, 9476
	call	hwsq_reg@PLT
	mov	r13, QWORD PTR 24[rbx]
	mov	edi, 16416
	mov	QWORD PTR 32[rbx], rax
	call	hwsq_reg@PLT
	mov	edi, 16420
	mov	QWORD PTR 0[r13], rax
	mov	r13, QWORD PTR 24[rbx]
	call	hwsq_reg@PLT
	mov	edi, 16424
	mov	QWORD PTR 8[r13], rax
	mov	r13, QWORD PTR 16[rbx]
	call	hwsq_reg@PLT
	mov	edi, 16428
	mov	QWORD PTR 0[r13], rax
	mov	r13, QWORD PTR 16[rbx]
	call	hwsq_reg@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	QWORD PTR 8[r13], rax
	sub	ecx, 146
	cmp	ecx, 4
	ja	.L4
	mov	eax, 1
	sal	rax, cl
	test	al, 21
	je	.L4
	mov	edi, 18432
	call	hwsq_reg@PLT
	mov	edi, 49216
	mov	QWORD PTR 8[rbx], rax
	call	hwsq_reg@PLT
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L4:
	mov	edi, 18176
	call	hwsq_reg@PLT
	mov	edi, 49216
	mov	QWORD PTR 8[rbx], rax
	call	hwsq_reg@PLT
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nv50_clk_new_, .-nv50_clk_new_
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nv50.c_nv50_clk_new_.c"
	.text
	.align	2
	.global	nv50_clk_new_
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv50_clk_new_, %function
nv50_clk_new_:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r1, .L14
	mov	r6, r0
	ldr	r1, [r1]
	mov	r0, #24
	sub	sp, sp, #8
	mov	r7, r2
	mov	r8, r3
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L11
	add	r1, r4, #20
	mov	r3, r8
	mov	r2, r7
	mov	r0, r6
	str	r1, [sp]
	mov	r6, r1
	mov	r1, r5
	bl	nvkm_clk_ctor
	ldr	r3, [sp, #32]
	subs	r7, r0, #0
	str	r6, [r3]
	beq	.L12
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r0, .L14+4
	bl	hwsq_reg
	mov	r3, r0
	ldr	r0, .L14+8
	str	r3, [r4, #16]
	ldr	r6, [r4, #12]
	bl	hwsq_reg
	str	r0, [r6]
	ldr	r0, .L14+12
	ldr	r6, [r4, #12]
	bl	hwsq_reg
	str	r0, [r6, #4]
	ldr	r0, .L14+16
	ldr	r6, [r4, #8]
	bl	hwsq_reg
	str	r0, [r6]
	ldr	r0, .L14+20
	ldr	r6, [r4, #8]
	bl	hwsq_reg
	ldr	r3, [r5]
	str	r0, [r6, #4]
	sub	r2, r3, #146
	cmp	r2, #4
	bhi	.L4
	mov	r3, #1
	lsl	r3, r3, r2
	tst	r3, #21
	beq	.L4
	mov	r0, #18432
	bl	hwsq_reg
	str	r0, [r4, #4]
	ldr	r0, .L14+24
	bl	hwsq_reg
	str	r0, [r4]
.L13:
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L14+28
	ldr	r0, [r3]
	rsb	r7, r0, #0
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, #18176
	bl	hwsq_reg
	str	r0, [r4, #4]
	ldr	r0, .L14+24
	bl	hwsq_reg
	str	r0, [r4]
	b	.L13
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	9476
	.word	16416
	.word	16420
	.word	16424
	.word	16428
	.word	49216
	.word	ENOMEM
	.size	nv50_clk_new_, .-nv50_clk_new_
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
