	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_getnfile                   ## -- Begin function elf_getnfile
	.p2align	4, 0x90
_elf_getnfile:                          ## @elf_getnfile
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_err
LBB0_2:
	leaq	-80(%rbp), %rsi
	movl	%ebx, %edi
	movl	$8, %edx
	callq	_read
	cmpl	$8, %eax
	jne	LBB0_4
## %bb.3:
	movq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_IS_ELF
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	shrq	$32, %r13
	leaq	-48(%rbp), %rsi
	movl	%ebx, %edi
	callq	_fstat
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_err
LBB0_7:
	movl	-48(%rbp), %esi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %r15
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_err
LBB0_9:
	movl	%ebx, %edi
	callq	_close
	movslq	%r14d, %rdx
	leaq	(%r15,%rdx), %rbx
	movl	$1, %eax
	cmpl	$2, %r13d
	jl	LBB0_13
## %bb.10:
	movq	_SHT_SYMTAB@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	%r15, %rdx
	addq	$32, %rdx
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rdx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rax
	addq	$32, %rdx
	cmpq	%rax, %r13
	jne	LBB0_11
	jmp	LBB0_14
LBB0_4:
	movl	%ebx, %edi
	callq	_close
	movl	$-1, %eax
	jmp	LBB0_30
LBB0_13:
	cmpl	%r13d, %eax
	movl	%eax, %r13d
	jne	LBB0_15
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_errx
	movl	%r13d, %eax
