	.file	"extr_pt_block_decoder.c_pt_blk_decoder_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pt_blk_decoder_init
	.type	pt_blk_decoder_init, @function
pt_blk_decoder_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR pte_internal[rip]
	neg	eax
	test	rdi, rdi
	je	.L1
	lea	r12, 4[rsp]
	mov	rbp, rdi
	mov	rdi, r12
	call	pt_config_from_user@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 4[rsp]
	lea	rsi, 20[rbp]
	mov	rdi, r12
	mov	DWORD PTR 20[rbp], eax
	call	pt_blk_init_qry_flags@PLT
	test	eax, eax
	js	.L1
	lea	rdi, 16[rbp]
	mov	rsi, r12
	call	pt_qry_decoder_init@PLT
	test	eax, eax
	js	.L1
	lea	r12, 4[rbp]
	xor	esi, esi
	mov	rdi, r12
	call	pt_image_init@PLT
	mov	QWORD PTR 8[rbp], r12
	mov	rdi, rbp
	call	pt_msec_cache_init@PLT
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	pt_blk_reset@PLT
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pt_blk_decoder_init, .-pt_blk_decoder_init
	.comm	pte_internal,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_pt_block_decoder.c_pt_blk_decoder_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pt_blk_decoder_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	pt_blk_decoder_init, %function
pt_blk_decoder_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L9
	sub	sp, sp, #12
	subs	r4, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L7
	mov	r0, sp
	bl	pt_config_from_user
	cmp	r0, #0
	blt	.L1
	mov	r1, r4
	ldr	r3, [sp]
	mov	r0, sp
	str	r3, [r1, #16]!
	bl	pt_blk_init_qry_flags
	cmp	r0, #0
	blt	.L1
	mov	r1, sp
	add	r0, r4, #12
	bl	pt_qry_decoder_init
	cmp	r0, #0
	blt	.L1
	add	r5, r4, #4
	mov	r1, #0
	mov	r0, r5
	bl	pt_image_init
	mov	r0, r4
	str	r5, [r4, #8]
	bl	pt_msec_cache_init
	cmp	r0, #0
	blt	.L1
	mov	r0, r4
	bl	pt_blk_reset
	mov	r0, #0
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	pte_internal
	.size	pt_blk_decoder_init, .-pt_blk_decoder_init
	.comm	pte_internal,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
