	.file	"extr_elfdump.c_elf_print_phdr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"elf_getphnum failed: %s"
.LC1:
	.string	"elf_getphdr failed: %s"
.LC2:
	.string	"\nProgram Header[%zu]:\n"
.LC3:
	.string	"    p_vaddr:      %#-14jx"
.LC4:
	.string	"  p_flags:    [ %s ]\n"
.LC5:
	.string	"    p_paddr:      %#-14jx"
.LC6:
	.string	"  p_type:     [ %s ]\n"
.LC7:
	.string	"    p_filesz:     %#-14jx"
.LC8:
	.string	"  p_memsz:    %#jx\n"
.LC9:
	.string	"    p_offset:     %#-14jx"
.LC10:
	.string	"  p_align:    %#jx\n"
.LC11:
	.string	"\nprogram header:\n"
.LC12:
	.string	"\n"
.LC13:
	.string	"entry: %zu\n"
.LC14:
	.string	"\tp_type: %s\n"
.LC15:
	.string	"\tp_offset: %ju\n"
.LC16:
	.string	"\tp_vaddr: %#jx\n"
.LC17:
	.string	"\tp_paddr: %#jx\n"
.LC18:
	.string	"\tp_filesz: %ju\n"
.LC19:
	.string	"\tp_memsz: %ju\n"
.LC20:
	.string	"\tp_flags: %s\n"
.LC21:
	.string	"\tp_align: %ju\n"
	.text
	.p2align 4
	.type	elf_print_phdr, @function
elf_print_phdr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 96
	.cfi_def_cfa_offset 144
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	lea	rsi, 8[rsp]
	call	elf_getphnum@PLT
	test	rax, rax
	je	.L2
	xor	r13d, r13d
	lea	r12, 16[rsp]
	lea	r14, 4[rbp]
	xor	ebx, ebx
	cmp	QWORD PTR 8[rsp], 0
	jne	.L3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, -1
	call	elf_errmsg@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	warnx@PLT
.L7:
	add	rbx, 1
	cmp	QWORD PTR 8[rsp], rbx
	jbe	.L1
.L3:
	mov	edi, DWORD PTR 8[rbp]
	mov	rdx, r12
	mov	rsi, rbx
	call	gelf_getphdr@PLT
	cmp	r12, rax
	jne	.L24
	mov	rdi, r14
	call	STAILQ_EMPTY@PLT
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SOLARIS_FMT[rip], eax
	jne	.L25
.L20:
	test	r13d, r13d
	je	.L26
