	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_allocate_scn           ## -- Begin function _libelf_allocate_scn
	.p2align	4, 0x90
__libelf_allocate_scn:                  ## @_libelf_allocate_scn
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, 16(%rbx)
	movq	%r15, (%rbx)
	leaq	12(%rbx), %rdi
	callq	_STAILQ_INIT
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_STAILQ_INIT
	movq	_scntree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_RB_INSERT
	jmp	LBB0_3
LBB0_1:
	movq	_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LIBELF_SET_ERROR
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESOURCE,4,2                   ## @RESOURCE
	.comm	_errno,4,2                      ## @errno
	.comm	_scntree,4,2                    ## @scntree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_allocate_scn           ; -- Begin function _libelf_allocate_scn
	.p2align	2
__libelf_allocate_scn:                  ; @_libelf_allocate_scn
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	str	x20, [x19, #16]
	str	x21, [x19]
	add	x0, x19, #12
	bl	_STAILQ_INIT
	add	x0, x19, #8
	bl	_STAILQ_INIT
Lloh0:
	adrp	x8, _scntree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scntree@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_RB_INSERT
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _RESOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LIBELF_SET_ERROR
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RESOURCE,4,2                   ; @RESOURCE
	.comm	_errno,4,2                      ; @errno
	.comm	_scntree,4,2                    ; @scntree
.subsections_via_symbols
