	.file	"extr_binfmt_em86.c_load_em86.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	load_em86, @function
load_em86:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR SELFMAG[rip]
	mov	esi, DWORD PTR ELFMAG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 24[rdi]
	mov	edi, DWORD PTR 16[rax]
	mov	r13, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	call	memcmp@PLT
	test	rax, rax
	jne	.L5
	cmp	QWORD PTR ET_EXEC[rip], r13
	je	.L4
	cmp	QWORD PTR ET_DYN[rip], r13
	jne	.L5
.L4:
	cmp	QWORD PTR EM_386[rip], rbx
	je	.L6
	cmp	QWORD PTR EM_486[rip], rbx
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR ENOEXEC[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.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
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L5
	call	allow_write_access@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	fput@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbp
	mov	rax, QWORD PTR EM86_I_NAME[rip]
	mov	QWORD PTR 16[rsp], 0
	mov	r13, QWORD PTR EM86_INTERP[rip]
	mov	QWORD PTR 8[rsp], rax
	call	remove_arg_zero@PLT
	mov	rdx, rbp
	mov	rsi, rbp
	mov	edi, 1
	call	copy_strings_kernel@PLT
	test	eax, eax
	js	.L1
	add	DWORD PTR 16[rbp], 1
	cmp	QWORD PTR 16[rsp], 0
	je	.L7
	lea	rsi, 16[rsp]
	mov	rdx, rbp
	mov	edi, 1
	call	copy_strings_kernel@PLT
	test	eax, eax
	js	.L1
	add	DWORD PTR 16[rbp], 1
.L7:
	lea	rsi, 8[rsp]
	mov	rdx, rbp
	mov	edi, 1
	call	copy_strings_kernel@PLT
	test	eax, eax
	js	.L1
	add	DWORD PTR 16[rbp], 1
	mov	rdi, r13
	call	open_exec@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	mov	QWORD PTR 8[rbp], r13
	mov	rdi, rbp
	call	prepare_binprm@PLT
	test	eax, eax
	js	.L1
	mov	rsi, r12
	mov	rdi, rbp
	call	search_binary_handler@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r13
	call	PTR_ERR@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	load_em86, .-load_em86
	.comm	SELFMAG,4,4
	.comm	ET_EXEC,8,8
	.comm	ET_DYN,8,8
	.comm	ENOEXEC,4,4
	.comm	EM_486,8,8
	.comm	EM_386,8,8
	.comm	EM86_I_NAME,8,8
	.comm	EM86_INTERP,8,8
	.comm	ELFMAG,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_binfmt_em86.c_load_em86.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_em86, %function
load_em86:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0, #12]
	mov	r5, r1
	ldm	r3, {r6, r7}
	ldr	r2, .L23
	ldr	r1, .L23+4
	ldr	ip, .L23+8
	sub	sp, sp, #20
	mov	r4, r0
	ldr	r2, [r2]
	ldr	r0, [r3, #8]
	ldr	r1, [r1]
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	memcmp
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L23+12
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L4
	ldr	r3, .L23+16
	ldr	r3, [r3]
	cmp	r3, r6
	bne	.L5
.L4:
	ldr	r3, .L23+20
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L6
	ldr	r3, .L23+24
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L6
.L5:
	ldr	r3, .L23+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L23+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	ldr	r0, [r4, #4]
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	bl	allow_write_access
	ldr	r0, [r4, #4]
	bl	fput
	mov	r3, #0
	ldr	r1, .L23+32
	ldr	r2, .L23+36
	ldr	r1, [r1]
	str	r3, [r4, #4]
	mov	r0, r4
	stmib	sp, {r1, r3}
	ldr	r6, [r2]
	bl	remove_arg_zero
	mov	r2, r4
	mov	r1, r4
	mov	r0, #1
	bl	copy_strings_kernel
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r4, #8]
	ldr	r2, [sp, #8]
	add	r3, r3, #1
	cmp	r2, #0
	str	r3, [r4, #8]
	beq	.L7
	mov	r2, r4
	mov	r0, #1
	add	r1, sp, #8
	bl	copy_strings_kernel
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r4, #8]
	add	r3, r3, #1
	str	r3, [r4, #8]
.L7:
	mov	r2, r4
	mov	r0, #1
	add	r1, sp, #4
	bl	copy_strings_kernel
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r4, #8]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r4, #8]
	bl	open_exec
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L22
	mov	r0, r4
	str	r6, [r4, #4]
	bl	prepare_binprm
	cmp	r0, #0
	blt	.L1
	mov	r1, r5
	mov	r0, r4
	bl	search_binary_handler
	b	.L1
.L22:
	mov	r0, r6
	bl	PTR_ERR
	b	.L1
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	SELFMAG
	.word	ELFMAG
	.word	.LC0
	.word	ET_EXEC
	.word	ET_DYN
	.word	EM_386
	.word	EM_486
	.word	ENOEXEC
	.word	EM86_I_NAME
	.word	EM86_INTERP
	.size	load_em86, .-load_em86
	.comm	SELFMAG,4,4
	.comm	ET_EXEC,4,4
	.comm	ET_DYN,4,4
	.comm	ENOEXEC,4,4
	.comm	EM_486,4,4
	.comm	EM_386,4,4
	.comm	EM86_I_NAME,4,4
	.comm	EM86_INTERP,4,4
	.comm	ELFMAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
