	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_symbol_value
_get_symbol_value:                      ## @get_symbol_value
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	(%rdi), %r15
	movslq	%esi, %rbx
	shlq	$4, %rbx
	movq	(%r15,%rbx), %rax
	movq	_SHT_SYMTAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	movq	_SHT_DYNSYM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_2:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_elf_errno
	movl	8(%r15,%rbx), %edi
	xorl	%esi, %esi
	callq	_elf_getdata
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	leaq	-40(%rbp), %r15
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_gelf_getsym
	cmpq	%r15, %rax
	jne	LBB0_7
## %bb.6:
	movl	-40(%rbp), %r12d
	jmp	LBB0_7
LBB0_3:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_7:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT_SYMTAB,8,3                 ## @SHT_SYMTAB
	.comm	_SHT_DYNSYM,8,3                 ## @SHT_DYNSYM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf_getdata failed: %s"

	.no_dead_strip	_get_symbol_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_symbol_value
_get_symbol_value:                      ; @get_symbol_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x20, [x0]
	sbfiz	x8, x1, #4, #32
	ldr	x8, [x20, x8]
Lloh0:
	adrp	x9, _SHT_SYMTAB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHT_SYMTAB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SHT_DYNSYM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SHT_DYNSYM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x2
	sxtw	x21, w1
	bl	_elf_errno
	add	x8, x20, x21, lsl #4
	ldr	w0, [x8, #8]
	mov	x1, #0
	bl	_elf_getdata
	cbz	x0, LBB0_5
; %bb.2:
	add	x20, sp, #8
	add	x2, sp, #8
	mov	x1, x19
	bl	_gelf_getsym
	cmp	x0, x20
	b.eq	LBB0_7
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	_elf_errno
	cbz	w0, LBB0_4
; %bb.6:
	bl	_elf_errmsg
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	mov	w0, #0
	b	LBB0_4
LBB0_7:
	ldr	w0, [sp, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT_SYMTAB,8,3                 ; @SHT_SYMTAB
	.comm	_SHT_DYNSYM,8,3                 ; @SHT_DYNSYM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_getdata failed: %s"

	.no_dead_strip	_get_symbol_value
.subsections_via_symbols
