	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_section_offset
_elf_section_offset:                    ## @elf_section_offset
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_PERF_ELF_C_READ_MMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_elf_begin
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	leaq	-36(%rbp), %rsi
	movq	%rax, %rdi
	callq	_gelf_getehdr
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	-36(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_elf_section_by_name
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	-32(%rbp), %r14d
LBB0_4:
	movq	%rbx, %rdi
	callq	_elf_end
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_ELF_C_READ_MMAP,4,2       ## @PERF_ELF_C_READ_MMAP
	.no_dead_strip	_elf_section_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_section_offset
_elf_section_offset:                    ; @elf_section_offset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
Lloh0:
	adrp	x8, _PERF_ELF_C_READ_MMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_ELF_C_READ_MMAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_elf_begin
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x1, sp, #12
	bl	_gelf_getehdr
	cbz	x0, LBB0_5
; %bb.2:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x20
	bl	_elf_section_by_name
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w20, [sp, #8]
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_7
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x19
	bl	_elf_end
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_ELF_C_READ_MMAP,4,2       ; @PERF_ELF_C_READ_MMAP
	.no_dead_strip	_elf_section_offset
.subsections_via_symbols
