	.file	"extr_setup.c_pseries_enable_reloc_on_exc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Relocation on exceptions not supported\n"
	.align 8
.LC1:
	.string	"Unable to enable relocation on exceptions: %ld\n"
	.align 8
.LC2:
	.string	"Warning: Giving up waiting to enable relocation on exceptions (%u msec)!\n"
	.text
	.p2align 4
	.globl	pseries_enable_reloc_on_exc
	.type	pseries_enable_reloc_on_exc, @function
pseries_enable_reloc_on_exc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	get_longbusy_msecs@PLT
	add	r12d, eax
	mov	edi, eax
	cmp	r12d, 1000
	ja	.L9
	call	mdelay@PLT
.L6:
	xor	eax, eax
	call	enable_reloc_on_exceptions@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	H_IS_LONG_BUSY@PLT
	test	eax, eax
	jne	.L2
	cmp	QWORD PTR H_P2[rip], rbp
	je	.L10
	cmp	QWORD PTR H_SUCCESS[rip], rbp
	je	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pr_warn@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pr_warn@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pr_info@PLT
	.cfi_endproc
.LFE0:
	.size	pseries_enable_reloc_on_exc, .-pseries_enable_reloc_on_exc
	.comm	H_SUCCESS,8,8
	.comm	H_P2,8,8
	.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_setup.c_pseries_enable_reloc_on_exc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Relocation on exceptions not supported\012\000"
	.align	2
.LC1:
	.ascii	"Unable to enable relocation on exceptions: %ld\012\000"
	.align	2
.LC2:
	.ascii	"Warning: Giving up waiting to enable relocation on "
	.ascii	"exceptions (%u msec)!\012\000"
	.text
	.align	2
	.global	pseries_enable_reloc_on_exc
	.syntax unified
	.arm
	.fpu softvfp
	.type	pseries_enable_reloc_on_exc, %function
pseries_enable_reloc_on_exc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, #0
	b	.L6
.L2:
	mov	r0, r4
	bl	get_longbusy_msecs
	add	r5, r5, r0
	cmp	r5, #1000
	bhi	.L9
	bl	mdelay
.L6:
	bl	enable_reloc_on_exceptions
	mov	r4, r0
	bl	H_IS_LONG_BUSY
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L10
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, r4
	popeq	{r4, r5, r6, pc}
	mov	r1, r4
	pop	{r4, r5, r6, lr}
	ldr	r0, .L11+8
	b	pr_warn
.L9:
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	ldr	r0, .L11+12
	b	pr_warn
.L10:
	ldr	r0, .L11+16
	pop	{r4, r5, r6, lr}
	b	pr_info
.L12:
	.align	2
.L11:
	.word	H_P2
	.word	H_SUCCESS
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	pseries_enable_reloc_on_exc, .-pseries_enable_reloc_on_exc
	.comm	H_SUCCESS,4,4
	.comm	H_P2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
