	.file	"extr_vatpic.c_vatpic_ocw3.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enabled"
.LC1:
	.string	"disabled"
.LC2:
	.string	"master"
.LC3:
	.string	"slave"
.LC4:
	.string	"atpic ocw3 0x%x"
.LC5:
	.string	"%s atpic special mask mode %s"
	.text
	.p2align 4
	.type	vatpic_ocw3, @function
vatpic_ocw3:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	lea	rsi, .LC4[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	VATPIC_CTR1@PLT
	test	DWORD PTR OCW3_ESMM[rip], ebx
	je	.L2
	xor	edx, edx
	mov	eax, ebx
	and	eax, DWORD PTR OCW3_SMM[rip]
	mov	rsi, rbp
	setne	dl
	lea	rcx, .LC1[rip]
	mov	rdi, r13
	mov	DWORD PTR 0[rbp], edx
	lea	r12, .LC0[rip]
	cmove	r12, rcx
	call	master_atpic@PLT
	lea	rdx, .LC2[rip]
	mov	rcx, r12
	mov	rdi, r13
	test	rax, rax
	lea	rax, .LC3[rip]
	lea	rsi, .LC5[rip]
	cmove	rdx, rax
	call	VATPIC_CTR2@PLT
.L2:
	test	DWORD PTR OCW3_RR[rip], ebx
	je	.L5
	mov	eax, DWORD PTR OCW3_RIS[rip]
	and	eax, ebx
	mov	DWORD PTR 4[rbp], eax
	xor	eax, eax
	test	DWORD PTR OCW3_P[rip], ebx
	setne	al
	mov	DWORD PTR 8[rbp], eax
.L5:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	vatpic_ocw3, .-vatpic_ocw3
	.comm	OCW3_SMM,4,4
	.comm	OCW3_RR,4,4
	.comm	OCW3_RIS,4,4
	.comm	OCW3_P,4,4
	.comm	OCW3_ESMM,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_vatpic.c_vatpic_ocw3.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"master\000"
	.align	2
.LC1:
	.ascii	"slave\000"
	.align	2
.LC2:
	.ascii	"enabled\000"
	.align	2
.LC3:
	.ascii	"disabled\000"
	.align	2
.LC4:
	.ascii	"atpic ocw3 0x%x\000"
	.align	2
.LC5:
	.ascii	"%s atpic special mask mode %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vatpic_ocw3, %function
vatpic_ocw3:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	mov	r5, r1
	ldr	r1, .L17
	mov	r6, r0
	bl	VATPIC_CTR1
	ldr	r3, .L17+4
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L16
.L2:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L5
	ldr	r3, .L17+12
	ldr	r2, .L17+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	tst	r4, r3
	movne	r3, #1
	moveq	r3, #0
	and	r4, r4, r2
	str	r3, [r5, #8]
	str	r4, [r5, #4]
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, .L17+20
	mov	r1, r5
	ldr	r3, [r3]
	mov	r0, r6
	tst	r4, r3
	movne	r3, #1
	moveq	r3, #0
	str	r3, [r5]
	bl	master_atpic
	mov	ip, r0
	ldr	r1, .L17+24
	ldr	lr, [r5]
	cmp	ip, #0
	ldr	ip, .L17+28
	ldr	r2, .L17+32
	moveq	r2, r1
	cmp	lr, #0
	ldr	r3, .L17+36
	mov	r0, r6
	moveq	r3, ip
	ldr	r1, .L17+40
	bl	VATPIC_CTR2
	b	.L2
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	OCW3_ESMM
	.word	OCW3_RR
	.word	OCW3_P
	.word	OCW3_RIS
	.word	OCW3_SMM
	.word	.LC1
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	.LC5
	.size	vatpic_ocw3, .-vatpic_ocw3
	.comm	OCW3_SMM,4,4
	.comm	OCW3_RR,4,4
	.comm	OCW3_RIS,4,4
	.comm	OCW3_P,4,4
	.comm	OCW3_ESMM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
