	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function globextend
_globextend:                            ## @globextend
	.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
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movslq	(%rsi), %rax
	movslq	4(%rsi), %rcx
	addq	%rax, %rcx
	leaq	16(,%rcx,8), %r15
	movq	8(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%r15, %rsi
	callq	_realloc
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_malloc
LBB0_3:
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	cmpq	$0, 8(%r13)
	jne	LBB0_7
## %bb.5:
	movl	4(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	movq	%rax, %rsi
	shlq	$3, %rsi
	decl	%eax
	shlq	$3, %rax
	movq	%rsi, %rcx
	subq	%rax, %rcx
	addq	%rcx, %r12
	addq	$-8, %r12
	movq	%r12, %rdi
	callq	___bzero
LBB0_7:
	movq	%r12, 8(%r13)
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx,%rdi)
	leaq	4(%rdi), %rdi
	jne	LBB0_8
## %bb.9:
	sarq	$2, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	addq	%rdi, (%r14)
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_g_Ctoc
	movl	(%r13), %edx
	movl	4(%r13), %ecx
	leal	1(%rdx), %eax
	movl	%eax, (%r13)
	addl	%ecx, %edx
	movslq	%edx, %rdx
	movq	%r14, (%r12,%rdx,8)
	jmp	LBB0_12
LBB0_10:
	movl	(%r13), %eax
	movl	4(%r13), %ecx
LBB0_12:
	addl	%ecx, %eax
	cltq
	movq	$0, (%r12,%rax,8)
	movq	_GLOB_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_15
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r15
	movq	_ARG_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jae	LBB0_14
LBB0_15:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_16
	jmp	LBB0_17
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_16:
	movq	_GLOB_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLOB_NOSPACE,4,2               ## @GLOB_NOSPACE
	.comm	_GLOB_LIMIT,4,2                 ## @GLOB_LIMIT
	.comm	_ARG_MAX,8,3                    ## @ARG_MAX
	.comm	_errno,8,3                      ## @errno
	.no_dead_strip	_globextend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function globextend
_globextend:                            ; @globextend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x0
	ldp	w8, w9, [x1]
	add	w8, w8, w9
	add	w8, w8, #2
	sbfiz	x20, x8, #3, #32
	ldr	x0, [x1, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x20
	bl	_realloc
	mov	x22, x0
	cbnz	x0, LBB0_3
	b	LBB0_15
LBB0_2:
	mov	x0, x20
	bl	_malloc
	mov	x22, x0
	cbz	x0, LBB0_15
LBB0_3:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:
	lsl	x1, x8, #3
	sub	w8, w8, #1
	sub	x8, x1, w8, uxtw #3
	add	x8, x8, x22
	sub	x22, x8, #8
	mov	x0, x22
	bl	_bzero
LBB0_6:
	mov	x8, #0
	str	x22, [x21, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23, x8]
	add	x8, x8, #4
	cbnz	w9, LBB0_7
; %bb.8:
	asr	x0, x8, #2
	ldr	x8, [x19]
	add	x8, x8, x0
	str	x8, [x19]
	bl	_malloc
	mov	x24, x0
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x23
	mov	x1, x24
	bl	_g_Ctoc
	ldp	w10, w8, [x21]
	add	w9, w10, #1
	str	w9, [x21]
	add	w10, w10, w8
	str	x24, [x22, w10, sxtw #3]
	b	LBB0_11
LBB0_10:
	ldp	w9, w8, [x21]
LBB0_11:
	add	w8, w9, w8
	str	xzr, [x22, w8, sxtw #3]
	ldr	w8, [x21, #16]
Lloh0:
	adrp	x9, _GLOB_LIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GLOB_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ARG_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x8, x20
	cmp	x8, x9
	b.hs	LBB0_14
LBB0_13:
Lloh6:
	adrp	x8, _GLOB_NOSPACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GLOB_NOSPACE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x24, #0
	csel	w0, w8, wzr, eq
	b	LBB0_16
LBB0_14:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
LBB0_15:
Lloh12:
	adrp	x8, _GLOB_NOSPACE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GLOB_NOSPACE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GLOB_NOSPACE,4,2               ; @GLOB_NOSPACE
	.comm	_GLOB_LIMIT,4,2                 ; @GLOB_LIMIT
	.comm	_ARG_MAX,8,3                    ; @ARG_MAX
	.comm	_errno,8,3                      ; @errno
	.no_dead_strip	_globextend
.subsections_via_symbols