LBB0_15:
	movl	%eax, %ecx
	shlq	$5, %rcx
	movq	8(%rbx,%rcx), %rsi
	movslq	16(%rbx,%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	20(%rbx,%rcx), %eax
	cltd
	idivl	24(%rbx,%rcx)
	movl	%eax, %r12d
	shlq	$5, %rsi
	movslq	16(%rbx,%rsi), %r13
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	addq	%r15, %r13
	movq	_nname@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movl	$1, %edi
	cmpl	$2, %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_21
## %bb.16:
	movl	%r12d, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	addq	$8, %rbx
	decq	%r15
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$8, %rbx
	decq	%r15
	je	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_wantsym
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	(%r14)
	jmp	LBB0_19
LBB0_20:
	movq	(%r14), %rdi
	incq	%rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_21:
	movl	$16, %esi
	callq	_calloc
	movq	_nl@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	(%rbx), %rax
LBB0_23:
	movq	_npe@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	cmpl	$2, %r12d
	jl	LBB0_29
## %bb.24:
	movl	%r12d, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	addq	$8, %rbx
	decq	%r12
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	addq	$8, %rbx
	decq	%r12
	je	LBB0_28
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_wantsym
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	(%rbx), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movslq	4(%rbx), %rax
	addq	%r13, %rax
	movq	%rax, 8(%rcx)
	addq	$16, %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_27
LBB0_28:
	movq	(%r14), %rax
LBB0_29:
	movl	$-1, (%rax)
	movq	_excludes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	xorl	%eax, %eax
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"cannot fstat %s"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"cannot mmap %s"

	.comm	_SHT_SYMTAB,8,3                 ## @SHT_SYMTAB
L_.str.3:                               ## @.str.3
	.asciz	"%s has no symbol table"

	.comm	_nname,8,3                      ## @nname
	.comm	_nl,8,3                         ## @nl
L_.str.4:                               ## @.str.4
	.asciz	"insufficient memory for symbol table"

	.comm	_npe,8,3                        ## @npe
	.comm	_excludes,8,3                   ## @excludes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_getnfile                   ; -- Begin function elf_getnfile
	.p2align	2
_elf_getnfile:                          ; @elf_getnfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_err
LBB0_2:
	add	x1, sp, #24
	mov	x0, x22
	mov	w2, #8
	bl	_read
	cmp	w0, #8
	b.ne	LBB0_12
; %bb.3:
	ldr	x23, [sp, #24]
	mov	x0, x23
	bl	_IS_ELF
	cbz	w0, LBB0_12
; %bb.4:
	lsr	x24, x23, #32
	add	x1, sp, #16
	mov	x0, x22
	bl	_fstat
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_err
LBB0_6:
	ldr	w1, [sp, #16]
Lloh7:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	w0, #0
	mov	x4, x22
	mov	w5, #0
	bl	_mmap
	mov	x20, x0
Lloh13:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_err
LBB0_8:
	mov	x0, x22
	bl	_close
	sxtw	x8, w23
	add	x22, x20, x8
	cmp	w24, #2
	b.lt	LBB0_13
; %bb.9:
Lloh18:
	adrp	x9, _SHT_SYMTAB@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SHT_SYMTAB@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x8, x8, x20
	add	x10, x8, #32
	mov	w8, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x9
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #1
	add	x10, x10, #32
	cmp	x24, x8
	b.ne	LBB0_10
	b	LBB0_15
LBB0_12:
	mov	x0, x22
	bl	_close
	mov	w8, #-1
	b	LBB0_32
LBB0_13:
	mov	w8, #1
LBB0_14:
	cmp	w8, w24
	mov	x24, x8
	b.ne	LBB0_16
LBB0_15:
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
	mov	x8, x24
LBB0_16:
	mov	w8, w8
	add	x8, x22, x8, lsl #5
	ldr	x9, [x8, #8]
	ldp	w23, w10, [x8, #16]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	ldr	w8, [x8, #24]
	sdiv	w24, w10, w8
	add	x8, x22, x9, lsl #5
	ldrsw	x8, [x8, #16]
	add	x21, x20, x8
Lloh23:
	adrp	x25, _nname@GOTPAGE
Lloh24:
	ldr	x25, [x25, _nname@GOTPAGEOFF]
	str	xzr, [x25]
	cmp	w24, #2
	b.lt	LBB0_21
; %bb.17:
	add	x8, x23, x20
	add	x22, x8, #8
	sub	x26, x24, #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x22, x22, #8
	subs	x26, x26, #1
	b.eq	LBB0_22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_wantsym
	cbz	x0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x25]
	add	x8, x8, #1
	str	x8, [x25]
	b	LBB0_18
LBB0_21:
	mov	w0, #1
	b	LBB0_23
LBB0_22:
	ldr	x8, [x25]
	add	x0, x8, #1
LBB0_23:
	mov	w1, #16
	bl	_calloc
Lloh25:
	adrp	x22, _nl@GOTPAGE
Lloh26:
	ldr	x22, [x22, _nl@GOTPAGEOFF]
	str	x0, [x22]
	cbnz	x0, LBB0_25
; %bb.24:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x0, [x22]
LBB0_25:
Lloh29:
	adrp	x22, _npe@GOTPAGE
Lloh30:
	ldr	x22, [x22, _npe@GOTPAGEOFF]
	str	x0, [x22]
	cmp	w24, #2
	b.lt	LBB0_31
; %bb.26:
	add	x8, x23, x20
	add	x20, x8, #8
	sub	x23, x24, #1
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x20, x20, #8
	subs	x23, x23, #1
	b.eq	LBB0_30
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_wantsym
	cbz	x0, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x22]
	ldp	w9, w10, [x20]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	str	w9, [x8]
	add	x9, x21, x10
	str	x9, [x8, #8]
	add	x8, x8, #16
	str	x8, [x22]
	b	LBB0_27
LBB0_30:
	ldr	x0, [x22]
LBB0_31:
	mov	w8, #0
	mov	w9, #-1
	str	w9, [x0]
Lloh31:
	adrp	x9, _excludes@GOTPAGE
Lloh32:
	ldr	x9, [x9, _excludes@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	str	x9, [x19]
LBB0_32:
	mov	x0, x8
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"cannot fstat %s"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"cannot mmap %s"

	.comm	_SHT_SYMTAB,8,3                 ; @SHT_SYMTAB
l_.str.3:                               ; @.str.3
	.asciz	"%s has no symbol table"

	.comm	_nname,8,3                      ; @nname
	.comm	_nl,8,3                         ; @nl
l_.str.4:                               ; @.str.4
	.asciz	"insufficient memory for symbol table"

	.comm	_npe,8,3                        ; @npe
	.comm	_excludes,8,3                   ; @excludes
.subsections_via_symbols
