	.file	"extr_smd.c_smsm_change_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"smsm_change_state %x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"smsm_change_state <SM NO STATE>\n"
	.text
	.p2align 4
	.globl	smsm_change_state
	.type	smsm_change_state, @function
smsm_change_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edi
	lea	rdi, smem_lock[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	xor	esi, esi
	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	.L2
	mov	rbx, rax
	mov	eax, DWORD PTR 4[rax]
	test	DWORD PTR SMSM_RESET[rip], eax
	jne	.L14
.L3:
	mov	esi, r12d
	not	esi
	and	esi, DWORD PTR [rbx]
	or	esi, ebp
	mov	DWORD PTR [rbx], esi
	mov	eax, DWORD PTR msm_smd_debug_mask[rip]
	test	DWORD PTR MSM_SMSM_DEBUG[rip], eax
	jne	.L15
.L4:
	xor	eax, eax
	call	notify_other_smsm@PLT
	xor	esi, esi
	lea	rdi, smem_lock[rip]
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L15:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	xor	eax, eax
	call	handle_modem_crash@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	xor	esi, esi
	lea	rdi, smem_lock[rip]
	call	spin_unlock_irqrestore@PLT
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	smsm_change_state, .-smsm_change_state
	.comm	smem_lock,4,4
	.comm	msm_smd_debug_mask,4,4
	.comm	SMSM_RESET,4,4
	.comm	MSM_SMSM_DEBUG,4,4
	.comm	ID_SHARED_STATE,4,4
	.comm	EIO,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_change_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"smsm_change_state %x\012\000"
	.align	2
.LC1:
	.ascii	"smsm_change_state <SM NO STATE>\012\000"
	.text
	.align	2
	.global	smsm_change_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	smsm_change_state, %function
smsm_change_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r5, r1
	ldr	r0, .L16
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r2, .L16+4
	mov	r1, #8
	ldr	r0, [r2]
	bl	smem_alloc
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L16+8
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L14
.L3:
	ldr	r3, [r4]
	ldr	r2, .L16+12
	bic	r3, r3, r6
	orr	r1, r3, r5
	ldr	r3, .L16+16
	str	r1, [r4]
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L15
.L4:
	bl	notify_other_smsm
	mov	r1, #0
	ldr	r0, .L16
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r0, .L16+20
	bl	pr_info
	b	.L4
.L14:
	bl	handle_modem_crash
	b	.L3
.L2:
	mov	r1, #0
	ldr	r0, .L16
	bl	spin_unlock_irqrestore
	ldr	r0, .L16+24
	bl	pr_err
	ldr	r3, .L16+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	smem_lock
	.word	ID_SHARED_STATE
	.word	SMSM_RESET
	.word	msm_smd_debug_mask
	.word	MSM_SMSM_DEBUG
	.word	.LC0
	.word	.LC1
	.word	EIO
	.size	smsm_change_state, .-smsm_change_state
	.comm	smem_lock,4,4
	.comm	msm_smd_debug_mask,4,4
	.comm	SMSM_RESET,4,4
	.comm	MSM_SMSM_DEBUG,4,4
	.comm	ID_SHARED_STATE,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
