	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_iidescs
_sort_iidescs:                          ## @sort_iidescs
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %r15
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, -128(%rbp)
	movq	$0, -120(%rbp)
	testl	%r8d, %r8d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_findelfsecidx
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_terminate
LBB0_2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_elf_getscn
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_elf_getdata
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-144(%rbp), %rsi
	movq	%r14, %rdi
	callq	_gelf_getshdr
	movl	-144(%rbp), %eax
	movl	-136(%rbp), %esi
	cltd
	idivl	-140(%rbp)
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_elf_getscn
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_elf_getdata
	movq	%rax, %r12
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_iiburst_new
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rcx
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	leaq	4(%rax), %rcx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	addq	$24, %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	%r13, %r14
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r15), %rcx
	movq	%rax, (%r13,%rcx,8)
	movq	_IIDESC_F_USED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	(%r15)
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	movq	%r14, %r13
	je	LBB0_20
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	leaq	-48(%rbp), %rdx
	callq	_gelf_getsym
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	callq	_elfterminate
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	-48(%rbp), %rax
	addq	(%r12), %rax
	movq	%rax, -112(%rbp)
	movl	-44(%rbp), %edi
	callq	_GELF_ST_BIND
	movq	%rax, -104(%rbp)
	movl	-44(%rbp), %edi
	callq	_GELF_ST_TYPE
	cmpl	$128, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$130, %eax
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-112(%rbp), %r15
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmoveq	%r15, %rcx
	movq	%rcx, -120(%rbp)
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	-168(%rbp), %r15                ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %r13
	movq	-112(%rbp), %rsi
	leaq	-48(%rbp), %rdi
	callq	_ignore_symbol
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	-128(%rbp), %rsi
	callq	_find_iidesc
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-120(%rbp), %rsi
	leaq	-200(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rdi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	leaq	-96(%rbp), %r9
	callq	_check_for_weak
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -208(%rbp)
	movslq	-96(%rbp), %rax
	addq	(%r12), %rax
	movq	%rax, -192(%rbp)
	movl	-92(%rbp), %edi
	callq	_GELF_ST_BIND
	movq	%rax, -184(%rbp)
	movq	-112(%rbp), %rdx
	movq	-192(%rbp), %rcx
	movl	$3, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_debug
	movq	%r14, %rdi
	leaq	-208(%rbp), %rsi
	callq	_find_iidesc
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-120(%rbp), %r8
	movq	-112(%rbp), %rcx
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdx
	callq	_copy_from_strong
	jmp	LBB0_17
LBB0_20:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_iiburst_types
	movl	8(%rbx), %esi
	movq	%r13, %rdi
	callq	_tdata_label_newmax
	movq	%rbx, %rax
	addq	$184, %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	".dynsym"

L_.str.1:                               ## @.str.1
	.asciz	".symtab"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Can't open symbol table\n"

L_.str.3:                               ## @.str.3
	.asciz	"Couldn't read symbol %d"

	.comm	_IIDESC_F_USED,4,2              ## @IIDESC_F_USED
L_.str.4:                               ## @.str.4
	.asciz	"Weak symbol %s resolved to %s\n"

	.no_dead_strip	_sort_iidescs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_iidescs
_sort_iidescs:                          ; @sort_iidescs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, x2
	mov	x21, x1
	mov	x24, x0
	str	w3, [sp, #4]                    ; 4-byte Folded Spill
	str	w3, [sp, #80]
	str	xzr, [sp, #88]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w4, #0
	csel	x2, x9, x8, eq
	bl	_findelfsecidx
	mov	x22, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_terminate
LBB0_2:
	mov	x0, x24
	mov	x1, x22
	bl	_elf_getscn
	mov	x23, x0
	mov	x1, #0
	bl	_elf_getdata
	mov	x22, x0
	sub	x1, x29, #96
	mov	x0, x23
	bl	_gelf_getshdr
	ldp	w8, w9, [x29, #-96]
	ldur	w1, [x29, #-88]
	sdiv	w23, w8, w9
	mov	x0, x24
	bl	_elf_getscn
	mov	x1, #0
	bl	_elf_getdata
	mov	x25, x0
	mov	x0, x19
	mov	x1, x23
	bl	_iiburst_new
	mov	x24, x0
	cmp	w23, #1
	b.lt	LBB0_20
; %bb.3:
	mov	w26, #0
	add	x9, x24, #16
	add	x8, x24, #4
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
	add	x20, x24, #24
	add	x8, sp, #32
	add	x8, x8, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [x27]
	str	x0, [x28, x8, lsl #3]
Lloh6:
	adrp	x8, _IIDESC_F_USED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIDESC_F_USED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w26, w26, #1
	cmp	w23, w26
	b.eq	LBB0_20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #72
	mov	x0, x22
	mov	x1, x26
	bl	_gelf_getsym
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x26
	bl	_elfterminate
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x25]
	ldp	w9, w0, [sp, #72]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x8, x9
	str	x8, [sp, #96]
	bl	_GELF_ST_BIND
	str	x0, [sp, #104]
	ldr	w0, [sp, #76]
	bl	_GELF_ST_TYPE
	cmp	w0, #128
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #129
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #130
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x27, [sp, #96]
	mov	x0, x27
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x8, x27, x0, eq
	str	x8, [sp, #88]
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x20
	mov	x27, x24
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	x27, x8, [sp, #16]              ; 16-byte Folded Reload
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x28, [x8]
	ldr	x1, [sp, #96]
	add	x0, sp, #72
	bl	_ignore_symbol
	cbnz	x0, LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #80
	mov	x0, x19
	bl	_find_iidesc
	cbnz	x0, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [sp, #88]
	add	x0, sp, #72
	add	x5, sp, #64
	mov	x2, x22
	mov	x3, x23
	mov	x4, x25
	ldr	x6, [sp, #8]                    ; 8-byte Folded Reload
	bl	_check_for_weak
	cbz	w0, LBB0_5
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	str	w8, [sp, #32]
	ldr	x8, [x25]
	ldp	w9, w0, [sp, #64]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x8, x9
	str	x8, [sp, #48]
	bl	_GELF_ST_BIND
	str	x0, [sp, #56]
	ldr	x2, [sp, #96]
	ldr	x3, [sp, #48]
	mov	w0, #3
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_debug
	add	x1, sp, #32
	mov	x0, x19
	bl	_find_iidesc
	cbz	x0, LBB0_5
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, x0
	ldp	x4, x3, [sp, #88]
	add	x1, sp, #72
	mov	x0, x19
	bl	_copy_from_strong
	b	LBB0_4
LBB0_20:
	mov	x0, x24
	bl	_iiburst_types
	ldr	w1, [x24, #8]
	mov	x0, x19
	bl	_tdata_label_newmax
	mov	x0, x24
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".dynsym"

l_.str.1:                               ; @.str.1
	.asciz	".symtab"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Can't open symbol table\n"

l_.str.3:                               ; @.str.3
	.asciz	"Couldn't read symbol %d"

	.comm	_IIDESC_F_USED,4,2              ; @IIDESC_F_USED
l_.str.4:                               ; @.str.4
	.asciz	"Weak symbol %s resolved to %s\n"

	.no_dead_strip	_sort_iidescs
.subsections_via_symbols
