	.file	"extr_pwm-sti.c_sti_pwm_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to request IRQ\n"
.LC1:
	.string	"pwm"
.LC2:
	.string	"failed to get PWM clock\n"
.LC3:
	.string	"failed to prepare clock\n"
.LC4:
	.string	"capture"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"failed to get PWM capture clock\n"
	.text
	.p2align 4
	.type	sti_pwm_probe, @function
sti_pwm_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 104
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L27
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 32
	mov	rdi, rbp
	mov	r12, rax
	call	devm_kzalloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L27
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	platform_get_resource@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 96[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L31
	mov	rsi, QWORD PTR 96[r12]
	mov	rdi, rbp
	lea	rdx, sti_pwm_regmap_config[rip]
	call	devm_regmap_init_mmio@PLT
	mov	QWORD PTR 88[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L32
	xor	esi, esi
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L1
	mov	r8d, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR sti_pwm_interrupt[rip]
	mov	r9, r12
	xor	ecx, ecx
	mov	esi, eax
	mov	rdi, rbp
	call	devm_request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L33
	mov	eax, DWORD PTR sti_pwm_regfields[rip]
	mov	QWORD PTR 16[rbx], 0
	lea	rdi, 64[r12]
	mov	DWORD PTR 8[rbx], 0
	mov	DWORD PTR 24[rbx], eax
	movabs	rax, 1095216660735
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 56[r12], rbx
	mov	QWORD PTR 80[r12], rbp
	mov	QWORD PTR 72[r12], 0
	call	mutex_init@PLT
	mov	rdi, r12
	call	sti_pwm_probe_dt@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 16[rbx], 0
	jne	.L34
.L8:
	mov	edx, DWORD PTR 8[rbx]
	test	edx, edx
	je	.L10
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC4[rip]
	call	of_clk_get_by_name@PLT
	mov	QWORD PTR 40[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L35
	mov	rdi, QWORD PTR 40[r12]
	call	clk_prepare@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L28
.L10:
	lea	rax, sti_pwm_ops[rip]
	mov	QWORD PTR 32[r12], rbp
	mov	rdi, r12
	mov	QWORD PTR 24[r12], rax
	mov	rax, QWORD PTR 56[r12]
	mov	DWORD PTR [r12], -1
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR 16[r12], rax
	call	pwmchip_add@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L12
	mov	eax, DWORD PTR 8[rbx]
	xor	r15d, r15d
	test	eax, eax
	jne	.L13
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, 4[rax]
	call	init_waitqueue_head@PLT
	mov	rdi, r14
	call	mutex_init@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	edx, r15d
	mov	rsi, r14
	add	r15d, 1
	lea	rdi, [rax+rdx*4]
	call	pwm_set_chip_data@PLT
	cmp	DWORD PTR 8[rbx], r15d
	jbe	.L14
.L13:
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 8
	mov	rdi, rbp
	call	devm_kzalloc@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L27:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L31:
	.cfi_restore_state
	mov	rdi, QWORD PTR 96[r12]
.L29:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	rdi, QWORD PTR 88[r12]
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	call	of_clk_get_by_name@PLT
	mov	QWORD PTR 48[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L36
	mov	rdi, QWORD PTR 48[r12]
	call	clk_prepare@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L8
.L28:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	mov	r13d, r14d
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, r12
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	jmp	.L1
.L36:
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 48[r12]
	jmp	.L29
.L35:
	mov	rdi, rbp
	lea	rsi, .LC5[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 40[r12]
	jmp	.L29
.L12:
	mov	rdi, QWORD PTR 48[r12]
	mov	r13d, r14d
	call	clk_unprepare@PLT
	mov	rdi, QWORD PTR 40[r12]
	call	clk_unprepare@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sti_pwm_probe, .-sti_pwm_probe
	.comm	sti_pwm_regmap_config,4,4
	.comm	sti_pwm_regfields,4,4
	.comm	sti_pwm_ops,4,4
	.comm	sti_pwm_interrupt,4,4
	.comm	IORESOURCE_MEM,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_pwm-sti.c_sti_pwm_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to request IRQ\012\000"
	.align	2
.LC1:
	.ascii	"pwm\000"
	.align	2
.LC2:
	.ascii	"failed to get PWM clock\012\000"
	.align	2
.LC3:
	.ascii	"failed to prepare clock\012\000"
	.align	2
.LC4:
	.ascii	"capture\000"
	.align	2
.LC5:
	.ascii	"failed to get PWM capture clock\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sti_pwm_probe, %function
sti_pwm_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L40
	mov	r1, #52
	ldr	r2, [r8]
	sub	sp, sp, #8
	mov	r6, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L32
	mov	r1, #20
	mov	r0, r6
	ldr	r2, [r8]
	bl	devm_kzalloc
	subs	r7, r0, #0
	beq	.L32
	ldr	r3, .L40+4
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r6
	bl	platform_get_resource
	mov	r1, r0
	mov	r0, r6
	bl	devm_ioremap_resource
	str	r0, [r4, #48]
	bl	IS_ERR
	cmp	r0, #0
	ldrne	r0, [r4, #48]
	bne	.L34
	ldr	r2, .L40+8
	ldr	r1, [r4, #48]
	mov	r0, r6
	bl	devm_regmap_init_mmio
	str	r0, [r4, #44]
	bl	IS_ERR
	subs	r9, r0, #0
	ldrne	r0, [r4, #44]
	bne	.L34
	mov	r1, r9
	mov	r0, r6
	bl	platform_get_irq
	subs	r5, r0, #0
	blt	.L1
	ldr	r3, [r6, #4]
	ldr	r2, .L40+12
	str	r4, [sp, #4]
	mov	r1, r5
	ldr	r2, [r2]
	mov	r0, r6
	str	r3, [sp]
	mov	r3, r9
	bl	devm_request_irq
	subs	r5, r0, #0
	blt	.L36
	mov	r3, #255
	ldr	r2, .L40+16
	str	r3, [r7, #4]
	ldr	r2, [r2]
	str	r9, [r7, #12]
	str	r2, [r7, #16]
	str	r3, [r7]
	str	r9, [r7, #8]
	add	r0, r4, #32
	str	r7, [r4, #28]
	str	r6, [r4, #40]
	str	r9, [r4, #36]
	bl	mutex_init
	mov	r0, r4
	bl	sti_pwm_probe_dt
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, [r7, #12]
	cmp	r3, #0
	bne	.L37
.L8:
	ldr	r3, [r7, #8]
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L40+20
	ldr	r0, [r6]
	bl	of_clk_get_by_name
	str	r0, [r4, #20]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L38
	ldr	r0, [r4, #20]
	bl	clk_prepare
	subs	r3, r0, #0
	bne	.L33
.L10:
	mvn	r3, #0
	ldr	r2, [r4, #28]
	mov	r0, r4
	ldr	r2, [r2, #12]
	str	r3, [r4]
	ldr	r3, .L40+24
	str	r6, [r4, #16]
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	bl	pwmchip_add
	subs	r9, r0, #0
	blt	.L12
	ldr	r3, [r7, #8]
	cmp	r3, #0
	movne	r10, #0
	bne	.L13
	b	.L14
.L15:
	bl	init_waitqueue_head
	mov	r0, r9
	bl	mutex_init
	ldr	r0, [r4, #4]
	mov	r1, r9
	add	r0, r0, r10, lsl #2
	bl	pwm_set_chip_data
	ldr	r3, [r7, #8]
	add	r10, r10, #1
	cmp	r3, r10
	bls	.L14
.L13:
	mov	r1, #8
	mov	r0, r6
	ldr	r2, [r8]
	bl	devm_kzalloc
	subs	r9, r0, #0
	add	r0, r9, #4
	bne	.L15
.L32:
	ldr	r3, .L40+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L38:
	mov	r0, r6
	ldr	r1, .L40+32
	bl	dev_err
	ldr	r0, [r4, #20]
.L34:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	PTR_ERR
.L37:
	ldr	r1, .L40+36
	ldr	r0, [r6]
	bl	of_clk_get_by_name
	str	r0, [r4, #24]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L39
	ldr	r0, [r4, #24]
	bl	clk_prepare
	subs	r3, r0, #0
	beq	.L8
.L33:
	mov	r0, r6
	ldr	r1, .L40+40
	mov	r5, r3
	bl	dev_err
	b	.L1
.L36:
	mov	r0, r6
	ldr	r1, .L40+44
	bl	dev_err
	b	.L1
.L14:
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	b	.L1
.L39:
	mov	r0, r6
	ldr	r1, .L40+48
	bl	dev_err
	ldr	r0, [r4, #24]
	b	.L34
.L12:
	ldr	r0, [r4, #24]
	bl	clk_unprepare
	ldr	r0, [r4, #20]
	mov	r5, r9
	bl	clk_unprepare
	b	.L1
.L41:
	.align	2
.L40:
	.word	GFP_KERNEL
	.word	IORESOURCE_MEM
	.word	sti_pwm_regmap_config
	.word	sti_pwm_interrupt
	.word	sti_pwm_regfields
	.word	.LC4
	.word	sti_pwm_ops
	.word	ENOMEM
	.word	.LC5
	.word	.LC1
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.size	sti_pwm_probe, .-sti_pwm_probe
	.comm	sti_pwm_regmap_config,4,4
	.comm	sti_pwm_regfields,4,4
	.comm	sti_pwm_ops,4,4
	.comm	sti_pwm_interrupt,4,4
	.comm	IORESOURCE_MEM,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