.L12:
	lea	rdi, .LC12[rip]
	xor	eax, eax
	mov	r13d, 1
	call	PRT@PLT
	mov	rsi, rbx
	lea	rdi, .LC13[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	edi, DWORD PTR 72[rsp]
	add	rbx, 1
	call	elf_phdr_type_str@PLT
	lea	rdi, .LC14[rip]
	mov	rsi, rax
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 64[rsp]
	lea	rdi, .LC15[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 56[rsp]
	lea	rdi, .LC16[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 48[rsp]
	lea	rdi, .LC17[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 40[rsp]
	lea	rdi, .LC18[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 32[rsp]
	lea	rdi, .LC19[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	eax, DWORD PTR 16[rsp]
	mov	rdx, QWORD PTR p_flags[rip]
	lea	rdi, .LC20[rip]
	and	eax, 7
	mov	rsi, QWORD PTR [rdx+rax*8]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 24[rsp]
	lea	rdi, .LC21[rip]
	xor	eax, eax
	call	PRT@PLT
	cmp	QWORD PTR 8[rsp], rbx
	ja	.L3
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 72[rsp]
	call	elf_phdr_type_str@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	find_name@PLT
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SOLARIS_FMT[rip], eax
	je	.L20
.L25:
	mov	rsi, rbx
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 56[rsp]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	eax, DWORD PTR 16[rsp]
	mov	rdx, QWORD PTR p_flags[rip]
	lea	rdi, .LC4[rip]
	and	eax, 7
	mov	rsi, QWORD PTR [rdx+rax*8]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 48[rsp]
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	edi, DWORD PTR 72[rsp]
	call	elf_phdr_type_str@PLT
	lea	rdi, .LC6[rip]
	mov	rsi, rax
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 40[rsp]
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 32[rsp]
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 64[rsp]
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	PRT@PLT
	mov	rsi, QWORD PTR 24[rsp]
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	PRT@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	PRT@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, -1
	call	elf_errmsg@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	warnx@PLT
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	elf_print_phdr, .-elf_print_phdr
	.comm	p_flags,8,8
	.comm	SOLARIS_FMT,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_elfdump.c_elf_print_phdr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"elf_getphnum failed: %s\000"
	.align	2
.LC1:
	.ascii	"elf_getphdr failed: %s\000"
	.align	2
.LC2:
	.ascii	"\012Program Header[%zu]:\012\000"
	.align	2
.LC3:
	.ascii	"    p_vaddr:      %#-14jx\000"
	.align	2
.LC4:
	.ascii	"  p_flags:    [ %s ]\012\000"
	.align	2
.LC5:
	.ascii	"    p_paddr:      %#-14jx\000"
	.align	2
.LC6:
	.ascii	"  p_type:     [ %s ]\012\000"
	.align	2
.LC7:
	.ascii	"    p_filesz:     %#-14jx\000"
	.align	2
.LC8:
	.ascii	"  p_memsz:    %#jx\012\000"
	.align	2
.LC9:
	.ascii	"    p_offset:     %#-14jx\000"
	.align	2
.LC10:
	.ascii	"  p_align:    %#jx\012\000"
	.align	2
.LC11:
	.ascii	"\012program header:\012\000"
	.align	2
.LC12:
	.ascii	"\012\000"
	.align	2
.LC13:
	.ascii	"entry: %zu\012\000"
	.align	2
.LC14:
	.ascii	"\011p_type: %s\012\000"
	.align	2
.LC15:
	.ascii	"\011p_offset: %ju\012\000"
	.align	2
.LC16:
	.ascii	"\011p_vaddr: %#jx\012\000"
	.align	2
.LC17:
	.ascii	"\011p_paddr: %#jx\012\000"
	.align	2
.LC18:
	.ascii	"\011p_filesz: %ju\012\000"
	.align	2
.LC19:
	.ascii	"\011p_memsz: %ju\012\000"
	.align	2
.LC20:
	.ascii	"\011p_flags: %s\012\000"
	.align	2
.LC21:
	.ascii	"\011p_align: %ju\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	elf_print_phdr, %function
elf_print_phdr:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L27
	sub	sp, sp, #44
	mov	r5, r0
	mov	r1, sp
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	elf_getphnum
	cmp	r0, #0
	beq	.L2
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L1
	mov	r7, #0
	ldr	r8, .L27+4
	mov	r4, r7
	ldr	fp, .L27+8
	ldr	r10, .L27+12
	ldr	r9, .L27+16
	add	r6, sp, #4
	b	.L3
.L23:
	mvn	r0, #0
	bl	elf_errmsg
	mov	r1, r0
	ldr	r0, .L27+20
	bl	warnx
.L7:
	ldr	r3, [sp]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L1
.L3:
	mov	r2, r6
	mov	r1, r4
	ldr	r0, [r5, #8]
	bl	gelf_getphdr
	cmp	r6, r0
	bne	.L23
	add	r0, r5, #4
	bl	STAILQ_EMPTY
	cmp	r0, #0
	beq	.L8
	ldr	r2, [r5]
	ldr	r3, [r8]
	tst	r2, r3
	bne	.L24
.L19:
	cmp	r7, #0
	beq	.L25
.L12:
	mov	r0, fp
	bl	PRT
	mov	r1, r4
	mov	r0, r10
	bl	PRT
	ldr	r0, [sp, #32]
	bl	elf_phdr_type_str
	mov	r1, r0
	mov	r0, r9
	bl	PRT
	ldr	r1, [sp, #28]
	ldr	r0, .L27+24
	bl	PRT
	ldr	r1, [sp, #24]
	ldr	r0, .L27+28
	bl	PRT
	ldr	r1, [sp, #20]
	ldr	r0, .L27+32
	bl	PRT
	ldr	r1, [sp, #16]
	ldr	r0, .L27+36
	bl	PRT
	ldr	r1, [sp, #12]
	ldr	r0, .L27+40
	bl	PRT
	ldr	r2, .L27+44
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	and	r3, r3, #7
	ldr	r1, [r2, r3, lsl #2]
	ldr	r0, .L27+48
	bl	PRT
	ldr	r1, [sp, #8]
	ldr	r0, .L27+52
	bl	PRT
	ldr	r3, [sp]
	add	r4, r4, #1
	cmp	r3, r4
	mov	r7, #1
	bhi	.L3
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r0, [sp, #32]
	bl	elf_phdr_type_str
	mov	r1, r0
	mov	r0, r5
	bl	find_name
	cmp	r0, #0
	beq	.L7
	ldr	r2, [r5]
	ldr	r3, [r8]
	tst	r2, r3
	beq	.L19
.L24:
	mov	r1, r4
	ldr	r0, .L27+56
	bl	PRT
	ldr	r1, [sp, #24]
	ldr	r0, .L27+60
	bl	PRT
	ldr	r2, .L27+44
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	and	r3, r3, #7
	ldr	r1, [r2, r3, lsl #2]
	ldr	r0, .L27+64
	bl	PRT
	ldr	r1, [sp, #20]
	ldr	r0, .L27+68
	bl	PRT
	ldr	r0, [sp, #32]
	bl	elf_phdr_type_str
	mov	r1, r0
	ldr	r0, .L27+72
	bl	PRT
	ldr	r1, [sp, #16]
	ldr	r0, .L27+76
	bl	PRT
	ldr	r1, [sp, #12]
	ldr	r0, .L27+80
	bl	PRT
	ldr	r1, [sp, #28]
	ldr	r0, .L27+84
	bl	PRT
	ldr	r1, [sp, #8]
	ldr	r0, .L27+88
	bl	PRT
	b	.L7
.L25:
	ldr	r0, .L27+92
	bl	PRT
	b	.L12
.L2:
	mvn	r0, #0
	bl	elf_errmsg
	mov	r1, r0
	ldr	r0, .L27+96
	bl	warnx
	b	.L1
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC22
	.word	SOLARIS_FMT
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC1
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	p_flags
	.word	.LC20
	.word	.LC21
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC0
	.size	elf_print_phdr, .-elf_print_phdr
	.comm	p_flags,4,4
	.comm	SOLARIS_FMT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
