	.file	"extr_az6007.c_az6007_identify_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"warm"
.LC1:
	.string	"cold"
.LC2:
	.string	"Identifying az6007 state\n"
.LC3:
	.string	"Device is on %s state\n"
	.text
	.p2align 4
	.type	az6007_identify_state, @function
az6007_identify_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, .LC2[rip]
	call	pr_debug@PLT
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	edi, 6
	call	kmalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR AZ6007_READ_DATA[rip]
	mov	edi, DWORD PTR [rbx]
	xor	ecx, ecx
	mov	rbp, rax
	mov	r9d, 6
	mov	r8, rax
	mov	edx, 6
	call	__az6007_read@PLT
	mov	rdi, rbp
	mov	r12d, DWORD PTR WARM[rip]
	cmp	eax, 6
	cmovne	r12d, DWORD PTR COLD[rip]
	call	kfree@PLT
	cmp	DWORD PTR COLD[rip], r12d
	je	.L11
.L6:
	cmp	DWORD PTR WARM[rip], r12d
	lea	rax, .LC1[rip]
	lea	rsi, .LC0[rip]
	cmovne	rsi, rax
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	pr_debug@PLT
.L1:
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, 1
	mov	esi, 9
	call	__az6007_write@PLT
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	call	__az6007_write@PLT
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	call	__az6007_write@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	az6007_identify_state, .-az6007_identify_state
	.comm	WARM,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.comm	COLD,4,4
	.comm	AZ6007_READ_DATA,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_az6007.c_az6007_identify_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"warm\000"
	.align	2
.LC1:
	.ascii	"cold\000"
	.align	2
.LC2:
	.ascii	"Identifying az6007 state\012\000"
	.align	2
.LC3:
	.ascii	"Device is on %s state\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	az6007_identify_state, %function
az6007_identify_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	sub	sp, sp, #8
	ldr	r0, .L13
	bl	pr_debug
	ldr	r3, .L13+4
	mov	r0, #6
	ldr	r1, [r3]
	bl	kmalloc
	subs	r4, r0, #0
	beq	.L11
	mov	r2, #6
	ldr	r3, .L13+8
	str	r2, [sp, #4]
	str	r4, [sp]
	ldr	r1, [r3]
	ldr	r0, [r5]
	mov	r3, #0
	bl	__az6007_read
	cmp	r0, #6
	ldrne	r7, .L13+12
	ldreq	r8, .L13+16
	ldreq	r7, .L13+12
	mov	r0, r4
	ldreq	r6, [r8]
	ldrne	r8, .L13+16
	ldrne	r6, [r7]
	bl	kfree
	ldr	r3, [r7]
	cmp	r3, r6
	beq	.L12
.L6:
	ldr	r1, [r8]
	ldr	r2, .L13+20
	ldr	r3, .L13+24
	cmp	r1, r6
	moveq	r1, r2
	movne	r1, r3
	ldr	r0, .L13+28
	bl	pr_debug
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L13+32
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r4, #0
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r3, r4
	mov	r2, #1
	mov	r1, #9
	ldr	r0, [r5]
	bl	__az6007_write
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	ldr	r0, [r5]
	bl	__az6007_write
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	ldr	r0, [r5]
	bl	__az6007_write
	b	.L6
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	GFP_ATOMIC
	.word	AZ6007_READ_DATA
	.word	COLD
	.word	WARM
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	ENOMEM
	.size	az6007_identify_state, .-az6007_identify_state
	.comm	WARM,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.comm	COLD,4,4
	.comm	AZ6007_READ_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
