	.file	"extr_elfcore.c_cb_put_phdr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cb_put_phdr, @function
cb_put_phdr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR 8[rsi]
	mov	rbx, QWORD PTR [rsi]
	call	round_page@PLT
	mov	edx, DWORD PTR PT_LOAD[rip]
	mov	rsi, QWORD PTR 16[r12]
	mov	ecx, DWORD PTR PAGE_SIZE[rip]
	mov	DWORD PTR 40[rbx], eax
	mov	DWORD PTR 44[rbx], edx
	mov	rdx, QWORD PTR 8[r12]
	mov	DWORD PTR 12[rbx], ecx
	mov	ecx, DWORD PTR [r12]
	sub	rsi, rdx
	mov	QWORD PTR 32[rbx], rdx
	mov	QWORD PTR 24[rbx], 0
	mov	rdx, rsi
	mov	QWORD PTR 16[rbx], rsi
	mov	QWORD PTR [rbx], rsi
	mov	DWORD PTR 8[rbx], 0
	test	DWORD PTR VM_PROT_READ[rip], ecx
	je	.L2
	mov	esi, DWORD PTR PF_R[rip]
	mov	DWORD PTR 8[rbx], esi
.L2:
	test	DWORD PTR VM_PROT_WRITE[rip], ecx
	je	.L3
	mov	esi, DWORD PTR PF_W[rip]
	or	DWORD PTR 8[rbx], esi
.L3:
	test	DWORD PTR VM_PROT_EXECUTE[rip], ecx
	je	.L4
	mov	ecx, DWORD PTR PF_X[rip]
	or	DWORD PTR 8[rbx], ecx
.L4:
	add	eax, edx
	pop	rbx
	.cfi_def_cfa_offset 24
	add	QWORD PTR 0[rbp], 48
	mov	DWORD PTR 8[rbp], eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cb_put_phdr, .-cb_put_phdr
	.comm	VM_PROT_WRITE,4,4
	.comm	VM_PROT_READ,4,4
	.comm	VM_PROT_EXECUTE,4,4
	.comm	PT_LOAD,4,4
	.comm	PF_X,4,4
	.comm	PF_W,4,4
	.comm	PF_R,4,4
	.comm	PAGE_SIZE,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_elfcore.c_cb_put_phdr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cb_put_phdr, %function
cb_put_phdr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r1, #4]
	ldr	r4, [r1]
	mov	r5, r1
	bl	round_page
	mov	r1, #0
	ldr	r2, .L16
	ldr	r3, .L16+4
	ldr	r7, [r2]
	ldr	r2, .L16+8
	ldr	r3, [r3]
	ldr	lr, [r2]
	ldr	r2, [r6]
	ldr	ip, [r6, #4]
	tst	r2, r7
	str	r3, [r4, #28]
	ldr	r3, [r6, #8]
	str	r1, [r4, #4]
	str	r1, [r4, #16]
	ldrne	r1, .L16+12
	sub	r3, r3, ip
	ldrne	r1, [r1]
	str	ip, [r4, #20]
	strne	r1, [r4, #4]
	ldr	r1, .L16+16
	str	r0, [r4, #24]
	ldr	r1, [r1]
	str	r3, [r4, #12]
	tst	r2, r1
	ldrne	ip, .L16+20
	ldrne	r1, [r4, #4]
	ldrne	ip, [ip]
	str	r3, [r4]
	orrne	r1, r1, ip
	strne	r1, [r4, #4]
	ldr	r1, .L16+24
	add	r0, r0, r3
	ldr	r1, [r1]
	str	lr, [r4, #8]
	tst	r2, r1
	ldrne	r1, .L16+28
	ldrne	r2, [r4, #4]
	ldrne	r1, [r1]
	orrne	r2, r2, r1
	strne	r2, [r4, #4]
	ldr	r2, [r5]
	str	r0, [r5, #4]
	add	r3, r2, #32
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	VM_PROT_READ
	.word	PT_LOAD
	.word	PAGE_SIZE
	.word	PF_R
	.word	VM_PROT_WRITE
	.word	PF_W
	.word	VM_PROT_EXECUTE
	.word	PF_X
	.size	cb_put_phdr, .-cb_put_phdr
	.comm	VM_PROT_WRITE,4,4
	.comm	VM_PROT_READ,4,4
	.comm	VM_PROT_EXECUTE,4,4
	.comm	PT_LOAD,4,4
	.comm	PF_X,4,4
	.comm	PF_W,4,4
	.comm	PF_R,4,4
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
