	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_print_phdr
_elf_print_phdr:                        ## @elf_print_phdr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	leaq	-48(%rbp), %rsi
	callq	_elf_getphnum
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	cmpq	$0, -48(%rbp)
	je	LBB0_13
## %bb.2:
	leaq	4(%rbx), %r14
	leaq	-112(%rbp), %r15
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	-48(%rbp), %r13
	jae	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_gelf_getphdr
	cmpq	%r15, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_STAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %edi
	callq	_elf_phdr_type_str
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_find_name
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_SOLARIS_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_PRT
	movq	-72(%rbp), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	_p_flags@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-112(%rbp), %ecx
	andl	$7, %ecx
	movq	(%rax,%rcx,8), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	-80(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movl	-56(%rbp), %edi
	callq	_elf_phdr_type_str
	leaq	L_.str.6(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_PRT
	movq	-88(%rbp), %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	-96(%rbp), %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	-64(%rbp), %rsi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	-104(%rbp), %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	leaq	L_.str.13(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_PRT
	movl	-56(%rbp), %edi
	callq	_elf_phdr_type_str
	leaq	L_.str.14(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_PRT
	movq	-64(%rbp), %rsi
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	-72(%rbp), %rsi
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	-80(%rbp), %rsi
	leaq	L_.str.17(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	-88(%rbp), %rsi
	leaq	L_.str.18(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	-96(%rbp), %rsi
	leaq	L_.str.19(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	_p_flags@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-112(%rbp), %ecx
	andl	$7, %ecx
	movq	(%rax,%rcx,8), %rsi
	leaq	L_.str.20(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movq	-104(%rbp), %rsi
	leaq	L_.str.21(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	movl	$1, %r12d
	jmp	LBB0_12
LBB0_14:
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf_getphnum failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"elf_getphdr failed: %s"

	.comm	_SOLARIS_FMT,4,2                ## @SOLARIS_FMT
L_.str.2:                               ## @.str.2
	.asciz	"\nProgram Header[%zu]:\n"

L_.str.3:                               ## @.str.3
	.asciz	"    p_vaddr:      %#-14jx"

L_.str.4:                               ## @.str.4
	.asciz	"  p_flags:    [ %s ]\n"

	.comm	_p_flags,8,3                    ## @p_flags
L_.str.5:                               ## @.str.5
	.asciz	"    p_paddr:      %#-14jx"

L_.str.6:                               ## @.str.6
	.asciz	"  p_type:     [ %s ]\n"

L_.str.7:                               ## @.str.7
	.asciz	"    p_filesz:     %#-14jx"

L_.str.8:                               ## @.str.8
	.asciz	"  p_memsz:    %#jx\n"

L_.str.9:                               ## @.str.9
	.asciz	"    p_offset:     %#-14jx"

L_.str.10:                              ## @.str.10
	.asciz	"  p_align:    %#jx\n"

L_.str.11:                              ## @.str.11
	.asciz	"\nprogram header:\n"

L_.str.12:                              ## @.str.12
	.asciz	"\n"

L_.str.13:                              ## @.str.13
	.asciz	"entry: %zu\n"

L_.str.14:                              ## @.str.14
	.asciz	"\tp_type: %s\n"

L_.str.15:                              ## @.str.15
	.asciz	"\tp_offset: %ju\n"

L_.str.16:                              ## @.str.16
	.asciz	"\tp_vaddr: %#jx\n"

L_.str.17:                              ## @.str.17
	.asciz	"\tp_paddr: %#jx\n"

L_.str.18:                              ## @.str.18
	.asciz	"\tp_filesz: %ju\n"

L_.str.19:                              ## @.str.19
	.asciz	"\tp_memsz: %ju\n"

L_.str.20:                              ## @.str.20
	.asciz	"\tp_flags: %s\n"

L_.str.21:                              ## @.str.21
	.asciz	"\tp_align: %ju\n"

	.no_dead_strip	_elf_print_phdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_print_phdr
_elf_print_phdr:                        ; @elf_print_phdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w0, [x0, #8]
	add	x1, sp, #8
	bl	_elf_getphnum
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
; %bb.2:
	mov	w25, #0
	mov	x20, #0
	add	x21, x19, #4
	add	x22, sp, #16
Lloh0:
	adrp	x23, _SOLARIS_FMT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SOLARIS_FMT@GOTPAGEOFF]
Lloh2:
	adrp	x24, _p_flags@GOTPAGE
Lloh3:
	ldr	x24, [x24, _p_flags@GOTPAGEOFF]
Lloh4:
	adrp	x26, l_.str.9@PAGE
Lloh5:
	add	x26, x26, l_.str.9@PAGEOFF
Lloh6:
	adrp	x27, l_.str.10@PAGE
Lloh7:
	add	x27, x27, l_.str.10@PAGEOFF
Lloh8:
	adrp	x28, l_.str.1@PAGE
Lloh9:
	add	x28, x28, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x1, x0
	mov	x0, x28
	bl	_warnx
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	x8, [sp, #8]
	cmp	x20, x8
	b.hs	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	add	x2, sp, #16
	mov	x1, x20
	bl	_gelf_getphdr
	cmp	x0, x22
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_STAILQ_EMPTY
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #72]
	bl	_elf_phdr_type_str
	mov	x1, x0
	mov	x0, x19
	bl	_find_name
	cbz	x0, LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x20, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #56]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_PRT
	ldr	x8, [x24]
	ldr	w9, [sp, #16]
	and	x9, x9, #0x7
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #48]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_PRT
	ldr	w0, [sp, #72]
	bl	_elf_phdr_type_str
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #40]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.8@PAGE
Lloh23:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #64]
	str	x8, [sp]
	mov	x0, x26
	bl	_PRT
	ldr	x8, [sp, #24]
	str	x8, [sp]
	mov	x0, x27
	bl	_PRT
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w25, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh24:
	adrp	x0, l_.str.11@PAGE
Lloh25:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_PRT
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh26:
	adrp	x0, l_.str.12@PAGE
Lloh27:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_PRT
	str	x20, [sp]
Lloh28:
	adrp	x0, l_.str.13@PAGE
Lloh29:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_PRT
	ldr	w0, [sp, #72]
	bl	_elf_phdr_type_str
	str	x0, [sp]
Lloh30:
	adrp	x0, l_.str.14@PAGE
Lloh31:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #64]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.15@PAGE
Lloh33:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #56]
	str	x8, [sp]
Lloh34:
	adrp	x0, l_.str.16@PAGE
Lloh35:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #48]
	str	x8, [sp]
Lloh36:
	adrp	x0, l_.str.17@PAGE
Lloh37:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #40]
	str	x8, [sp]
Lloh38:
	adrp	x0, l_.str.18@PAGE
Lloh39:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh40:
	adrp	x0, l_.str.19@PAGE
Lloh41:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_PRT
	ldr	x8, [x24]
	ldr	w9, [sp, #16]
	and	x9, x9, #0x7
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp]
Lloh42:
	adrp	x0, l_.str.20@PAGE
Lloh43:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_PRT
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh44:
	adrp	x0, l_.str.21@PAGE
Lloh45:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_PRT
	mov	w25, #1
	b	LBB0_4
LBB0_13:
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x1, x0
Lloh46:
	adrp	x0, l_.str@PAGE
Lloh47:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_14:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_getphnum failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"elf_getphdr failed: %s"

	.comm	_SOLARIS_FMT,4,2                ; @SOLARIS_FMT
l_.str.2:                               ; @.str.2
	.asciz	"\nProgram Header[%zu]:\n"

l_.str.3:                               ; @.str.3
	.asciz	"    p_vaddr:      %#-14jx"

l_.str.4:                               ; @.str.4
	.asciz	"  p_flags:    [ %s ]\n"

	.comm	_p_flags,8,3                    ; @p_flags
l_.str.5:                               ; @.str.5
	.asciz	"    p_paddr:      %#-14jx"

l_.str.6:                               ; @.str.6
	.asciz	"  p_type:     [ %s ]\n"

l_.str.7:                               ; @.str.7
	.asciz	"    p_filesz:     %#-14jx"

l_.str.8:                               ; @.str.8
	.asciz	"  p_memsz:    %#jx\n"

l_.str.9:                               ; @.str.9
	.asciz	"    p_offset:     %#-14jx"

l_.str.10:                              ; @.str.10
	.asciz	"  p_align:    %#jx\n"

l_.str.11:                              ; @.str.11
	.asciz	"\nprogram header:\n"

l_.str.12:                              ; @.str.12
	.asciz	"\n"

l_.str.13:                              ; @.str.13
	.asciz	"entry: %zu\n"

l_.str.14:                              ; @.str.14
	.asciz	"\tp_type: %s\n"

l_.str.15:                              ; @.str.15
	.asciz	"\tp_offset: %ju\n"

l_.str.16:                              ; @.str.16
	.asciz	"\tp_vaddr: %#jx\n"

l_.str.17:                              ; @.str.17
	.asciz	"\tp_paddr: %#jx\n"

l_.str.18:                              ; @.str.18
	.asciz	"\tp_filesz: %ju\n"

l_.str.19:                              ; @.str.19
	.asciz	"\tp_memsz: %ju\n"

l_.str.20:                              ; @.str.20
	.asciz	"\tp_flags: %s\n"

l_.str.21:                              ; @.str.21
	.asciz	"\tp_align: %ju\n"

	.no_dead_strip	_elf_print_phdr
.subsections_via_symbols
