	.file	"extr_memory.c_mem_ioctl_no_mmu.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"alloc size must be larger than 0\n"
	.align 8
.LC1:
	.string	"Unknown opcode for memory IOCTL\n"
	.text
	.p2align 4
	.type	mem_ioctl_no_mmu, @function
mem_ioctl_no_mmu:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	rdi, QWORD PTR [rdi]
	mov	DWORD PTR [rsp], 0
	mov	DWORD PTR 4[rsp], 0
	cmp	edx, 130
	je	.L2
	jg	.L3
.L4:
	endbr64
	xor	r12d, r12d
	cmp	edx, 128
	je	.L1
	cmp	edx, 129
	jne	.L6
	mov	eax, DWORD PTR 4[rsi]
	test	DWORD PTR HL_MEM_USERPTR[rip], eax
	je	.L8
	mov	eax, DWORD PTR 8[rsi]
	mov	DWORD PTR [rsp], eax
.L9:
	mov	edx, 20
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	eax, DWORD PTR [rsp]
	mov	DWORD PTR [rbx], eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	edx, 131
	jne	.L6
	mov	edx, DWORD PTR 16[rsi]
	test	edx, edx
	je	.L16
	mov	eax, DWORD PTR HL_MEM_CONTIGUOUS[rip]
	or	DWORD PTR 4[rsi], eax
	lea	rdx, 4[rsp]
	call	alloc_device_memory@PLT
	mov	edx, 20
	xor	esi, esi
	mov	rdi, rbx
	mov	r12d, eax
	call	memset@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR [rax]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, rsp
	call	get_paddr_from_handle@PLT
	mov	r12d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR [rax]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOTTY[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 12[rsi]
	call	free_device_memory@PLT
	mov	r12d, eax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mem_ioctl_no_mmu, .-mem_ioctl_no_mmu
	.comm	HL_MEM_USERPTR,4,4
	.comm	HL_MEM_CONTIGUOUS,4,4
	.comm	ENOTTY,4,4
	.comm	EINVAL,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_memory.c_mem_ioctl_no_mmu.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"alloc size must be larger than 0\012\000"
	.align	2
.LC1:
	.ascii	"Unknown opcode for memory IOCTL\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mem_ioctl_no_mmu, %function
mem_ioctl_no_mmu:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r4, r5, r6, lr}
	ldr	r3, [r1]
	mov	r4, r1
	ldr	r1, .L17
	sub	sp, sp, #16
	sub	r3, r3, #128
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	ldm	r0, {r0, r1}
	str	r2, [sp, #4]
	str	r2, [sp, #8]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L12
	.word	.L6
	.word	.L5
	.word	.L3
.L12:
	mov	r5, #0
.L7:
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L16
	ldr	r2, .L17+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r1, r4
	orr	r3, r3, r2
	str	r3, [r4, #4]
	add	r2, sp, #8
	bl	alloc_device_memory
	mov	r2, #20
	mov	r5, r0
	mov	r1, #0
	mov	r0, r4
	bl	memset
	ldr	r3, [sp, #8]
	str	r3, [r4, #4]
	b	.L1
.L6:
	ldr	r3, .L17+8
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L9
	mov	r5, #0
	ldr	r6, [r4, #8]
.L10:
	mov	r2, #16
	mov	r1, #0
	add	r0, r4, #4
	bl	memset
	str	r6, [r4]
	b	.L1
.L5:
	ldr	r1, [r4, #12]
	bl	free_device_memory
	mov	r5, r0
	b	.L1
.L16:
	ldr	r0, [r1]
	ldr	r1, .L17+12
	bl	dev_err
	ldr	r3, .L17+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L9:
	mov	r1, r4
	add	r2, sp, #4
	bl	get_paddr_from_handle
	ldr	r6, [sp, #4]
	mov	r5, r0
	b	.L10
.L15:
	bl	__stack_chk_fail
.L2:
	ldr	r0, [r1]
	ldr	r1, .L17+20
	bl	dev_err
	ldr	r3, .L17+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	HL_MEM_CONTIGUOUS
	.word	HL_MEM_USERPTR
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.word	ENOTTY
	.size	mem_ioctl_no_mmu, .-mem_ioctl_no_mmu
	.comm	HL_MEM_USERPTR,4,4
	.comm	HL_MEM_CONTIGUOUS,4,4
	.comm	ENOTTY,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
