	.file	"extr_booke.c_kvmppc_booke_add_watchpoint.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvmppc_booke_add_watchpoint, @function
kvmppc_booke_add_watchpoint:
.LFB0:
	.cfi_startproc
	endbr64
	test	ecx, ecx
	je	.L2
	cmp	ecx, 1
	je	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR KVMPPC_DEBUG_WATCH_READ[rip], edx
	je	.L5
	or	eax, DWORD PTR DBCR0_DAC1R[rip]
.L5:
	test	DWORD PTR KVMPPC_DEBUG_WATCH_WRITE[rip], edx
	jne	.L25
.L6:
	or	eax, DWORD PTR DBCR0_IDM[rip]
	mov	QWORD PTR 16[rdi], rsi
	mov	DWORD PTR [rdi], eax
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR KVMPPC_DEBUG_WATCH_READ[rip], edx
	je	.L8
	or	eax, DWORD PTR DBCR0_DAC2R[rip]
.L8:
	test	DWORD PTR KVMPPC_DEBUG_WATCH_WRITE[rip], edx
	je	.L9
	or	eax, DWORD PTR DBCR0_DAC2W[rip]
.L9:
	or	eax, DWORD PTR DBCR0_IDM[rip]
	mov	QWORD PTR 8[rdi], rsi
	mov	DWORD PTR [rdi], eax
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	or	eax, DWORD PTR DBCR0_DAC1W[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	kvmppc_booke_add_watchpoint, .-kvmppc_booke_add_watchpoint
	.comm	KVMPPC_DEBUG_WATCH_WRITE,4,4
	.comm	KVMPPC_DEBUG_WATCH_READ,4,4
	.comm	EINVAL,4,4
	.comm	DBCR0_IDM,4,4
	.comm	DBCR0_DAC2W,4,4
	.comm	DBCR0_DAC2R,4,4
	.comm	DBCR0_DAC1W,4,4
	.comm	DBCR0_DAC1R,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_booke.c_kvmppc_booke_add_watchpoint.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmppc_booke_add_watchpoint, %function
kvmppc_booke_add_watchpoint:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r3, #0
	mov	ip, r0
	str	lr, [sp, #-4]!
	beq	.L2
	cmp	r3, #1
	beq	.L3
	ldr	r3, .L26
	ldr	r0, [r3]
	rsb	r0, r0, #0
	ldr	pc, [sp], #4
.L2:
	ldr	r3, .L26+4
	ldr	lr, [r0]
	ldr	r3, [r3]
	str	r1, [r0, #8]
	tst	r2, r3
	ldrne	r3, .L26+8
	ldrne	r3, [r3]
	orrne	lr, lr, r3
	ldr	r3, .L26+12
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, .L26+16
	ldrne	r3, [r3]
	orrne	lr, lr, r3
.L7:
	ldr	r3, .L26+20
	mov	r0, #0
	ldr	r3, [r3]
	orr	r3, r3, lr
	str	r3, [ip]
	ldr	pc, [sp], #4
.L3:
	ldr	r3, .L26+4
	ldr	lr, [r0]
	ldr	r3, [r3]
	str	r1, [r0, #4]
	tst	r2, r3
	ldrne	r3, .L26+24
	ldrne	r3, [r3]
	orrne	lr, lr, r3
	ldr	r3, .L26+12
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, .L26+28
	ldrne	r3, [r3]
	orrne	lr, lr, r3
	b	.L7
.L27:
	.align	2
.L26:
	.word	EINVAL
	.word	KVMPPC_DEBUG_WATCH_READ
	.word	DBCR0_DAC1R
	.word	KVMPPC_DEBUG_WATCH_WRITE
	.word	DBCR0_DAC1W
	.word	DBCR0_IDM
	.word	DBCR0_DAC2R
	.word	DBCR0_DAC2W
	.size	kvmppc_booke_add_watchpoint, .-kvmppc_booke_add_watchpoint
	.comm	KVMPPC_DEBUG_WATCH_WRITE,4,4
	.comm	KVMPPC_DEBUG_WATCH_READ,4,4
	.comm	EINVAL,4,4
	.comm	DBCR0_IDM,4,4
	.comm	DBCR0_DAC2W,4,4
	.comm	DBCR0_DAC2R,4,4
	.comm	DBCR0_DAC1W,4,4
	.comm	DBCR0_DAC1R,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
