	.file	"extr_i8254.c_pit_latch_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pit_latch_status, @function
pit_latch_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movsx	rax, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdx, [rax+rax*4]
	mov	r12, rax
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR 8[rdi]
	lea	rbx, [rax+rdx*4]
	call	mutex_is_locked@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	WARN_ON@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L5
	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
.L5:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	pit_get_out@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 12[rbx]
	mov	DWORD PTR [rbx], 1
	sal	eax, 7
	sal	edx, 4
	add	ecx, ecx
	or	edx, ecx
	or	edx, DWORD PTR 16[rbx]
	or	edx, eax
	mov	DWORD PTR 4[rbx], edx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pit_latch_status, .-pit_latch_status
	.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_i8254.c_pit_latch_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pit_latch_status, %function
pit_latch_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0]
	add	r3, r1, r1, lsl #2
	ldr	r6, [r0, #4]
	lsl	r8, r3, #2
	add	r7, r6, r3, lsl #2
	mov	r4, r1
	bl	mutex_is_locked
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON
	ldr	r3, [r6, r8]
	cmp	r3, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r1, r4
	mov	r0, r5
	bl	pit_get_out
	mov	r2, #1
	ldr	r3, [r7, #12]
	ldr	r1, [r7, #8]
	lsl	r3, r3, r2
	orr	r3, r3, r1, lsl #4
	ldr	r1, [r7, #16]
	orr	r3, r3, r1
	orr	r3, r3, r0, lsl #7
	str	r3, [r7, #4]
	str	r2, [r6, r8]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	pit_latch_status, .-pit_latch_status
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
