	.file	"extr_st_rc.c_st_rc_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"UHF"
.LC1:
	.string	"IR"
.LC2:
	.string	"rx-mode"
.LC3:
	.string	"uhf"
.LC4:
	.string	"infrared"
.LC5:
	.string	"Unsupported rx mode [%s]\n"
.LC6:
	.string	"System clock not found\n"
.LC7:
	.string	"ST Remote Control Receiver"
.LC8:
	.string	"IRQ %d register failed\n"
.LC9:
	.string	"setup in %s mode\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC10:
	.string	"Unable to register device (%d)\n"
	.text
	.p2align 4
	.type	st_rc_probe, @function
st_rc_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, 56
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r14, QWORD PTR [rdi]
	neg	r12d
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L22
	mov	edi, DWORD PTR RC_DRIVER_IR_RAW[rip]
	mov	rbx, rax
	call	rc_allocate_device@PLT
	mov	r13, rax
	test	rax, rax
	je	.L22
	test	r14, r14
	je	.L5
	mov	rdx, rsp
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	call	of_property_read_string@PLT
	test	eax, eax
	jne	.L5
	mov	rdx, QWORD PTR [rsp]
	mov	ecx, 4
	lea	rdi, .LC3[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	je	.L24
	mov	ecx, 9
	lea	rdi, .LC4[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L8
	mov	DWORD PTR [rbx], 0
.L7:
	xor	esi, esi
	mov	rdi, rbp
	call	devm_clk_get@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L25
	xor	esi, esi
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	DWORD PTR 4[rbx], eax
	mov	r12d, eax
	test	eax, eax
	js	.L5
	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 40[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L26
	mov	rax, QWORD PTR 40[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	rdi, rbp
	test	ecx, ecx
	lea	rdx, 64[rax]
	cmovne	rax, rdx
	xor	esi, esi
	mov	QWORD PTR 48[rbx], rax
	call	reset_control_get_optional_exclusive@PLT
	mov	QWORD PTR 32[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L27
	mov	QWORD PTR 24[rbx], rbp
	mov	rsi, rbx
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	mov	rdi, rbx
	call	st_rc_hardware_init@PLT
	mov	eax, DWORD PTR RC_PROTO_BIT_ALL_IR_DECODER[rip]
	mov	DWORD PTR 0[r13], 100
	mov	edi, DWORD PTR MAX_SYMB_TIME[rip]
	mov	DWORD PTR 44[r13], eax
	call	US_TO_NS@PLT
	mov	QWORD PTR 32[r13], rbx
	mov	rdi, r13
	mov	DWORD PTR 40[r13], eax
	mov	eax, DWORD PTR st_rc_open[rip]
	mov	DWORD PTR 28[r13], eax
	mov	eax, DWORD PTR st_rc_close[rip]
	mov	DWORD PTR 24[r13], eax
	mov	eax, DWORD PTR IR_ST_NAME[rip]
	mov	DWORD PTR 20[r13], eax
	mov	eax, DWORD PTR RC_MAP_EMPTY[rip]
	mov	DWORD PTR 16[r13], eax
	lea	rax, .LC7[rip]
	mov	QWORD PTR 8[r13], rax
	call	rc_register_device@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
	mov	QWORD PTR 16[rbx], r13
	mov	esi, DWORD PTR 4[rbx]
	xor	ecx, ecx
	mov	r9, rbx
	mov	r8d, DWORD PTR IR_ST_NAME[rip]
	mov	edx, DWORD PTR st_rc_rx_interrupt[rip]
	mov	rdi, rbp
	call	devm_request_irq@PLT
	test	rax, rax
	js	.L28
	mov	rdi, rbp
	mov	esi, 1
	call	device_init_wakeup@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, rbp
	call	dev_pm_set_wake_irq@PLT
	mov	rdi, r13
	call	st_rc_send_lirc_timeout@PLT
	mov	eax, DWORD PTR [rbx]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	lea	rsi, .LC9[rip]
	test	eax, eax
	lea	rax, .LC1[rip]
	cmove	rdx, rax
	call	dev_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r13
	call	rc_free_device@PLT
	mov	edx, r12d
	mov	rdi, rbp
	xor	eax, eax
	lea	rsi, .LC10[rip]
	call	dev_err@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	DWORD PTR [rbx], 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, QWORD PTR 32[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L5
.L28:
	mov	edx, DWORD PTR 4[rbx]
	lea	rsi, .LC8[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	rdi, r13
	xor	r13d, r13d
	call	rc_unregister_device@PLT
	neg	r12d
.L13:
	mov	rdi, QWORD PTR 8[rbx]
	call	clk_disable_unprepare@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, QWORD PTR 40[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L5
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	st_rc_probe, .-st_rc_probe
	.comm	st_rc_rx_interrupt,4,4
	.comm	st_rc_open,4,4
	.comm	st_rc_close,4,4
	.comm	RC_PROTO_BIT_ALL_IR_DECODER,4,4
	.comm	RC_MAP_EMPTY,4,4
	.comm	RC_DRIVER_IR_RAW,4,4
	.comm	MAX_SYMB_TIME,4,4
	.comm	IR_ST_NAME,4,4
	.comm	IORESOURCE_MEM,4,4
	.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_st_rc.c_st_rc_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"UHF\000"
	.align	2
.LC1:
	.ascii	"IR\000"
	.align	2
.LC2:
	.ascii	"rx-mode\000"
	.align	2
.LC3:
	.ascii	"uhf\000"
	.align	2
.LC4:
	.ascii	"infrared\000"
	.align	2
.LC5:
	.ascii	"Unsupported rx mode [%s]\012\000"
	.align	2
.LC6:
	.ascii	"System clock not found\012\000"
	.align	2
.LC7:
	.ascii	"ST Remote Control Receiver\000"
	.align	2
.LC8:
	.ascii	"IRQ %d register failed\012\000"
	.align	2
.LC9:
	.ascii	"setup in %s mode\012\000"
	.align	2
.LC10:
	.ascii	"Unable to register device (%d)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	st_rc_probe, %function
st_rc_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L33
	ldr	r8, .L33+4
	ldr	r2, [r3]
	ldr	r3, .L33+8
	sub	sp, sp, #16
	mov	r1, #32
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r4, [r8]
	ldr	r9, [r0]
	bl	devm_kzalloc
	subs	r6, r0, #0
	beq	.L25
	ldr	r3, .L33+12
	ldr	r0, [r3]
	bl	rc_allocate_device
	subs	r7, r0, #0
	beq	.L25
	cmp	r9, #0
	rsb	r4, r4, #0
	beq	.L5
	mov	r0, r9
	ldr	r1, .L33+16
	add	r2, sp, #8
	bl	of_property_read_string
	cmp	r0, #0
	bne	.L5
	ldr	r9, [sp, #8]
	ldr	r1, .L33+20
	mov	r0, r9
	bl	strcmp
	cmp	r0, #0
	moveq	r3, #1
	streq	r3, [r6]
	beq	.L7
	mov	r0, r9
	ldr	r1, .L33+24
	bl	strcmp
	cmp	r0, #0
	streq	r0, [r6]
	bne	.L27
.L7:
	mov	r1, #0
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r6, #8]
	bl	IS_ERR
	subs	r9, r0, #0
	bne	.L28
	mov	r1, r9
	mov	r0, r5
	bl	platform_get_irq
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r6, #4]
	blt	.L5
	ldr	r3, .L33+28
	mov	r2, r9
	ldr	r1, [r3]
	mov	r0, r5
	bl	platform_get_resource
	mov	r1, r0
	mov	r0, r5
	bl	devm_ioremap_resource
	str	r0, [r6, #24]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L29
	ldr	r2, [r6]
	ldr	r3, [r6, #24]
	cmp	r2, #0
	addne	r3, r3, #64
	mov	r1, #0
	str	r3, [r6, #28]
	mov	r0, r5
	bl	reset_control_get_optional_exclusive
	str	r0, [r6, #20]
	bl	IS_ERR
	subs	r9, r0, #0
	bne	.L30
	mov	r1, r6
	mov	r0, r5
	str	r5, [r6, #16]
	bl	platform_set_drvdata
	mov	r0, r6
	bl	st_rc_hardware_init
	mov	r3, #100
	ldr	r2, .L33+32
	ldr	r1, .L33+36
	ldr	r2, [r2]
	ldr	r0, [r1]
	str	r2, [r7, #32]
	str	r3, [r7]
	bl	US_TO_NS
	ldr	r2, .L33+40
	ldr	r3, .L33+44
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L33+48
	ldr	r10, .L33+52
	ldr	r3, [r3]
	str	r2, [r7, #16]
	str	r3, [r7, #8]
	ldr	r2, [r10]
	ldr	r3, .L33+56
	str	r0, [r7, #28]
	str	r6, [r7, #24]
	mov	r0, r7
	str	r1, [r7, #20]
	str	r2, [r7, #12]
	str	r3, [r7, #4]
	bl	rc_register_device
	subs	r4, r0, #0
	blt	.L13
	ldr	r2, [r10]
	ldr	r1, [r6, #4]
	str	r7, [r6, #12]
	stm	sp, {r2, r6}
	ldr	r3, .L33+60
	mov	r0, r5
	ldr	r2, [r3]
	mov	r3, r9
	bl	devm_request_irq
	cmp	r0, #0
	blt	.L31
	mov	r1, #1
	mov	r0, r5
	bl	device_init_wakeup
	ldr	r1, [r6, #4]
	mov	r0, r5
	bl	dev_pm_set_wake_irq
	mov	r0, r7
	bl	st_rc_send_lirc_timeout
	ldr	r1, [r6]
	ldr	r3, .L33+64
	cmp	r1, #0
	ldr	r2, .L33+68
	mov	r0, r5
	moveq	r2, r3
	ldr	r1, .L33+72
	bl	dev_info
	b	.L1
.L27:
	mov	r2, r9
	mov	r0, r5
	ldr	r1, .L33+76
	bl	dev_err
.L5:
	mov	r0, r7
	bl	rc_free_device
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L33+80
	bl	dev_err
.L1:
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	ldr	r3, .L33+84
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L28:
	ldr	r1, .L33+88
	mov	r0, r5
	bl	dev_err
	ldr	r0, [r6, #8]
	bl	PTR_ERR
	mov	r4, r0
	b	.L5
.L30:
	ldr	r0, [r6, #20]
	bl	PTR_ERR
	mov	r4, r0
	b	.L5
.L31:
	mov	r0, r5
	ldr	r2, [r6, #4]
	ldr	r1, .L33+92
	bl	dev_err
	ldr	r4, [r8]
	mov	r0, r7
	rsb	r4, r4, #0
	mov	r7, r9
	bl	rc_unregister_device
.L13:
	ldr	r0, [r6, #8]
	bl	clk_disable_unprepare
	b	.L5
.L29:
	ldr	r0, [r6, #24]
	bl	PTR_ERR
	mov	r4, r0
	b	.L5
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	GFP_KERNEL
	.word	EINVAL
	.word	.LC11
	.word	RC_DRIVER_IR_RAW
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	IORESOURCE_MEM
	.word	RC_PROTO_BIT_ALL_IR_DECODER
	.word	MAX_SYMB_TIME
	.word	st_rc_open
	.word	st_rc_close
	.word	RC_MAP_EMPTY
	.word	IR_ST_NAME
	.word	.LC7
	.word	st_rc_rx_interrupt
	.word	.LC1
	.word	.LC0
	.word	.LC9
	.word	.LC5
	.word	.LC10
	.word	ENOMEM
	.word	.LC6
	.word	.LC8
	.size	st_rc_probe, .-st_rc_probe
	.comm	st_rc_rx_interrupt,4,4
	.comm	st_rc_open,4,4
	.comm	st_rc_close,4,4
	.comm	RC_PROTO_BIT_ALL_IR_DECODER,4,4
	.comm	RC_MAP_EMPTY,4,4
	.comm	RC_DRIVER_IR_RAW,4,4
	.comm	MAX_SYMB_TIME,4,4
	.comm	IR_ST_NAME,4,4
	.comm	IORESOURCE_MEM,4,4
	.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
