	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_section_base
_find_section_base:                     ## @find_section_base
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	-72(%rbp), %rbx
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	callq	_gelf_getehdr
	cmpq	%rbx, %rax
	je	LBB0_3
## %bb.1:
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rdi
LBB0_2:
	movq	%rax, %rsi
	callq	_warnx
	jmp	LBB0_22
LBB0_3:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_elf_getshstrndx
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_elf_errno
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_elf_nextscn
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	leaq	-96(%rbp), %r13
	leaq	L_.str.2(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$-1, %edi
	callq	_elf_errmsg
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_warnx
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_elf_nextscn
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_19
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rsi
	movl	-80(%rbp), %edx
	movq	%r12, %rdi
	callq	_elf_strptr
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	-96(%rbp), %r15
	jmp	LBB0_18
LBB0_19:
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %edi
	callq	_elf_errmsg
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	callq	_warnx
LBB0_21:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_errx
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_11:
	movq	-72(%rbp), %rsi
	movq	_ET_EXEC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_13
## %bb.12:
	movq	_ET_DYN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_13
## %bb.14:
	movq	_ET_REL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_16
## %bb.15:
	movq	_section_base@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	jmp	LBB0_22
LBB0_13:
	movq	-88(%rbp), %rax
	movq	_section_base@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	callq	_warnx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gelf_getehdr failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"elf_getshstrndx failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"gelf_getshdr failed: %s"

	.comm	_ET_EXEC,8,3                    ## @ET_EXEC
	.comm	_ET_DYN,8,3                     ## @ET_DYN
	.comm	_section_base,8,3               ## @section_base
	.comm	_ET_REL,8,3                     ## @ET_REL
L_.str.3:                               ## @.str.3
	.asciz	"unknown e_type %u"

L_.str.4:                               ## @.str.4
	.asciz	"elf_nextscn failed: %s"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.5:                               ## @.str.5
	.asciz	"%s: cannot find section %s"

	.no_dead_strip	_find_section_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_section_base
_find_section_base:                     ; @find_section_base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	add	x22, sp, #40
	add	x1, sp, #40
	mov	x0, x21
	bl	_gelf_getehdr
	cmp	x0, x22
	b.eq	LBB0_3
; %bb.1:
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_warnx
	b	LBB0_15
LBB0_3:
	add	x1, sp, #8
	mov	x0, x21
	bl	_elf_getshstrndx
	cbz	w0, LBB0_16
; %bb.4:
	bl	_elf_errno
	mov	x0, x21
	mov	x1, #0
	bl	_elf_nextscn
	cbz	x0, LBB0_12
; %bb.5:
	mov	x22, x0
	mov	x24, #0
Lloh2:
	adrp	x23, l_.str.2@PAGE
Lloh3:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #16
	mov	x0, x22
	bl	_gelf_getshdr
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_warnx
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_elf_nextscn
	mov	x22, x0
	cbnz	x0, LBB0_6
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [sp, #8]
	ldr	w2, [sp, #32]
	mov	x0, x21
	bl	_elf_strptr
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #16]
	add	x24, x8, x24
	b	LBB0_8
LBB0_12:
	bl	_elf_errno
	cbz	w0, LBB0_14
; %bb.13:
	bl	_elf_errmsg
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
LBB0_14:
Lloh6:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_errx
LBB0_15:
	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
	add	sp, sp, #112
	ret
LBB0_16:
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_17:
	ldr	x1, [sp, #40]
Lloh13:
	adrp	x8, _ET_EXEC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ET_EXEC@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _ET_DYN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ET_DYN@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x1, x8
	ccmp	x1, x9, #4, ne
	b.ne	LBB0_19
; %bb.18:
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, _section_base@GOTPAGE
Lloh20:
	ldr	x9, [x9, _section_base@GOTPAGEOFF]
Lloh21:
	str	x8, [x9]
	b	LBB0_15
LBB0_19:
Lloh22:
	adrp	x8, _ET_REL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ET_REL@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_21
; %bb.20:
Lloh25:
	adrp	x8, _section_base@GOTPAGE
Lloh26:
	ldr	x8, [x8, _section_base@GOTPAGEOFF]
Lloh27:
	str	x24, [x8]
	b	LBB0_15
LBB0_21:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gelf_getehdr failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"elf_getshstrndx failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"gelf_getshdr failed: %s"

	.comm	_ET_EXEC,8,3                    ; @ET_EXEC
	.comm	_ET_DYN,8,3                     ; @ET_DYN
	.comm	_section_base,8,3               ; @section_base
	.comm	_ET_REL,8,3                     ; @ET_REL
l_.str.3:                               ; @.str.3
	.asciz	"unknown e_type %u"

l_.str.4:                               ; @.str.4
	.asciz	"elf_nextscn failed: %s"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.5:                               ; @.str.5
	.asciz	"%s: cannot find section %s"

	.no_dead_strip	_find_section_base
.subsections_via_symbols
