	.file	"extr_clk-aspeed.c_aspeed_clk_hw_register_gate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aspeed_clk_hw_register_gate, @function
aspeed_clk_hw_register_gate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, 48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR 160[rsp]
	mov	QWORD PTR 24[rsp], rdx
	mov	QWORD PTR 8[rsp], r8
	mov	r15, QWORD PTR 144[rsp]
	mov	QWORD PTR 16[rsp], rax
	mov	r14, QWORD PTR 152[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	kzalloc@PLT
	test	rax, rax
	je	.L12
	mov	esi, 0
	lea	rdx, 24[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	lea	rcx, aspeed_clk_gate_ops[rip]
	mov	QWORD PTR 64[rsp], rcx
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 32[rax], rbx
	mov	rbx, QWORD PTR 16[rsp]
	test	rcx, rcx
	mov	QWORD PTR 40[rsp], r12
	mov	r12, rax
	cmove	rdx, rsi
	mov	QWORD PTR 32[rsp], r13
	mov	rsi, rax
	mov	QWORD PTR 40[rax], rdi
	mov	rdi, rbp
	mov	QWORD PTR 48[rsp], rdx
	setne	dl
	movzx	edx, dl
	mov	DWORD PTR 56[rsp], edx
	lea	rdx, 32[rsp]
	mov	QWORD PTR 24[rax], r15
	mov	QWORD PTR 16[rax], r14
	mov	QWORD PTR 8[rax], rbx
	mov	QWORD PTR [rax], rdx
	call	clk_hw_register@PLT
	mov	ebp, eax
	test	eax, eax
	jne	.L13
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L13:
	.cfi_restore_state
	mov	rdi, r12
	call	kfree@PLT
	mov	edi, ebp
	call	ERR_PTR@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR ENOMEM[rip]
	neg	edi
	call	ERR_PTR@PLT
	mov	r12, rax
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aspeed_clk_hw_register_gate, .-aspeed_clk_hw_register_gate
	.comm	aspeed_clk_gate_ops,4,4
	.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_clk-aspeed.c_aspeed_clk_hw_register_gate.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aspeed_clk_hw_register_gate, %function
aspeed_clk_hw_register_gate:
	@ args = 20, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldr	r1, .L15
	sub	sp, sp, #36
	mov	r4, r3
	ldr	r3, .L15+4
	str	r2, [sp, #4]
	mov	fp, r0
	ldr	r1, [r1]
	mov	r0, #24
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r10, [sp, #72]
	ldr	r9, [sp, #76]
	ldr	r8, [sp, #80]
	ldr	r7, [sp, #84]
	ldr	r6, [sp, #88]
	bl	kzalloc
	subs	r2, r0, #0
	beq	.L12
	ldr	r3, [sp, #4]
	ldr	r1, .L15+8
	cmp	r3, #0
	str	r1, [sp, #24]
	moveq	r1, r3
	addne	r1, sp, #4
	subs	r3, r3, #0
	movne	r3, #1
	str	r3, [sp, #20]
	add	r3, sp, #8
	str	r4, [sp, #12]
	str	r1, [sp, #16]
	str	r5, [sp, #8]
	mov	r0, fp
	mov	r1, r2
	stmib	r2, {r6, r7, r8, r9}
	str	r10, [r2, #20]
	str	r3, [r2]
	mov	r4, r2
	bl	clk_hw_register
	subs	r5, r0, #0
	bne	.L13
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	bl	ERR_PTR
	mov	r4, r0
	b	.L1
.L12:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bl	ERR_PTR
	mov	r4, r0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	GFP_KERNEL
	.word	.LC0
	.word	aspeed_clk_gate_ops
	.word	ENOMEM
	.size	aspeed_clk_hw_register_gate, .-aspeed_clk_hw_register_gate
	.comm	aspeed_clk_gate_ops,4,4
	.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
