	.file	"extr_dt_isadep.c_dt_pid_create_offset_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"-"
.LC1:
	.string	"mr sparkle: malloc() failed\n"
.LC2:
	.string	"mr sparkle: Pread() failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"fasttrap probe creation ioctl failed: %s\n"
	.text
	.p2align 4
	.globl	dt_pid_create_offset_probe
	.type	dt_pid_create_offset_probe, @function
dt_pid_create_offset_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR DTFTP_OFFSETS[rip]
	mov	esi, DWORD PTR 32[rdx]
	mov	DWORD PTR 36[rdx], eax
	mov	rax, QWORD PTR 8[rcx]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR [rcx]
	mov	DWORD PTR 16[rdx], 1
	mov	QWORD PTR 8[rdx], rax
	call	strcmp@PLT
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR 24[r15]
	mov	DWORD PTR [rax], ebx
.L3:
	mov	esi, DWORD PTR FASTTRAPIOC_MAKEPROBE[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r15
	call	ioctl@PLT
	test	rax, rax
	jne	.L24
	mov	eax, DWORD PTR 16[r15]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	proc_getpid@PLT
	mov	rdi, r12
	mov	DWORD PTR 8[rsp], eax
	call	proc_getmodel@PLT
	mov	rdx, QWORD PTR [r14]
	mov	BYTE PTR 15[rsp], al
	mov	rdi, rdx
	mov	QWORD PTR [rsp], rdx
	call	malloc@PLT
	mov	rdx, QWORD PTR [rsp]
	test	rax, rax
	mov	r13, rax
	je	.L25
	mov	rcx, QWORD PTR 8[r14]
	mov	rsi, rax
	mov	rdi, r12
	call	Pread@PLT
	cmp	rax, QWORD PTR [r14]
	jne	.L26
	mov	r8, r14
	mov	rcx, r15
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	call	dt_pid_has_jump_table@PLT
	test	rax, rax
	jne	.L7
	cmp	QWORD PTR [r14], 0
	jle	.L9
	test	ebx, ebx
	je	.L19
	movsx	r8d, BYTE PTR 15[rsp]
	mov	r12d, 0
	mov	edx, 0
	jns	.L14
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L15:
	add	r12d, eax
	movsx	rdx, r12d
	mov	rax, rdx
	cmp	rdx, QWORD PTR [r14]
	jge	.L9
	cmp	ebx, r12d
	je	.L10
	jl	.L22
.L14:
	add	rax, QWORD PTR 8[r14]
	lea	rdi, 0[r13+rdx*4]
	mov	edx, DWORD PTR 8[rsp]
	mov	rsi, rbp
	mov	rcx, rax
	mov	DWORD PTR [rsp], r8d
	call	dt_instr_size@PLT
	mov	r8d, DWORD PTR [rsp]
	test	eax, eax
	jg	.L15
.L22:
	mov	rdi, r13
	call	free@PLT
	mov	eax, DWORD PTR DT_PROC_ALIGN[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	dt_dprintf@PLT
	mov	rdi, r13
	call	free@PLT
	mov	eax, DWORD PTR DT_PROC_ERR[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC3[rip]
	mov	esi, eax
	xor	eax, eax
	call	dt_dprintf@PLT
	mov	esi, DWORD PTR errno[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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	dt_set_errno@PLT
.L19:
	.cfi_restore_state
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 24[r15]
	mov	DWORD PTR [rax], r12d
.L9:
	mov	rdi, r13
	call	free@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r13
	call	free@PLT
	xor	eax, eax
	jmp	.L1
.L25:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	dt_dprintf@PLT
	mov	eax, DWORD PTR DT_PROC_ERR[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dt_pid_create_offset_probe, .-dt_pid_create_offset_probe
	.comm	errno,4,4
	.comm	FASTTRAPIOC_MAKEPROBE,4,4
	.comm	DT_PROC_ERR,4,4
	.comm	DT_PROC_ALIGN,4,4
	.comm	DTFTP_OFFSETS,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_dt_isadep.c_dt_pid_create_offset_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"-\000"
	.align	2
.LC1:
	.ascii	"mr sparkle: malloc() failed\012\000"
	.align	2
.LC2:
	.ascii	"mr sparkle: Pread() failed\012\000"
	.align	2
.LC3:
	.ascii	"fasttrap probe creation ioctl failed: %s\012\000"
	.text
	.align	2
	.global	dt_pid_create_offset_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	dt_pid_create_offset_probe, %function
dt_pid_create_offset_probe:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	mov	r4, r2
	mov	r3, #1
	ldr	r2, .L29
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [r2]
	ldr	r1, [r5, #4]
	ldr	r2, [r5]
	sub	sp, sp, #20
	stm	r4, {r1, r2, r3}
	str	r0, [r4, #20]
	ldr	r1, [r4, #16]
	ldr	r0, .L29+4
	ldr	r9, [sp, #56]
	bl	strcmp
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r4, #12]
	str	r9, [r3]
.L3:
	ldr	r3, .L29+8
	mov	r2, r4
	ldr	r1, [r3]
	ldr	r0, [r7]
	bl	ioctl
	cmp	r0, #0
	ldreq	r0, [r4, #8]
	bne	.L26
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r6
	bl	proc_getpid
	mov	r10, r0
	mov	r0, r6
	bl	proc_getmodel
	ldr	r2, [r5]
	mov	fp, r0
	mov	r0, r2
	str	r2, [sp, #12]
	bl	malloc
	subs	r8, r0, #0
	ldr	r2, [sp, #12]
	beq	.L27
	ldr	r3, [r5, #4]
	mov	r1, r8
	mov	r0, r6
	bl	Pread
	ldr	r3, [r5]
	cmp	r0, r3
	bne	.L28
	mov	r0, r6
	mov	r3, r4
	mov	r2, r8
	mov	r1, r7
	str	r5, [sp]
	bl	dt_pid_has_jump_table
	subs	r6, r0, #0
	bne	.L7
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L9
	cmp	r9, #0
	bne	.L13
	b	.L10
.L12:
	ldr	r3, [r5, #4]
	add	r0, r8, r6, lsl #2
	add	r3, r6, r3
	mov	r2, r10
	mov	r1, r7
	str	fp, [sp]
	bl	dt_instr_size
	cmp	r0, #0
	add	r6, r6, r0
	ble	.L24
	ldr	r3, [r5]
	cmp	r3, r6
	ble	.L9
	cmp	r9, r6
	beq	.L10
.L13:
	bge	.L12
.L24:
	mov	r0, r8
	bl	free
	ldr	r3, .L29+12
	ldr	r0, [r3]
	b	.L1
.L28:
	ldr	r0, .L29+16
	bl	dt_dprintf
	mov	r0, r8
	bl	free
	ldr	r3, .L29+20
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldr	r4, .L29+24
	ldr	r0, [r4]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L29+28
	bl	dt_dprintf
	mov	r0, r7
	ldr	r1, [r4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	dt_set_errno
.L10:
	ldr	r3, [r4, #12]
	str	r6, [r3]
.L9:
	mov	r0, r8
	bl	free
	b	.L3
.L7:
	mov	r0, r8
	bl	free
	mov	r0, #0
	b	.L1
.L27:
	ldr	r0, .L29+32
	bl	dt_dprintf
	ldr	r3, .L29+20
	ldr	r0, [r3]
	b	.L1
.L30:
	.align	2
.L29:
	.word	DTFTP_OFFSETS
	.word	.LC0
	.word	FASTTRAPIOC_MAKEPROBE
	.word	DT_PROC_ALIGN
	.word	.LC2
	.word	DT_PROC_ERR
	.word	errno
	.word	.LC3
	.word	.LC1
	.size	dt_pid_create_offset_probe, .-dt_pid_create_offset_probe
	.comm	errno,4,4
	.comm	FASTTRAPIOC_MAKEPROBE,4,4
	.comm	DT_PROC_ERR,4,4
	.comm	DT_PROC_ALIGN,4,4
	.comm	DTFTP_OFFSETS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
