	.file	"extr_mv_94xx.c_mvs_94xx_command_active.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"command active %08X,  slot [%x].\n"
	.text
	.p2align 4
	.type	mvs_94xx_command_active, @function
mvs_94xx_command_active:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sar	ebp, 3
	mov	rbx, rdi
	movsx	rbp, ebp
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rsi, QWORD PTR MVS_COMMAND_ACTIVE[rip]
	add	rsi, rbp
	call	mvs_cr32@PLT
	mov	edx, r13d
	sar	edx, 31
	shr	edx, 27
	lea	r12d, 0[r13+rdx]
	and	r12d, 31
	sub	r12d, edx
	bt	eax, r12d
	jc	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, r13d
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	mv_printk@PLT
	mov	ecx, r12d
	mov	eax, 1
	mov	rdi, rbx
	mov	rsi, QWORD PTR MVS_COMMAND_ACTIVE[rip]
	sal	eax, cl
	mov	edx, eax
	mov	r12d, eax
	add	rsi, rbp
	call	mvs_cw32@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, QWORD PTR MVS_COMMAND_ACTIVE[rip]
	mov	rdi, rbx
	add	rsi, rbp
	call	mvs_cr32@PLT
	test	r12d, eax
	jne	.L3
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mvs_94xx_command_active, .-mvs_94xx_command_active
	.comm	MVS_COMMAND_ACTIVE,8,8
	.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_mv_94xx.c_mvs_94xx_command_active.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"command active %08X,  slot [%x].\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mvs_94xx_command_active, %function
mvs_94xx_command_active:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r6, .L8
	mov	r5, r0
	ldr	r1, [r6]
	and	r8, r4, #31
	add	r1, r1, r4, asr #3
	bl	mvs_cr32
	rsbs	r3, r4, #0
	and	r3, r3, #31
	rsbpl	r8, r3, #0
	asr	r3, r0, r8
	tst	r3, #1
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r1, r0
	mov	r2, r4
	ldr	r0, .L8+4
	bl	mv_printk
	mov	r3, #1
	ldr	r1, [r6]
	asr	r7, r4, #3
	lsl	r8, r3, r8
	mov	r2, r8
	mov	r0, r5
	add	r1, r7, r1
	bl	mvs_cw32
.L3:
	ldr	r1, [r6]
	mov	r0, r5
	add	r1, r7, r1
	bl	mvs_cr32
	tst	r8, r0
	bne	.L3
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	MVS_COMMAND_ACTIVE
	.word	.LC0
	.size	mvs_94xx_command_active, .-mvs_94xx_command_active
	.comm	MVS_COMMAND_ACTIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
