	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _libelf_insert_extent
__libelf_insert_extent:                 ## @_libelf_insert_extent
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	_ELF_EXTENT_EHDR@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	setle	%al
	movq	_ELF_EXTENT_SHDR@GOTPCREL(%rip), %rsi
	cmpl	%ebx, (%rsi)
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %r14
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	__libelf_extent_is_unused
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r13, 24(%rax)
	movq	%r12, 16(%rax)
	movq	%r15, 8(%rax)
	movl	%ebx, (%rax)
	movq	-48(%rbp), %rdi
	movq	_ex_next@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	%rax, %rsi
	callq	_SLIST_INSERT_AFTER
	jmp	LBB0_7
LBB0_1:
	movq	_LAYOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
	jmp	LBB0_8
LBB0_3:
	movq	_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LIBELF_SET_ERROR
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_SLIST_INSERT_HEAD
LBB0_7:
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_EXTENT_EHDR,4,2            ## @ELF_EXTENT_EHDR
	.comm	_ELF_EXTENT_SHDR,4,2            ## @ELF_EXTENT_SHDR
	.comm	_LAYOUT,4,2                     ## @LAYOUT
	.comm	_RESOURCE,4,2                   ## @RESOURCE
	.comm	_errno,4,2                      ## @errno
	.comm	_ex_next,4,2                    ## @ex_next
	.no_dead_strip	__libelf_insert_extent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _libelf_insert_extent
__libelf_insert_extent:                 ; @_libelf_insert_extent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ELF_EXTENT_EHDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELF_EXTENT_EHDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
Lloh3:
	adrp	x8, _ELF_EXTENT_SHDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ELF_EXTENT_SHDR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w8, w1, #8, le
	cset	w0, ge
	bl	_assert
	str	xzr, [sp, #8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	__libelf_extent_is_unused
	cbz	w0, LBB0_4
; %bb.1:
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
	stp	x22, x23, [x0, #16]
	str	x20, [x0, #8]
	str	w21, [x0]
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x8, _ex_next@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ex_next@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	cbz	x0, LBB0_7
; %bb.3:
	bl	_SLIST_INSERT_AFTER
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x8, _LAYOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LAYOUT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _RESOURCE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RESOURCE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
LBB0_6:
	bl	_LIBELF_SET_ERROR
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_SLIST_INSERT_HEAD
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_EXTENT_EHDR,4,2            ; @ELF_EXTENT_EHDR
	.comm	_ELF_EXTENT_SHDR,4,2            ; @ELF_EXTENT_SHDR
	.comm	_LAYOUT,4,2                     ; @LAYOUT
	.comm	_RESOURCE,4,2                   ; @RESOURCE
	.comm	_errno,4,2                      ; @errno
	.comm	_ex_next,4,2                    ; @ex_next
	.no_dead_strip	__libelf_insert_extent
.subsections_via_symbols
