	.file	"extr_smd.c_smsm_irq_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"<SM NO STATE>\n"
.LC1:
	.string	"<SM %08x %08x>\n"
.LC2:
	.string	"<SM %08x NOTIFY>\n"
	.text
	.p2align 4
	.type	smsm_irq_handler, @function
smsm_irq_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	lea	rdi, smem_lock[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	spin_lock_irqsave@PLT
	mov	edi, DWORD PTR ID_SHARED_STATE[rip]
	mov	esi, 8
	call	smem_alloc@PLT
	test	rax, rax
	je	.L21
	mov	ebx, DWORD PTR [rax]
	mov	r12d, DWORD PTR 4[rax]
	mov	rbp, rax
	mov	eax, DWORD PTR msm_smd_debug_mask[rip]
	test	DWORD PTR MSM_SMSM_DEBUG[rip], eax
	jne	.L22
.L4:
	test	DWORD PTR SMSM_RESET[rip], r12d
	jne	.L23
	mov	eax, DWORD PTR SMSM_SMDINIT[rip]
	or	ebx, DWORD PTR SMSM_INIT[rip]
	mov	edx, ebx
	or	edx, eax
	test	eax, r12d
	mov	eax, DWORD PTR SMSM_RPCINIT[rip]
	cmovne	ebx, edx
	mov	edx, ebx
	or	edx, eax
	test	eax, r12d
	cmovne	ebx, edx
.L6:
	cmp	DWORD PTR 0[rbp], ebx
	je	.L3
	mov	eax, DWORD PTR msm_smd_debug_mask[rip]
	test	DWORD PTR MSM_SMSM_DEBUG[rip], eax
	jne	.L24
.L8:
	mov	DWORD PTR 0[rbp], ebx
	xor	eax, eax
	call	do_smd_probe@PLT
	xor	eax, eax
	call	notify_other_smsm@PLT
.L3:
	xor	esi, esi
	lea	rdi, smem_lock[rip]
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	xor	eax, eax
	call	handle_modem_crash@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, r12d
	mov	esi, ebx
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_info@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, ebx
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	pr_info@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_info@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	smsm_irq_handler, .-smsm_irq_handler
	.comm	smem_lock,4,4
	.comm	msm_smd_debug_mask,4,4
	.comm	SMSM_SMDINIT,4,4
	.comm	SMSM_RPCINIT,4,4
	.comm	SMSM_RESET,4,4
	.comm	SMSM_INIT,4,4
	.comm	MSM_SMSM_DEBUG,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	ID_SHARED_STATE,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_smd.c_smsm_irq_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"<SM NO STATE>\012\000"
	.align	2
.LC1:
	.ascii	"<SM %08x %08x>\012\000"
	.align	2
.LC2:
	.ascii	"<SM %08x NOTIFY>\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smsm_irq_handler, %function
smsm_irq_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	ldr	r0, .L27
	bl	spin_lock_irqsave
	ldr	r3, .L27+4
	mov	r1, #8
	ldr	r0, [r3]
	bl	smem_alloc
	subs	r4, r0, #0
	beq	.L23
	ldr	r8, .L27+8
	ldr	r7, .L27+12
	ldr	r2, [r8]
	ldr	r3, [r7]
	ldr	r5, [r4]
	tst	r2, r3
	ldr	r6, [r4, #4]
	bne	.L24
.L4:
	ldr	r3, .L27+16
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L25
	ldr	r3, .L27+20
	ldr	r2, .L27+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	tst	r3, r6
	orr	r5, r5, r2
	orrne	r5, r5, r3
	ldr	r3, .L27+28
	ldr	r3, [r3]
	tst	r3, r6
	orrne	r5, r5, r3
.L6:
	ldr	r3, [r4]
	cmp	r3, r5
	beq	.L3
	ldr	r2, [r8]
	ldr	r3, [r7]
	tst	r2, r3
	bne	.L26
.L8:
	str	r5, [r4]
	bl	do_smd_probe
	bl	notify_other_smsm
.L3:
	mov	r1, #0
	ldr	r0, .L27
	bl	spin_unlock_irqrestore
	ldr	r3, .L27+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	bl	handle_modem_crash
	b	.L6
.L24:
	mov	r2, r6
	mov	r1, r5
	ldr	r0, .L27+36
	bl	pr_info
	b	.L4
.L26:
	mov	r1, r5
	ldr	r0, .L27+40
	bl	pr_info
	b	.L8
.L23:
	ldr	r0, .L27+44
	bl	pr_info
	b	.L3
.L28:
	.align	2
.L27:
	.word	smem_lock
	.word	ID_SHARED_STATE
	.word	msm_smd_debug_mask
	.word	MSM_SMSM_DEBUG
	.word	SMSM_RESET
	.word	SMSM_SMDINIT
	.word	SMSM_INIT
	.word	SMSM_RPCINIT
	.word	IRQ_HANDLED
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	smsm_irq_handler, .-smsm_irq_handler
	.comm	smem_lock,4,4
	.comm	msm_smd_debug_mask,4,4
	.comm	SMSM_SMDINIT,4,4
	.comm	SMSM_RPCINIT,4,4
	.comm	SMSM_RESET,4,4
	.comm	SMSM_INIT,4,4
	.comm	MSM_SMSM_DEBUG,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	ID_SHARED_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
