	.file	"698296.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"########## preload test starting ##########\n"
.LC1:
	.string	"incorrect arg count '%i'\n"
	.align 8
.LC2:
	.string	"########## preload test failed\n"
	.align 8
.LC3:
	.string	"dynamically loading test from '%s'\n"
	.align 8
.LC4:
	.string	"dlmopen() for path '%s' returned NULL, dlerror is '%s'\n"
.LC5:
	.string	"run_test"
	.align 8
.LC6:
	.string	"dlsym() for symbol 'run_test' returned NULL, dlerror is '%s'\n"
.LC7:
	.string	"test case returned failure\n"
	.align 8
.LC8:
	.string	"########## preload test passed! ##########\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -36[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -36[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	dlerror@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	rdi, -1
	call	dlmopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L4
	call	dlerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L4:
	call	dlerror@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	call	dlerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -8[rbp]
	call	rax
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L6:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"698296.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"########## preload test starting ##########\012\000"
	.align	2
.LC1:
	.ascii	"incorrect arg count '%i'\012\000"
	.align	2
.LC2:
	.ascii	"########## preload test failed\012\000"
	.align	2
.LC3:
	.ascii	"dynamically loading test from '%s'\012\000"
	.align	2
.LC4:
	.ascii	"dlmopen() for path '%s' returned NULL, dlerror is '"
	.ascii	"%s'\012\000"
	.align	2
.LC5:
	.ascii	"run_test\000"
	.align	2
.LC6:
	.ascii	"dlsym() for symbol 'run_test' returned NULL, dlerro"
	.ascii	"r is '%s'\012\000"
	.align	2
.LC7:
	.ascii	"test case returned failure\012\000"
	.align	2
.LC8:
	.ascii	"########## preload test passed! ##########\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L7+4
	bl	fwrite
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L7+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L7+16
	mov	r0, r3
	bl	fprintf
	bl	dlerror
	mov	r2, #1
	ldr	r1, [fp, #-24]
	mvn	r0, #0
	bl	dlmopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L7
	ldr	r4, [r3]
	bl	dlerror
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, .L7+20
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	mov	r3, #1
	b	.L3
.L4:
	bl	dlerror
	ldr	r1, .L7+24
	ldr	r0, [fp, #-20]
	bl	dlsym
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L7
	ldr	r4, [r3]
	bl	dlerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L7+28
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	mov	r3, #1
	b	.L3
.L5:
	ldr	r3, [fp, #-16]
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L7+32
	bl	fwrite
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	mov	r3, #1
	b	.L3
.L6:
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L7+36
	bl	fwrite
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
