	.file	"extr_ehea_phyp.c_ehea_h_alloc_resource_mr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ehea_h_alloc_resource_mr
	.type	ehea_h_alloc_resource_mr, @function
ehea_h_alloc_resource_mr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r10, rdi
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	rbx, r9
	sub	rsp, 24
	mov	r12, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PLPAR_HCALL9_BUFSIZE[rip]
	mov	r11, rsp
	lea	rax, 15[0+rax*8]
	mov	rdi, rax
	and	rax, -4096
	sub	r11, rax
	and	rdi, -16
	mov	rax, r11
	cmp	rsp, rax
	je	.L3
.L11:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L11
.L3:
	and	edi, 4095
	sub	rsp, rdi
	test	rdi, rdi
	jne	.L12
.L4:
	lea	rax, 7[rsp]
	sal	rcx, 32
	sub	rsp, 8
	mov	r9, rdx
	push	0
	mov	r13, rax
	mov	edi, DWORD PTR H_ALLOC_HEA_RESOURCE[rip]
	and	rax, -8
	push	0
	shr	r13, 3
	mov	rdx, r10
	push	0
	push	r8
	mov	r8, rsi
	mov	rsi, rax
	push	rcx
	mov	ecx, 5
	call	ehea_plpar_hcall9@PLT
	mov	rdx, QWORD PTR 0[0+r13*8]
	mov	QWORD PTR [rbx], rdx
	mov	rdx, QWORD PTR 16[0+r13*8]
	mov	QWORD PTR [r12], rdx
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L13
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdi], 0
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ehea_h_alloc_resource_mr, .-ehea_h_alloc_resource_mr
	.comm	PLPAR_HCALL9_BUFSIZE,4,4
	.comm	H_ALLOC_HEA_RESOURCE,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_ehea_phyp.c_ehea_h_alloc_resource_mr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ehea_h_alloc_resource_mr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ehea_h_alloc_resource_mr, %function
ehea_h_alloc_resource_mr:
	@ args = 24, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #60
	ldmib	fp, {r4-r5}
	mov	r6, r2
	mov	r7, r3
	mov	r8, #0
	mov	ip, #5
	ldr	lr, .L6
	mov	r3, r1
	ldr	r1, [lr]
	mov	r2, r0
	lsl	r1, r1, #2
	add	r1, r1, #7
	ldr	r0, .L6+4
	bic	r1, r1, #7
	sub	sp, sp, r1
	ldr	r0, [r0]
	str	r0, [fp, #-32]
	mov	r0,#0
	ldr	r1, [fp, #12]
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	str	r4, [sp, #16]
	str	r5, [sp, #20]
	ldr	lr, [fp, #16]
	ldr	r0, .L6+8
	add	r6, sp, #48
	str	r1, [sp, #28]
	str	lr, [sp, #32]
	str	ip, [sp]
	str	r8, [sp, #44]
	str	r8, [sp, #40]
	str	r8, [sp, #36]
	str	r8, [sp, #24]
	mov	r1, r6
	ldr	r0, [r0]
	ldr	r4, [fp, #20]
	ldr	r5, [fp, #24]
	bl	ehea_plpar_hcall9
	ldr	r2, [r6]
	ldr	r3, [r6, #8]
	stm	r4, {r2, r8}
	str	r3, [r5]
	ldr	r3, .L6+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	PLPAR_HCALL9_BUFSIZE
	.word	.LC0
	.word	H_ALLOC_HEA_RESOURCE
	.size	ehea_h_alloc_resource_mr, .-ehea_h_alloc_resource_mr
	.comm	PLPAR_HCALL9_BUFSIZE,4,4
	.comm	H_ALLOC_HEA_RESOURCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
