	.file	"extr_rt9455_charger.c_rt9455_irq_handler_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Interrupt is not for RT9455 charger\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Failed to read STAT bits\n"
.LC2:
	.string	"Charger status is %d\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Failed to handle IRQ1 register\n"
	.align 8
.LC4:
	.string	"Failed to handle IRQ2 register\n"
	.align 8
.LC5:
	.string	"Failed to handle IRQ3 register\n"
	.text
	.p2align 4
	.type	rt9455_irq_handler_thread, @function
rt9455_irq_handler_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 12[rsp], 0
	mov	DWORD PTR 16[rsp], 0
	test	rsi, rsi
	je	.L15
	mov	rax, QWORD PTR 16[rsi]
	mov	rbx, rsi
	lea	rbp, 4[rax]
	cmp	DWORD PTR [rax], edi
	jne	.L17
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR F_STAT[rip]
	lea	rsi, 20[rsp]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	regmap_field_read@PLT
	test	eax, eax
	jne	.L18
	mov	edx, DWORD PTR 20[rsp]
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	lea	r12, 12[rsp]
	call	dev_dbg@PLT
	lea	rsi, 16[rsp]
	mov	rdx, r12
	mov	rdi, rbx
	call	rt9455_irq_handler_check_irq1_register@PLT
	test	eax, eax
	jne	.L19
	mov	esi, DWORD PTR 16[rsp]
	mov	rdx, r12
	mov	rdi, rbx
	call	rt9455_irq_handler_check_irq2_register@PLT
	test	eax, eax
	jne	.L20
	mov	rsi, r12
	mov	rdi, rbx
	call	rt9455_irq_handler_check_irq3_register@PLT
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L9
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L9
	call	power_supply_changed@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
.L15:
	mov	eax, DWORD PTR IRQ_NONE[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rt9455_irq_handler_thread, .-rt9455_irq_handler_thread
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	F_STAT,8,8
	.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_rt9455_charger.c_rt9455_irq_handler_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Interrupt is not for RT9455 charger\012\000"
	.align	2
.LC1:
	.ascii	"Failed to read STAT bits\012\000"
	.align	2
.LC2:
	.ascii	"Charger status is %d\012\000"
	.align	2
.LC3:
	.ascii	"Failed to handle IRQ1 register\012\000"
	.align	2
.LC4:
	.ascii	"Failed to handle IRQ2 register\012\000"
	.align	2
.LC5:
	.ascii	"Failed to handle IRQ3 register\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt9455_irq_handler_thread, %function
rt9455_irq_handler_thread:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, lr}
	ldr	r2, .L26
	sub	sp, sp, #20
	subs	r5, r1, #0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp]
	str	r3, [sp, #4]
	beq	.L18
	ldr	r4, [r5, #8]
	ldr	r3, [r4], #4
	cmp	r3, r0
	bne	.L20
	ldr	r2, .L26+4
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	add	r1, sp, #8
	ldr	r0, [r3, r2, lsl #2]
	bl	regmap_field_read
	cmp	r0, #0
	bne	.L21
	ldr	r2, [sp, #8]
	ldr	r1, .L26+8
	mov	r0, r4
	bl	dev_dbg
	mov	r2, sp
	mov	r0, r5
	add	r1, sp, #4
	bl	rt9455_irq_handler_check_irq1_register
	cmp	r0, #0
	bne	.L22
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [sp, #4]
	bl	rt9455_irq_handler_check_irq2_register
	cmp	r0, #0
	bne	.L23
	mov	r1, sp
	mov	r0, r5
	bl	rt9455_irq_handler_check_irq3_register
	cmp	r0, #0
	bne	.L24
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L9
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L9
	bl	power_supply_changed
.L9:
	ldr	r3, .L26+12
	ldr	r0, [r3]
	b	.L1
.L20:
	mov	r0, r4
	ldr	r1, .L26+16
	bl	dev_err
.L18:
	ldr	r3, .L26+20
	ldr	r0, [r3]
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L22:
	mov	r0, r4
	ldr	r1, .L26+24
	bl	dev_err
	ldr	r3, .L26+12
	ldr	r0, [r3]
	b	.L1
.L21:
	mov	r0, r4
	ldr	r1, .L26+28
	bl	dev_err
	ldr	r3, .L26+12
	ldr	r0, [r3]
	b	.L1
.L23:
	mov	r0, r4
	ldr	r1, .L26+32
	bl	dev_err
	ldr	r3, .L26+12
	ldr	r0, [r3]
	b	.L1
.L24:
	mov	r0, r4
	ldr	r1, .L26+36
	bl	dev_err
	ldr	r3, .L26+12
	ldr	r0, [r3]
	b	.L1
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC6
	.word	F_STAT
	.word	.LC2
	.word	IRQ_HANDLED
	.word	.LC0
	.word	IRQ_NONE
	.word	.LC3
	.word	.LC1
	.word	.LC4
	.word	.LC5
	.size	rt9455_irq_handler_thread, .-rt9455_irq_handler_thread
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	F_STAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
