	.file	"extr_pwm-hibvt.c_hibvt_pwm_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"getting clock failed with %ld\n"
	.text
	.p2align 4
	.type	hibvt_pwm_probe, @function
hibvt_pwm_probe:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	of_device_get_match_data@PLT
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 56
	mov	rdi, r12
	mov	rbx, rax
	call	devm_kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	xor	esi, esi
	mov	rdi, r12
	mov	rbp, rax
	call	devm_clk_get@PLT
	mov	DWORD PTR 40[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	lea	rax, hibvt_pwm_ops[rip]
	mov	QWORD PTR 24[rbp], r12
	xor	edx, edx
	mov	rdi, r12
	mov	QWORD PTR 32[rbp], rax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 8[rbp], -1
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR of_pwm_xlate_with_flags[rip]
	mov	DWORD PTR 16[rbp], 3
	mov	DWORD PTR 20[rbp], eax
	mov	QWORD PTR 48[rbp], rbx
	call	platform_get_resource@PLT
	mov	rdi, r12
	mov	rsi, rax
	call	devm_ioremap_resource@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	edi, DWORD PTR 40[rbp]
	call	clk_prepare_enable@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L1
	xor	esi, esi
	mov	rdi, r12
	call	devm_reset_control_get_exclusive@PLT
	mov	DWORD PTR 44[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L18
	mov	edi, DWORD PTR 44[rbp]
	call	reset_control_assert@PLT
	mov	edi, 30
	call	msleep@PLT
	mov	edi, DWORD PTR 44[rbp]
	call	reset_control_deassert@PLT
	lea	rdi, 8[rbp]
	call	pwmchip_add@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L7
	mov	eax, DWORD PTR 12[rbp]
	xor	ebx, ebx
	mov	r13d, 1
	test	eax, eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ecx, DWORD PTR PWM_KEEP_SHIFT[rip]
	mov	edi, ebx
	mov	r14d, DWORD PTR PWM_KEEP_MASK[rip]
	mov	r15d, r13d
	add	ebx, 1
	sal	r15d, cl
	call	PWM_CTRL_ADDR@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	ecx, r15d
	mov	edx, r14d
	mov	esi, eax
	call	hibvt_pwm_set_bits@PLT
	cmp	DWORD PTR 12[rbp], ebx
	jg	.L8
.L9:
	mov	rsi, rbp
	mov	rdi, r12
	xor	r13d, r13d
	call	platform_set_drvdata@PLT
.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
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR 40[rbp]
	call	PTR_ERR@PLT
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	dev_err@PLT
	mov	edi, DWORD PTR 40[rbp]
.L14:
	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
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR 40[rbp]
	call	clk_disable_unprepare@PLT
	mov	edi, DWORD PTR 44[rbp]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 40[rbp]
	call	clk_disable_unprepare@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hibvt_pwm_probe, .-hibvt_pwm_probe
	.comm	of_pwm_xlate_with_flags,4,4
	.comm	hibvt_pwm_ops,4,4
	.comm	PWM_KEEP_SHIFT,4,4
	.comm	PWM_KEEP_MASK,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-hibvt.c_hibvt_pwm_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"getting clock failed with %ld\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hibvt_pwm_probe, %function
hibvt_pwm_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	bl	of_device_get_match_data
	ldr	r2, .L18
	mov	r6, r0
	mov	r1, #40
	mov	r0, r5
	ldr	r2, [r2]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L14
	mov	r1, #0
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r4, #28]
	bl	IS_ERR
	subs	r2, r0, #0
	bne	.L15
	mvn	ip, #0
	mov	r0, #3
	ldr	r1, .L18+4
	ldr	r3, [r6]
	ldr	r1, [r1]
	str	r3, [r4, #8]
	str	r1, [r4, #16]
	ldr	r3, .L18+8
	ldr	r1, .L18+12
	str	ip, [r4, #4]
	str	r0, [r4, #12]
	str	r1, [r4, #24]
	mov	r0, r5
	ldr	r1, [r3]
	str	r5, [r4, #20]
	str	r6, [r4, #36]
	bl	platform_get_resource
	mov	r1, r0
	mov	r0, r5
	bl	devm_ioremap_resource
	str	r0, [r4]
	bl	IS_ERR
	subs	r7, r0, #0
	bne	.L16
	ldr	r0, [r4, #28]
	bl	clk_prepare_enable
	subs	r6, r0, #0
	blt	.L1
	mov	r1, r7
	mov	r0, r5
	bl	devm_reset_control_get_exclusive
	str	r0, [r4, #32]
	bl	IS_ERR
	subs	r6, r0, #0
	bne	.L17
	ldr	r0, [r4, #32]
	bl	reset_control_assert
	mov	r0, #30
	bl	msleep
	ldr	r0, [r4, #32]
	bl	reset_control_deassert
	add	r0, r4, #4
	bl	pwmchip_add
	subs	r7, r0, #0
	blt	.L7
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ble	.L9
	mov	r7, r6
	mov	r10, #1
	ldr	r9, .L18+16
	ldr	r8, .L18+20
.L8:
	mov	r0, r7
	ldr	fp, [r4]
	bl	PWM_CTRL_ADDR
	ldr	r3, [r9]
	mov	r1, r0
	lsl	r3, r10, r3
	mov	r0, fp
	ldr	r2, [r8]
	bl	hibvt_pwm_set_bits
	ldr	r3, [r4, #8]
	add	r7, r7, #1
	cmp	r3, r7
	bgt	.L8
.L9:
	mov	r1, r4
	mov	r0, r5
	bl	platform_set_drvdata
.L1:
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r0, [r4, #28]
	bl	PTR_ERR
	ldr	r1, .L18+24
	mov	r2, r0
	mov	r0, r5
	bl	dev_err
	ldr	r0, [r4, #28]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	PTR_ERR
.L14:
	ldr	r3, .L18+28
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r0, [r4]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	PTR_ERR
.L17:
	ldr	r0, [r4, #28]
	bl	clk_disable_unprepare
	ldr	r0, [r4, #32]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	PTR_ERR
.L7:
	ldr	r0, [r4, #28]
	bl	clk_disable_unprepare
	mov	r6, r7
	b	.L1
.L19:
	.align	2
.L18:
	.word	GFP_KERNEL
	.word	of_pwm_xlate_with_flags
	.word	IORESOURCE_MEM
	.word	hibvt_pwm_ops
	.word	PWM_KEEP_SHIFT
	.word	PWM_KEEP_MASK
	.word	.LC0
	.word	ENOMEM
	.size	hibvt_pwm_probe, .-hibvt_pwm_probe
	.comm	of_pwm_xlate_with_flags,4,4
	.comm	hibvt_pwm_ops,4,4
	.comm	PWM_KEEP_SHIFT,4,4
	.comm	PWM_KEEP_MASK,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
