	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_getscn                     ## -- Begin function elf_getscn
	.p2align	4, 0x90
_elf_getscn:                            ## @elf_getscn
	.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
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_ELF_K_ELF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.2:
	movq	%rsi, %r14
	movl	8(%r15), %esi
	movq	_ELFCLASS32@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_4
## %bb.3:
	movq	_ELFCLASS64@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_4
LBB0_16:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	__libelf_ehdr
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movq	16(%r15), %rcx
	movq	_ELF_C_WRITE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.6:
	movq	_LIBELF_F_SHDRS_LOADED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 24(%r15)
	jne	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	__libelf_load_section_headers
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	addq	$28, %r15
	movq	%r15, %rdi
	callq	_RB_ROOT
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	%rax, %rbx
	movq	_s_tree@GOTPCREL(%rip), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	callq	_RB_LEFT
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%rbx)
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_RB_RIGHT
	jmp	LBB0_15
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_K_ELF,8,3                  ## @ELF_K_ELF
	.comm	_ELFCLASS32,4,2                 ## @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ## @ELFCLASS64
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ELF_C_WRITE,8,3                ## @ELF_C_WRITE
	.comm	_LIBELF_F_SHDRS_LOADED,4,2      ## @LIBELF_F_SHDRS_LOADED
	.comm	_s_tree,4,2                     ## @s_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_getscn                     ; -- Begin function elf_getscn
	.p2align	2
_elf_getscn:                            ; @elf_getscn
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ELF_K_ELF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELF_K_ELF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.2:
	mov	x19, x1
	ldr	w1, [x20, #8]
Lloh3:
	adrp	x8, _ELFCLASS32@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ELFCLASS32@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ELFCLASS64@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ELFCLASS64@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w1, w8
	ccmp	w1, w9, #4, ne
	b.ne	LBB0_13
; %bb.3:
	mov	x0, x20
	mov	w2, #0
	bl	__libelf_ehdr
	cbz	x0, LBB0_14
; %bb.4:
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _ELF_C_WRITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ELF_C_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x20, #24]
Lloh12:
	adrp	x9, _LIBELF_F_SHDRS_LOADED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LIBELF_F_SHDRS_LOADED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x1, x0
	mov	x0, x20
	bl	__libelf_load_section_headers
	cbz	x0, LBB0_14
LBB0_7:
	add	x0, x20, #28
	bl	_RB_ROOT
	cbz	x0, LBB0_13
; %bb.8:
Lloh15:
	adrp	x20, _s_tree@GOTPAGE
Lloh16:
	ldr	x20, [x20, _s_tree@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	bl	_RB_LEFT
	cbz	x0, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmp	x8, x19
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x20]
	b.hs	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_RB_RIGHT
	cbnz	x0, LBB0_10
LBB0_13:
Lloh17:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	x0, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_K_ELF,8,3                  ; @ELF_K_ELF
	.comm	_ELFCLASS32,4,2                 ; @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ; @ELFCLASS64
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ELF_C_WRITE,8,3                ; @ELF_C_WRITE
	.comm	_LIBELF_F_SHDRS_LOADED,4,2      ; @LIBELF_F_SHDRS_LOADED
	.comm	_s_tree,4,2                     ; @s_tree
.subsections_via_symbols
