	.file	"extr_devices.c_Devices_H_LockUnlock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d changed, %d failed"
	.text
	.p2align 4
	.type	Devices_H_LockUnlock, @function
Devices_H_LockUnlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	mov	edi, DWORD PTR FALSE[rip]
	call	Devices_GetHostPath@PLT
	test	rax, rax
	jne	.L15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR host_path[rip]
	mov	esi, ebp
	call	Devices_SetReadOnly@PLT
	test	rax, rax
	je	.L16
	cmp	QWORD PTR devbug[rip], 0
	jne	.L17
.L8:
	mov	DWORD PTR CPU_regY[rip], 1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	cmp	QWORD PTR devbug[rip], 0
	jne	.L18
.L6:
	mov	DWORD PTR CPU_regY[rip], 170
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edx, 1
	xor	esi, esi
	lea	rdi, .LC0[rip]
	call	Log_print@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	xor	edx, edx
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	Log_print@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	Devices_H_LockUnlock, .-Devices_H_LockUnlock
	.comm	host_path,4,4
	.comm	devbug,8,8
	.comm	FALSE,4,4
	.comm	CPU_regY,4,4
	.comm	CPU_SetN,4,4
	.comm	CPU_ClrN,4,4
	.comm	CHECK_READ_ONLY,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_devices.c_Devices_H_LockUnlock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d changed, %d failed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Devices_H_LockUnlock, %function
Devices_H_LockUnlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r3]
	bl	Devices_GetHostPath
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r3, .L18+4
	mov	r1, r4
	ldr	r0, [r3]
	bl	Devices_SetReadOnly
	subs	r1, r0, #0
	beq	.L15
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
.L8:
	mov	r2, #1
	ldr	r3, .L18+12
	str	r2, [r3]
	pop	{r4, pc}
.L15:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
.L6:
	mov	r2, #170
	ldr	r3, .L18+12
	str	r2, [r3]
	pop	{r4, pc}
.L17:
	mov	r2, #1
	ldr	r0, .L18+16
	bl	Log_print
	b	.L6
.L16:
	mov	r2, #0
	mov	r1, #1
	ldr	r0, .L18+16
	bl	Log_print
	b	.L8
.L19:
	.align	2
.L18:
	.word	FALSE
	.word	host_path
	.word	devbug
	.word	CPU_regY
	.word	.LC0
	.size	Devices_H_LockUnlock, .-Devices_H_LockUnlock
	.comm	host_path,4,4
	.comm	devbug,4,4
	.comm	FALSE,4,4
	.comm	CPU_regY,4,4
	.comm	CPU_SetN,4,4
	.comm	CPU_ClrN,4,4
	.comm	CHECK_READ_ONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
