	.file	"extr_ptrace.c_ptrace_set_debugreg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ptrace_set_debugreg, @function
ptrace_set_debugreg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	eax, -4[rsi]
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	xor	edi, edi
	cmp	eax, 1
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	setbe	dil
	mov	ebx, esi
	call	unlikely@PLT
	test	rax, rax
	jne	.L13
	cmp	ebx, 3
	jle	.L24
.L4:
	cmp	ebx, 7
	ja	.L16
	lea	rcx, .L6[rip]
	mov	edx, ebx
	movsx	rax, DWORD PTR [rcx+rdx*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L11-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L16-.L6
	.long	.L16-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, rbp
	call	debugreg_addr_limit@PLT
	xor	edi, edi
	cmp	rax, r12
	setbe	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	mov	eax, r12d
	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	rdx, QWORD PTR DR_CONTROL_RESERVED[rip]
	mov	eax, 16
	mov	esi, 21844
	not	rdx
	and	rdx, r12
.L14:
	mov	ecx, eax
	mov	rbx, rdx
	shr	rbx, cl
	mov	rcx, rbx
	mov	ebx, esi
	and	ecx, 15
	sar	ebx, cl
	and	ebx, 1
	mov	r12d, ebx
	jne	.L13
	add	eax, 4
	cmp	eax, 32
	jne	.L14
	mov	QWORD PTR 40[rbp], rdx
	mov	esi, DWORD PTR TIF_DEBUG[rip]
	mov	rdi, rbp
	test	rdx, rdx
	je	.L15
	call	set_tsk_thread_flag@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR 0[rbp], r12
	mov	r12d, ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	QWORD PTR 8[rbp], r12
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	QWORD PTR 16[rbp], r12
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	QWORD PTR 24[rbp], r12
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	movabs	rax, -4294967296
	test	r12, rax
	jne	.L13
	mov	QWORD PTR 32[rbp], r12
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	call	clear_tsk_thread_flag@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ptrace_set_debugreg, .-ptrace_set_debugreg
	.comm	TIF_DEBUG,4,4
	.comm	EIO,4,4
	.comm	DR_CONTROL_RESERVED,8,8
	.comm	DR7_MASK,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_ptrace.c_ptrace_set_debugreg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptrace_set_debugreg, %function
ptrace_set_debugreg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	sub	r0, r1, #4
	cmp	r0, #1
	movhi	r0, #0
	movls	r0, #1
	mov	r4, r1
	mov	r7, r2
	bl	unlikely
	subs	r5, r0, #0
	bne	.L20
	cmp	r4, #3
	ble	.L22
.L4:
	cmp	r4, #7
	ldrls	pc, [pc, r4, asl #2]
	b	.L1
.L6:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L1
	.word	.L1
	.word	.L7
	.word	.L5
.L5:
	mov	r3, #16
	ldr	r2, .L24
	ldr	r1, .L24+4
	ldr	r2, [r2]
	bic	r2, r7, r2
.L13:
	lsr	r0, r2, r3
	and	r0, r0, #15
	asr	r0, r1, r0
	ands	r5, r0, #1
	add	r3, r3, #4
	bne	.L20
	cmp	r3, #32
	bne	.L13
	ldr	r3, .L24+8
	cmp	r2, #0
	mov	r0, r6
	ldr	r1, [r3]
	str	r2, [r6, #20]
	bne	.L23
	bl	clear_tsk_thread_flag
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r0, r6
	bl	debugreg_addr_limit
	cmp	r0, r7
	movhi	r0, #0
	movls	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L4
.L20:
	ldr	r3, .L24+12
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r5, r4
	str	r7, [r6]
	b	.L1
.L10:
	str	r7, [r6, #4]
	b	.L1
.L9:
	str	r7, [r6, #8]
	b	.L1
.L8:
	str	r7, [r6, #12]
	b	.L1
.L7:
	str	r7, [r6, #16]
	b	.L1
.L23:
	bl	set_tsk_thread_flag
	b	.L1
.L25:
	.align	2
.L24:
	.word	DR_CONTROL_RESERVED
	.word	21844
	.word	TIF_DEBUG
	.word	EIO
	.size	ptrace_set_debugreg, .-ptrace_set_debugreg
	.comm	TIF_DEBUG,4,4
	.comm	EIO,4,4
	.comm	DR_CONTROL_RESERVED,4,4
	.comm	DR7_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
