	.file	"extr_zend_jit_perf_dump.c_zend_jit_perf_jitdump_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/tmp/jit-%d.dump"
.LC1:
	.string	"/proc/self/exe"
	.text
	.p2align 4
	.type	zend_jit_perf_jitdump_open, @function
zend_jit_perf_jitdump_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 152
	.cfi_def_cfa_offset 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	lea	r12, 64[rsp]
	call	getpid@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	edx, eax
	call	sprintf@PLT
	xor	eax, eax
	call	zend_perf_timestamp@PLT
	test	rax, rax
	jne	.L12
.L1:
	mov	rax, QWORD PTR 136[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR O_RDONLY[rip]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	open@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L1
	mov	edi, eax
	mov	rsi, rsp
	mov	edx, 16
	call	read@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	close@PLT
	cmp	ebx, 16
	jne	.L1
	mov	rax, QWORD PTR [rsp]
	cmp	DWORD PTR [rax], 127
	jne	.L1
	cmp	DWORD PTR 4[rax], 69
	jne	.L1
	cmp	DWORD PTR 8[rax], 76
	jne	.L1
	cmp	DWORD PTR 12[rax], 70
	jne	.L1
	mov	esi, DWORD PTR O_CREAT[rip]
	mov	edx, 438
	mov	rdi, r12
	xor	eax, eax
	or	esi, DWORD PTR O_TRUNC[rip]
	or	esi, DWORD PTR O_RDWR[rip]
	call	open@PLT
	mov	DWORD PTR jitdump_fd[rip], eax
	mov	ebx, eax
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR _SC_PAGESIZE[rip]
	mov	r13d, DWORD PTR MAP_PRIVATE[rip]
	mov	r12d, DWORD PTR PROT_READ[rip]
	or	r12d, DWORD PTR PROT_EXEC[rip]
	call	sysconf@PLT
	xor	r9d, r9d
	xor	edi, edi
	mov	r8d, ebx
	mov	esi, eax
	mov	ecx, r13d
	mov	edx, r12d
	call	mmap@PLT
	cmp	rax, QWORD PTR MAP_FAILED[rip]
	mov	QWORD PTR jitdump_mem[rip], rax
	je	.L14
	lea	rbp, 16[rsp]
	xor	esi, esi
	mov	edx, 40
	mov	rdi, rbp
	call	memset@PLT
	mov	eax, DWORD PTR ZEND_PERF_JITDUMP_HEADER_MAGIC[rip]
	mov	DWORD PTR 16[rsp], 40
	mov	DWORD PTR 48[rsp], eax
	mov	eax, DWORD PTR ZEND_PERF_JITDUMP_HEADER_VERSION[rip]
	mov	DWORD PTR 44[rsp], eax
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 40[rsp], eax
	xor	eax, eax
	call	getpid@PLT
	mov	DWORD PTR 20[rsp], eax
	xor	eax, eax
	call	zend_perf_timestamp@PLT
	mov	edi, DWORD PTR jitdump_fd[rip]
	mov	edx, 40
	mov	rsi, rbp
	mov	QWORD PTR 32[rsp], rax
	mov	QWORD PTR 24[rsp], 0
	call	zend_quiet_write@PLT
	jmp	.L1
.L14:
	mov	edi, DWORD PTR jitdump_fd[rip]
	call	close@PLT
	mov	DWORD PTR jitdump_fd[rip], -1
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zend_jit_perf_jitdump_open, .-zend_jit_perf_jitdump_open
	.comm	jitdump_mem,8,8
	.comm	jitdump_fd,4,4
	.comm	_SC_PAGESIZE,4,4
	.comm	ZEND_PERF_JITDUMP_HEADER_VERSION,4,4
	.comm	ZEND_PERF_JITDUMP_HEADER_MAGIC,4,4
	.comm	PROT_READ,4,4
	.comm	PROT_EXEC,4,4
	.comm	PATH_MAX,4,4
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CREAT,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FAILED,8,8
	.comm	KERN_PROC_PATHNAME,4,4
	.comm	KERN_PROC,4,4
	.comm	CTL_KERN,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_zend_jit_perf_dump.c_zend_jit_perf_jitdump_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/tmp/jit-%d.dump\000"
	.align	2
.LC1:
	.ascii	"/proc/self/exe\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zend_jit_perf_jitdump_open, %function
zend_jit_perf_jitdump_open:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L15
	sub	sp, sp, #112
	ldr	r3, [r3]
	str	r3, [sp, #108]
	mov	r3,#0
	bl	getpid
	ldr	r1, .L15+4
	mov	r2, r0
	add	r0, sp, #44
	bl	sprintf
	bl	zend_perf_timestamp
	cmp	r0, #0
	bne	.L12
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #108]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #112
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L15+8
	ldr	r0, .L15+12
	ldr	r1, [r3]
	bl	open
	subs	r4, r0, #0
	blt	.L1
	mov	r2, #8
	add	r1, sp, r2
	bl	read
	mov	r5, r0
	mov	r0, r4
	bl	close
	cmp	r5, #8
	bne	.L1
	ldr	r3, [sp, #8]
	ldr	r2, [r3]
	cmp	r2, #127
	bne	.L1
	ldr	r2, [r3, #4]
	cmp	r2, #69
	bne	.L1
	ldr	r2, [r3, #8]
	cmp	r2, #76
	bne	.L1
	ldr	r3, [r3, #12]
	cmp	r3, #70
	bne	.L1
	ldr	r3, .L15+16
	ldr	r2, .L15+20
	ldr	r1, .L15+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	add	r0, sp, #44
	ldr	r2, .L15+28
	orr	r1, r3, r1
	bl	open
	ldr	r5, .L15+32
	cmp	r0, #0
	str	r0, [r5]
	blt	.L1
	ldr	r3, .L15+36
	mov	r4, #0
	ldr	r0, [r3]
	bl	sysconf
	ldr	r2, .L15+40
	ldr	r3, .L15+44
	ldr	lr, [r2]
	ldr	ip, [r5]
	ldr	r2, [r3]
	ldr	r3, .L15+48
	str	r4, [sp, #4]
	ldr	r3, [r3]
	mov	r1, r0
	orr	r2, lr, r2
	mov	r0, r4
	str	ip, [sp]
	bl	mmap
	ldr	r3, .L15+52
	ldr	r2, .L15+56
	ldr	r3, [r3]
	str	r0, [r2]
	cmp	r0, r3
	beq	.L14
	mov	r6, #28
	ldr	r2, .L15+60
	ldr	r3, .L15+64
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	str	r1, [sp, #40]
	str	r2, [sp, #36]
	str	r3, [sp, #32]
	str	r4, [sp, #20]
	str	r6, [sp, #16]
	str	r4, [sp, #24]
	str	r4, [sp, #28]
	bl	getpid
	str	r0, [sp, #20]
	bl	zend_perf_timestamp
	mov	r3, r0
	mov	r2, r6
	ldr	r0, [r5]
	add	r1, sp, #16
	str	r3, [sp, #28]
	str	r4, [sp, #24]
	bl	zend_quiet_write
	b	.L1
.L14:
	ldr	r0, [r5]
	bl	close
	mvn	r3, #0
	str	r3, [r5]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC0
	.word	O_RDONLY
	.word	.LC1
	.word	O_CREAT
	.word	O_TRUNC
	.word	O_RDWR
	.word	438
	.word	jitdump_fd
	.word	_SC_PAGESIZE
	.word	PROT_READ
	.word	PROT_EXEC
	.word	MAP_PRIVATE
	.word	MAP_FAILED
	.word	jitdump_mem
	.word	ZEND_PERF_JITDUMP_HEADER_MAGIC
	.word	ZEND_PERF_JITDUMP_HEADER_VERSION
	.size	zend_jit_perf_jitdump_open, .-zend_jit_perf_jitdump_open
	.comm	jitdump_mem,4,4
	.comm	jitdump_fd,4,4
	.comm	_SC_PAGESIZE,4,4
	.comm	ZEND_PERF_JITDUMP_HEADER_VERSION,4,4
	.comm	ZEND_PERF_JITDUMP_HEADER_MAGIC,4,4
	.comm	PROT_READ,4,4
	.comm	PROT_EXEC,4,4
	.comm	PATH_MAX,4,4
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CREAT,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FAILED,4,4
	.comm	KERN_PROC_PATHNAME,4,4
	.comm	KERN_PROC,4,4
	.comm	CTL_KERN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
