	.file	"extr_ds.c_ds_request_bts.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ds_request_bts, @function
ds_request_bts:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR 80[rsp]
	mov	DWORD PTR 4[rsp], eax
	test	r8, r8
	je	.L2
	mov	r8d, DWORD PTR EOPNOTSUPP[rip]
	neg	r8d
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edi, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbp, rdi
	mov	r14d, esi
	mov	r12, rdx
	mov	r13, rcx
	mov	rbx, r9
	call	get_tracer@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L3
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 32
	mov	DWORD PTR 8[rsp], eax
	call	kzalloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L12
	lea	rax, 16[rax]
	mov	edx, DWORD PTR ds_bts[rip]
	mov	r8d, r14d
	mov	r9, r12
	mov	QWORD PTR 8[rax], 0
	mov	rcx, rbp
	mov	rsi, rax
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rax
	push	rbx
	.cfi_def_cfa_offset 88
	push	r13
	.cfi_def_cfa_offset 96
	call	ds_request@PLT
	mov	r8d, eax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	r8d, r8d
	js	.L6
	lea	rdi, ds_lock[rip]
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR [r15]
	cmp	QWORD PTR [rax], 0
	je	.L7
	mov	r8d, DWORD PTR EPERM[rip]
	lea	rdi, ds_lock[rip]
	neg	r8d
	mov	DWORD PTR 4[rsp], r8d
	call	spin_unlock_irq@PLT
	mov	rdi, QWORD PTR [r15]
	call	ds_put_context@PLT
	mov	r8d, DWORD PTR 4[rsp]
.L6:
	mov	rdi, r15
	mov	DWORD PTR 4[rsp], r8d
	call	kfree@PLT
	mov	r8d, DWORD PTR 4[rsp]
.L5:
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], r8d
	call	put_tracer@PLT
	mov	r8d, DWORD PTR 4[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r8d, DWORD PTR 8[rsp]
	neg	r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	QWORD PTR [rax], r15
	lea	rdi, ds_lock[rip]
	call	spin_unlock_irq@PLT
	mov	r8, rbx
	mov	rbx, QWORD PTR 8[rsp]
	mov	rcx, r13
	mov	r9d, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR ds_bts[rip]
	mov	rdx, r12
	mov	rdi, rbx
	call	ds_init_ds_trace@PLT
	mov	edx, DWORD PTR ds_bts[rip]
	mov	rdi, QWORD PTR [r15]
	mov	rsi, rbx
	call	ds_write_config@PLT
	mov	rdi, QWORD PTR [r15]
	call	ds_install_ds_area@PLT
	mov	eax, DWORD PTR bts_read[rip]
	mov	rdi, r15
	mov	DWORD PTR 12[r15], eax
	mov	eax, DWORD PTR bts_write[rip]
	mov	DWORD PTR 8[r15], eax
	call	ds_resume_bts@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ds_request_bts, .-ds_request_bts
	.comm	ds_lock,4,4
	.comm	ds_bts,4,4
	.comm	bts_write,4,4
	.comm	bts_read,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPERM,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,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_ds.c_ds_request_bts.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ds_request_bts, %function
ds_request_bts:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	r10, [sp, #64]
	mov	r6, r3
	ldr	r3, [sp, #72]
	cmp	r10, #0
	ldr	r9, [sp, #68]
	str	r3, [sp, #16]
	beq	.L2
	ldr	r3, .L12
	ldr	r3, [r3]
	rsb	fp, r3, #0
.L3:
	mov	r0, fp
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ERR_PTR
.L2:
	mov	r7, r1
	mov	r5, r2
	mov	r4, r0
	bl	get_tracer
	subs	fp, r0, #0
	blt	.L3
	ldr	r1, .L12+4
	ldr	r3, .L12+8
	mov	r0, #20
	ldr	r1, [r1]
	ldr	fp, [r3]
	bl	kzalloc
	subs	r8, r0, #0
	rsbeq	fp, fp, #0
	beq	.L5
	ldr	r3, .L12+12
	str	r10, [r8, #16]
	ldr	r2, [r3]
	add	r1, r8, #12
	mov	r3, r4
	stmib	sp, {r5, r6, r9}
	str	r7, [sp]
	str	r1, [sp, #20]
	bl	ds_request
	subs	fp, r0, #0
	blt	.L6
	ldr	r0, .L12+16
	bl	spin_lock_irq
	ldr	r3, [r8]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L7
	ldr	r3, .L12+20
	ldr	r0, .L12+16
	ldr	r3, [r3]
	rsb	fp, r3, #0
	bl	spin_unlock_irq
	ldr	r0, [r8]
	bl	ds_put_context
.L6:
	mov	r0, r8
	bl	kfree
.L5:
	mov	r0, r4
	bl	put_tracer
	mov	r0, fp
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ERR_PTR
.L7:
	str	r8, [r3]
	ldr	r0, .L12+16
	bl	spin_unlock_irq
	ldr	r3, [sp, #16]
	mov	r2, r5
	ldr	r4, .L12+12
	ldr	r5, [sp, #20]
	str	r3, [sp, #4]
	str	r9, [sp]
	mov	r3, r6
	ldr	r1, [r4]
	mov	r0, r5
	bl	ds_init_ds_trace
	mov	r1, r5
	ldr	r2, [r4]
	ldr	r0, [r8]
	bl	ds_write_config
	ldr	r0, [r8]
	bl	ds_install_ds_area
	ldr	r2, .L12+24
	ldr	r3, .L12+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r8
	str	r2, [r8, #8]
	str	r3, [r8, #4]
	bl	ds_resume_bts
	mov	r0, r8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	EOPNOTSUPP
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	ds_bts
	.word	ds_lock
	.word	EPERM
	.word	bts_read
	.word	bts_write
	.size	ds_request_bts, .-ds_request_bts
	.comm	ds_lock,4,4
	.comm	ds_bts,4,4
	.comm	bts_write,4,4
	.comm	bts_read,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPERM,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
