	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_newscn                     ## -- Begin function elf_newscn
	.p2align	4, 0x90
_elf_newscn:                            ## @elf_newscn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ELF_K_ELF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	8(%rbx), %esi
	movq	_ELFCLASS32@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_8
## %bb.3:
	movq	_ELFCLASS64@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_8
## %bb.4:
	movq	_CLASS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_7:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	__libelf_ehdr
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	16(%rbx), %rcx
	movq	_ELF_C_WRITE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.10:
	movq	_LIBELF_F_SHDRS_LOADED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 24(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	__libelf_load_section_headers
	testq	%rax, %rax
	je	LBB0_19
LBB0_12:
	leaq	40(%rbx), %rdi
	callq	_RB_EMPTY
	movq	32(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	xorl	%edi, %edi
	testq	%rcx, %rcx
	sete	%dil
	callq	_assert
	movq	_SHN_UNDEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	__libelf_allocate_scn
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	32(%rbx), %rcx
	incq	%rcx
	movq	%rcx, 32(%rbx)
LBB0_15:
	xorl	%edi, %edi
	testq	%rcx, %rcx
	setne	%dil
	callq	_assert
	movq	32(%rbx), %rsi
	movq	%rbx, %rdi
	callq	__libelf_allocate_scn
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	%rax, %r14
	incq	32(%rbx)
	movq	_ELF_C_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ELF_F_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_elf_flagscn
	jmp	LBB0_7
LBB0_19:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_K_ELF,8,3                  ## @ELF_K_ELF
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ELFCLASS32,4,2                 ## @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ## @ELFCLASS64
	.comm	_CLASS,4,2                      ## @CLASS
	.comm	_ELF_C_WRITE,8,3                ## @ELF_C_WRITE
	.comm	_LIBELF_F_SHDRS_LOADED,4,2      ## @LIBELF_F_SHDRS_LOADED
	.comm	_SHN_UNDEF,8,3                  ## @SHN_UNDEF
	.comm	_ELF_C_SET,4,2                  ## @ELF_C_SET
	.comm	_ELF_F_DIRTY,4,2                ## @ELF_F_DIRTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_newscn                     ; -- Begin function elf_newscn
	.p2align	2
_elf_newscn:                            ; @elf_newscn
	.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_12
; %bb.1:
	mov	x19, 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_12
; %bb.2:
	ldr	w1, [x19, #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_16
; %bb.3:
	mov	x0, x19
	mov	w2, #0
	bl	__libelf_ehdr
	cbz	x0, LBB0_14
; %bb.4:
	ldr	x8, [x19, #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, [x19, #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, x19
	bl	__libelf_load_section_headers
	cbz	x0, LBB0_14
LBB0_7:
	add	x0, x19, #40
	bl	_RB_EMPTY
	ldr	x8, [x19, #32]
	cbz	x0, LBB0_10
; %bb.8:
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
Lloh15:
	adrp	x8, _SHN_UNDEF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SHN_UNDEF@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	bl	__libelf_allocate_scn
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x8, [x19, #32]
	add	x8, x8, #1
	str	x8, [x19, #32]
LBB0_10:
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x1, [x19, #32]
	mov	x0, x19
	bl	__libelf_allocate_scn
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x8, [x19, #32]
	add	x8, x8, #1
	str	x8, [x19, #32]
Lloh18:
	adrp	x8, _ELF_C_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ELF_C_SET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _ELF_F_DIRTY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ELF_F_DIRTY@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_elf_flagscn
	b	LBB0_15
LBB0_12:
Lloh24:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
LBB0_14:
	mov	x20, #0
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh26:
	adrp	x8, _CLASS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CLASS@GOTPAGEOFF]
	b	LBB0_13
	.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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_K_ELF,8,3                  ; @ELF_K_ELF
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ELFCLASS32,4,2                 ; @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ; @ELFCLASS64
	.comm	_CLASS,4,2                      ; @CLASS
	.comm	_ELF_C_WRITE,8,3                ; @ELF_C_WRITE
	.comm	_LIBELF_F_SHDRS_LOADED,4,2      ; @LIBELF_F_SHDRS_LOADED
	.comm	_SHN_UNDEF,8,3                  ; @SHN_UNDEF
	.comm	_ELF_C_SET,4,2                  ; @ELF_C_SET
	.comm	_ELF_F_DIRTY,4,2                ; @ELF_F_DIRTY
.subsections_via_symbols
