	.file	"480228.c"
	.intel_syntax noprefix
	.text
	.globl	real_open
	.bss
	.align 8
	.type	real_open, @object
	.size	real_open, 8
real_open:
	.zero	8
	.section	.rodata
.LC0:
	.string	"open64"
.LC1:
	.string	"DBG> new_open(%s)\n"
	.text
	.globl	open
	.type	open, @function
open:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 768
	mov	QWORD PTR -760[rbp], rdi
	mov	DWORD PTR -764[rbp], esi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -740[rbp], 0
	mov	DWORD PTR -736[rbp], 1
	mov	eax, DWORD PTR -764[rbp]
	and	eax, 64
	test	eax, eax
	je	.L3
	mov	DWORD PTR -728[rbp], 16
	mov	DWORD PTR -724[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -720[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -712[rbp], rax
	mov	eax, DWORD PTR -728[rbp]
	cmp	eax, 47
	ja	.L4
	mov	rax, QWORD PTR -712[rbp]
	mov	edx, DWORD PTR -728[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -728[rbp]
	add	edx, 8
	mov	DWORD PTR -728[rbp], edx
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -720[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -720[rbp], rdx
.L5:
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -740[rbp], eax
	mov	DWORD PTR -736[rbp], 0
.L3:
	mov	rax, QWORD PTR real_open[rip]
	test	rax, rax
	jne	.L6
	lea	rsi, .LC0[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR real_open[rip], rax
.L6:
	mov	rdx, QWORD PTR -760[rbp]
	lea	rax, -704[rbp]
	mov	rcx, rdx
	lea	rdx, .LC1[rip]
	mov	esi, 512
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -704[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -704[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	cmp	DWORD PTR -736[rbp], 0
	je	.L7
	mov	rcx, QWORD PTR real_open[rip]
	mov	edx, DWORD PTR -764[rbp]
	mov	rax, QWORD PTR -760[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	rcx
	mov	DWORD PTR -732[rbp], eax
	jmp	.L8
.L7:
	mov	r8, QWORD PTR real_open[rip]
	mov	edx, DWORD PTR -740[rbp]
	mov	ecx, DWORD PTR -764[rbp]
	mov	rax, QWORD PTR -760[rbp]
	mov	esi, ecx
	mov	rdi, rax
	mov	eax, 0
	call	r8
	mov	DWORD PTR -732[rbp], eax
.L8:
	mov	eax, DWORD PTR -732[rbp]
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	open, .-open
	.globl	__open64
	.set	__open64,open
	.globl	open64
	.set	open64,open
	.globl	__open
	.set	__open,open
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"480228.c"
	.text
	.global	real_open
	.bss
	.align	2
	.type	real_open, %object
	.size	real_open, 4
real_open:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"open64\000"
	.align	2
.LC1:
	.ascii	"DBG> new_open(%s)\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open
	.syntax unified
	.arm
	.fpu softvfp
	.type	open, %function
open:
	@ args = 4, pretend = 12, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #548
	str	r0, [fp, #-548]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-536]
	mov	r3, #1
	str	r3, [fp, #-532]
	ldr	r3, [fp, #4]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L2
	add	r3, fp, #8
	str	r3, [fp, #-540]
	ldr	r3, [fp, #-540]
	add	r2, r3, #4
	str	r2, [fp, #-540]
	ldr	r3, [r3]
	str	r3, [fp, #-536]
	mov	r3, #0
	str	r3, [fp, #-532]
.L2:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r1, .L8+8
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L8+4
	str	r2, [r3]
.L3:
	sub	r0, fp, #524
	ldr	r3, [fp, #-548]
	ldr	r2, .L8+12
	mov	r1, #512
	bl	snprintf
	sub	r3, fp, #524
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #524
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-548]
	blx	r3
	str	r0, [fp, #-528]
	b	.L5
.L4:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-536]
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-548]
	blx	r3
	str	r0, [fp, #-528]
.L5:
	ldr	r3, [fp, #-528]
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-12]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #12
	bx	lr
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	real_open
	.word	.LC0
	.word	.LC1
	.size	open, .-open
	.global	__open64
	.set	__open64,open
	.global	open64
	.set	open64,open
	.global	__open
	.set	__open,open
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
