	.file	"extr_docg3.c_dps1_is_key_locked.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.type	dps1_is_key_locked, @function
dps1_is_key_locked:
.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
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	sysfs_dev2docg3@PLT
	mov	rdi, QWORD PTR [rax]
	mov	rbx, rax
	call	mutex_lock@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rbx
	call	doc_set_device_id@PLT
	mov	esi, DWORD PTR DOC_DPS1_STATUS[rip]
	mov	rdi, rbx
	call	doc_register_readb@PLT
	xor	esi, esi
	mov	rdi, rbx
	mov	r12d, eax
	call	doc_set_device_id@PLT
	mov	rdi, QWORD PTR [rbx]
	call	mutex_unlock@PLT
	xor	edx, edx
	test	DWORD PTR DOC_DPS_KEY_OK[rip], r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	sete	dl
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	sprintf@PLT
	.cfi_endproc
.LFE0:
	.size	dps1_is_key_locked, .-dps1_is_key_locked
	.comm	DOC_DPS_KEY_OK,4,4
	.comm	DOC_DPS1_STATUS,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_docg3.c_dps1_is_key_locked.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dps1_is_key_locked, %function
dps1_is_key_locked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r2
	bl	sysfs_dev2docg3
	mov	r4, r0
	ldr	r0, [r0]
	bl	mutex_lock
	ldr	r1, [r4, #4]
	mov	r0, r4
	bl	doc_set_device_id
	ldr	r3, .L4
	mov	r0, r4
	ldr	r1, [r3]
	bl	doc_register_readb
	mov	r5, r0
	mov	r1, #0
	mov	r0, r4
	bl	doc_set_device_id
	ldr	r0, [r4]
	bl	mutex_unlock
	ldr	r3, .L4+4
	mov	r0, r6
	ldr	r3, [r3]
	ldr	r1, .L4+8
	tst	r5, r3
	moveq	r2, #1
	pop	{r4, r5, r6, lr}
	movne	r2, #0
	b	sprintf
.L5:
	.align	2
.L4:
	.word	DOC_DPS1_STATUS
	.word	DOC_DPS_KEY_OK
	.word	.LC0
	.size	dps1_is_key_locked, .-dps1_is_key_locked
	.comm	DOC_DPS_KEY_OK,4,4
	.comm	DOC_DPS1_STATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
