	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_symtabs
_read_symtabs:                          ## @read_symtabs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_ehdr@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.1:
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_ehdr@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	_secs@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %r13
	movq	8(%r14,%r13,8), %rax
	movq	_SHT_SYMTAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13,8), %r12
	addq	$16, %r12
	movl	16(%r14,%r13,8), %edi
	callq	_malloc
	movq	%rax, (%r14,%r13,8)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r14,%r13,8), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_fseek
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13,8), %rax
	addq	$20, %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_die
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13,8), %r14
	movq	(%r14), %rdi
	movl	(%r12), %edx
	movl	$1, %esi
	movq	%rbx, %rcx
	callq	_fread
	cmpl	(%r12), %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_die
	movl	(%r12), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$32, %eax
	jb	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$24, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %r15
	movq	(%r15,%rbx), %rdi
	callq	_elf32_to_cpu
	movq	%rax, (%r15,%rbx)
	movq	-8(%r15,%rbx), %rdi
	callq	_elf32_to_cpu
	movq	%rax, -8(%r15,%rbx)
	movq	-16(%r15,%rbx), %rdi
	callq	_elf32_to_cpu
	movq	%rax, -16(%r15,%rbx)
	movl	-24(%r15,%rbx), %edi
	callq	_elf16_to_cpu
	movl	%eax, -24(%r15,%rbx)
	incq	%r13
	movslq	(%r12), %rax
	shrq	$5, %rax
	addq	$32, %rbx
	cmpq	%r13, %rax
	ja	LBB0_11
	jmp	LBB0_12
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ehdr,4,2                       ## @ehdr
	.comm	_secs,8,3                       ## @secs
	.comm	_SHT_SYMTAB,8,3                 ## @SHT_SYMTAB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc of %d bytes for symtab failed\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.1:                               ## @.str.1
	.asciz	"Seek to %d failed: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"Cannot read symbol table: %s\n"

	.no_dead_strip	_read_symtabs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_symtabs
_read_symtabs:                          ; @read_symtabs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x24, _ehdr@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ehdr@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x25, #0
	mov	w27, #24
Lloh2:
	adrp	x28, _SHT_SYMTAB@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SHT_SYMTAB@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
Lloh4:
	adrp	x8, _secs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _secs@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
	madd	x8, x25, x27, x20
	ldr	x8, [x8, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x21, x25, x27, x20
	mov	x22, x21
	ldr	w0, [x22, #16]!
	bl	_malloc
	str	x0, [x21]
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x20, x25, x27, x20
	ldr	w1, [x20, #20]!
Lloh9:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fseek
	tbz	x0, #63, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w23, [x20]
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_die
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21]
	ldr	w2, [x22]
	mov	w1, #1
	mov	x3, x19
	bl	_fread
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
	ldr	w0, [x22]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #32
	b.lo	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
	mov	x20, #0
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	add	x26, x8, x23
	ldr	x0, [x26, #24]
	bl	_elf32_to_cpu
	str	x0, [x26, #24]
	ldr	x0, [x26, #16]
	bl	_elf32_to_cpu
	str	x0, [x26, #16]
	ldr	x0, [x26, #8]
	bl	_elf32_to_cpu
	str	x0, [x26, #8]
	ldr	w0, [x26]
	bl	_elf16_to_cpu
	str	w0, [x26]
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x23, x23, #32
	cmp	x20, x8, lsr #5
	b.lo	LBB0_12
	b	LBB0_2
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ehdr,4,2                       ; @ehdr
	.comm	_secs,8,3                       ; @secs
	.comm	_SHT_SYMTAB,8,3                 ; @SHT_SYMTAB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc of %d bytes for symtab failed\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.1:                               ; @.str.1
	.asciz	"Seek to %d failed: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"Cannot read symbol table: %s\n"

	.no_dead_strip	_read_symtabs
.subsections_via_symbols
