	.file	"extr_aspeed-pwm-tacho.c_aspeed_create_fan.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"reg"
.LC1:
	.string	"cooling-levels"
.LC2:
	.string	"aspeed,fan-tach-ch"
	.text
	.p2align 4
	.type	aspeed_create_fan, @function
aspeed_create_fan:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	call	of_property_read_u32@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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	esi, DWORD PTR [rsp]
	mov	rdi, r13
	call	aspeed_create_pwm_port@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	of_property_count_u8_elems@PLT
	mov	r8d, eax
	test	eax, eax
	jle	.L6
	mov	rcx, QWORD PTR [rsp]
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r14
	call	aspeed_create_pwm_cooling@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
.L6:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	of_property_count_u8_elems@PLT
	mov	r15d, eax
	test	eax, eax
	jle	.L14
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r14
	mov	edx, 4
	mov	esi, eax
	call	devm_kcalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	r14, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	ecx, r15d
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	of_property_read_u8_array@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rcx, QWORD PTR [rsp]
	mov	edx, r15d
	mov	rsi, r14
	mov	rdi, r13
	call	aspeed_create_fan_tach_channel@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aspeed_create_fan, .-aspeed_create_fan
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_aspeed-pwm-tacho.c_aspeed_create_fan.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"reg\000"
	.align	2
.LC1:
	.ascii	"cooling-levels\000"
	.align	2
.LC2:
	.ascii	"aspeed,fan-tach-ch\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aspeed_create_fan, %function
aspeed_create_fan:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L16
	sub	sp, sp, #16
	mov	r5, r1
	mov	r7, r0
	mov	r6, r2
	mov	r0, r1
	add	r2, sp, #8
	ldr	r1, .L16+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	of_property_read_u32
	subs	r4, r0, #0
	beq	.L12
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r1, [sp, #8]
	mov	r0, r6
	bl	aspeed_create_pwm_port
	mov	r0, r5
	ldr	r1, .L16+8
	bl	of_property_count_u8_elems
	cmp	r0, #0
	ble	.L6
	str	r0, [sp]
	mov	r2, r6
	mov	r1, r5
	mov	r0, r7
	ldr	r3, [sp, #8]
	bl	aspeed_create_pwm_cooling
	subs	r4, r0, #0
	bne	.L1
.L6:
	mov	r0, r5
	ldr	r1, .L16+12
	bl	of_property_count_u8_elems
	subs	r8, r0, #0
	ble	.L14
	ldr	r3, .L16+16
	mov	r0, r7
	mov	r2, #4
	mov	r1, r8
	ldr	r3, [r3]
	bl	devm_kcalloc
	subs	r7, r0, #0
	beq	.L15
	mov	r0, r5
	mov	r3, r8
	mov	r2, r7
	ldr	r1, .L16+12
	bl	of_property_read_u8_array
	subs	r4, r0, #0
	bne	.L1
	mov	r2, r8
	mov	r1, r7
	mov	r0, r6
	ldr	r3, [sp, #8]
	bl	aspeed_create_fan_tach_channel
	b	.L1
.L15:
	ldr	r3, .L16+20
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L14:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	EINVAL
	.size	aspeed_create_fan, .-aspeed_create_fan
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
