	.file	"extr_book3s_hv.c_kvmppc_add_seg_page_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvmppc_add_seg_page_size, @function
kvmppc_add_seg_page_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	mov	edi, esi
	mov	DWORD PTR [rax], esi
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR [rax], esi
	call	kvmppc_pgsize_lp_encoding@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rcx, QWORD PTR 8[rdx]
	mov	DWORD PTR 4[rcx], eax
	cmp	ebp, 24
	jne	.L9
.L2:
	add	rdx, 16
	mov	QWORD PTR [rbx], rdx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, 24
	mov	edi, ebp
	call	kvmppc_pgsize_lp_encoding@PLT
	mov	rdx, QWORD PTR [rbx]
	cmp	eax, -1
	je	.L2
	mov	rcx, QWORD PTR 8[rdx]
	add	rdx, 16
	mov	DWORD PTR 8[rcx], 24
	mov	DWORD PTR 12[rcx], eax
	mov	QWORD PTR [rbx], rdx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kvmppc_add_seg_page_size, .-kvmppc_add_seg_page_size
	.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_book3s_hv.c_kvmppc_add_seg_page_size.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmppc_add_seg_page_size, %function
kvmppc_add_seg_page_size:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	mov	r5, r0
	str	r2, [r3, #4]
	ldr	r2, [r3, #8]
	str	r1, [r3]
	mov	r4, r1
	str	r1, [r2]
	mov	r0, r1
	bl	kvmppc_pgsize_lp_encoding
	ldr	r3, [r5]
	cmp	r4, #24
	ldr	r2, [r3, #8]
	str	r0, [r2, #4]
	beq	.L2
	mov	r1, #24
	mov	r0, r4
	bl	kvmppc_pgsize_lp_encoding
	cmn	r0, #1
	movne	r1, #24
	ldrne	r3, [r5]
	ldreq	r3, [r5]
	ldrne	r2, [r3, #8]
	strne	r0, [r2, #12]
	strne	r1, [r2, #8]
.L2:
	add	r3, r3, #12
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
	.size	kvmppc_add_seg_page_size, .-kvmppc_add_seg_page_size
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
