	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_versym
_get_versym:                            ## @get_versym
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rcx, %r14
	movq	8(%rdi), %rbx
	movq	_SHT_SUNW_versym@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%esi, %rdx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rbx
	decq	%rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, 8(%rbx)
	jne	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	callq	_elf_errno
	movl	24(%rbx), %edi
	xorl	%esi, %esi
	callq	_elf_getdata
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	8(%rax), %rcx
	movq	%rcx, (%r15)
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	16(%rbx), %rax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_ent_count
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	$0, (%r14)
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_8
## %bb.11:
	movl	%eax, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_8:
	movq	$0, (%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT_SUNW_versym,8,3            ## @SHT_SUNW_versym
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf_getdata failed: %s"

	.no_dead_strip	_get_versym
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_versym
_get_versym:                            ; @get_versym
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x20, x3
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x9, _SHT_SUNW_versym@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHT_SUNW_versym@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sxtw	x10, w1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #32
	subs	x8, x8, #1
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x21]
	cmp	x11, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x21, #8]
	cmp	x11, x10
	b.ne	LBB0_2
; %bb.5:
	bl	_elf_errno
	ldr	w0, [x21, #24]
	mov	x1, #0
	bl	_elf_getdata
	cbz	x0, LBB0_8
; %bb.6:
	ldp	x9, x8, [x0]
	str	x8, [x19]
	ldr	x8, [x21, #16]
	cmp	x9, x8
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	mov	x1, x20
	bl	_get_ent_count
	cbnz	w0, LBB0_11
; %bb.7:
	str	wzr, [x20]
	b	LBB0_11
LBB0_8:
	bl	_elf_errno
	cbz	w0, LBB0_10
; %bb.9:
	bl	_elf_errmsg
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_10:
	str	xzr, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT_SUNW_versym,8,3            ; @SHT_SUNW_versym
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_getdata failed: %s"

	.no_dead_strip	_get_versym
.subsections_via_symbols
