	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gelf_getsymshndx               ## -- Begin function gelf_getsymshndx
	.p2align	4, 0x90
_gelf_getsymshndx:                      ## @gelf_getsymshndx
	.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	%r8, %rbx
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, %esi
	movq	%rcx, %rdx
	callq	_gelf_getsym
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_7
## %bb.3:
	movq	%r14, %rbx
	movq	(%r14), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	cmpq	8(%rax), %rcx
	jne	LBB0_7
## %bb.8:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r15d
	movq	_ELFCLASS32@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	sete	%al
	movq	_ELFCLASS64@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%eax, %eax
	movq	_ELFCLASS32@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	sete	%al
	movl	(%r14,%rax,4), %edi
	callq	__libelf_xlate_shtype
	movq	_ELF_T_WORD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:
	cmpq	%rax, (%rbx)
	jne	LBB0_7
## %bb.10:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %edx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	__libelf_msize
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	%r12d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movslq	%r12d, %rax
	imulq	%rax, %r14
	cmpq	8(%rbx), %r14
	jae	LBB0_7
## %bb.11:
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_7:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
	jmp	LBB0_12
LBB0_1:
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ELFCLASS32,4,2                 ## @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ## @ELFCLASS64
	.comm	_ELF_T_WORD,8,3                 ## @ELF_T_WORD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gelf_getsymshndx               ; -- Begin function gelf_getsymshndx
	.p2align	2
_gelf_getsymshndx:                      ; @gelf_getsymshndx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	mov	x1, x2
	mov	x2, x3
	bl	_gelf_getsym
	cbz	x0, LBB0_11
; %bb.1:
	cbz	x21, LBB0_10
; %bb.2:
	ldr	x25, [x21]
	cbz	x25, LBB0_10
; %bb.3:
	ldr	x24, [x25, #8]
	cbz	x24, LBB0_10
; %bb.4:
	cbz	x20, LBB0_10
; %bb.5:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	cmp	x24, x8
	b.ne	LBB0_10
; %bb.6:
	ldr	w23, [x24]
Lloh0:
	adrp	x26, _ELFCLASS32@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ELFCLASS32@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w23, w8
Lloh2:
	adrp	x8, _ELFCLASS64@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ELFCLASS64@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ccmp	w23, w8, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x26]
	cmp	w23, w8
	cset	w8, eq
	ldr	w0, [x25, w8, uxtw #2]
	bl	__libelf_xlate_shtype
Lloh5:
	adrp	x8, _ELF_T_WORD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ELF_T_WORD@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x21]
	cmp	x8, x0
	b.ne	LBB0_10
; %bb.8:
	ldr	w2, [x24, #4]
	mov	x1, x23
	bl	__libelf_msize
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mvn	w8, w22
	lsr	w0, w8, #31
	bl	_assert
	sxtw	x8, w22
	mul	x9, x23, x8
	ldr	x10, [x21, #8]
	cmp	x9, x10
	b.hs	LBB0_10
; %bb.9:
	ldr	x9, [x21, #16]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x20]
	b	LBB0_12
LBB0_10:
Lloh8:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ELFCLASS32,4,2                 ; @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ; @ELFCLASS64
	.comm	_ELF_T_WORD,8,3                 ; @ELF_T_WORD
.subsections_via_symbols
