	.file	"extr_24113.c_nbsd_systrace_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[+] Connecting to %s... "
.LC1:
	.string	"failed with error: "
.LC2:
	.string	"\nSorry but the exploit failed"
.LC3:
	.string	"done."
	.text
	.p2align 4
	.globl	nbsd_systrace_open
	.type	nbsd_systrace_open, @function
nbsd_systrace_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, QWORD PTR systrace_device[rip]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	rdi, QWORD PTR systrace_device[rip]
	xor	edx, edx
	call	open@PLT
	mov	r12d, eax
	cmp	eax, -1
	je	.L5
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	perror@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	nbsd_systrace_open, .-nbsd_systrace_open
	.comm	systrace_device,8,8
	.comm	O_RDONLY,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_24113.c_nbsd_systrace_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[+] Connecting to %s... \000"
	.align	2
.LC1:
	.ascii	"failed with error: \000"
	.align	2
.LC2:
	.ascii	"\012Sorry but the exploit failed\000"
	.align	2
.LC3:
	.ascii	"done.\000"
	.text
	.align	2
	.global	nbsd_systrace_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	nbsd_systrace_open, %function
nbsd_systrace_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L6
	ldr	r0, .L6+4
	ldr	r1, [r4]
	bl	printf
	ldr	r3, .L6+8
	ldr	r0, [r4]
	mov	r2, #0
	ldr	r1, [r3]
	bl	open
	cmn	r0, #1
	mov	r4, r0
	beq	.L5
.L2:
	ldr	r0, .L6+12
	bl	puts
	mov	r0, r4
	pop	{r4, pc}
.L5:
	ldr	r0, .L6+16
	bl	perror
	ldr	r0, .L6+20
	bl	puts
	mov	r0, #1
	bl	exit
	b	.L2
.L7:
	.align	2
.L6:
	.word	systrace_device
	.word	.LC0
	.word	O_RDONLY
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	nbsd_systrace_open, .-nbsd_systrace_open
	.comm	systrace_device,4,4
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
