	.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	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_GLOB_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.1:
	movq	8(%r12), %rax
	cmpq	(%r15), %rax
	jg	LBB0_2
LBB0_3:
	movslq	16(%r12), %rax
	movslq	20(%r12), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$2, %rsi
	movq	24(%r12), %rdi
	movl	$8, %edx
	callq	_reallocarray
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%r12)
	jne	LBB0_8
## %bb.6:
	movl	20(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.7:
	shlq	$3, %rsi
	movq	%r14, %rdi
	callq	___bzero
LBB0_8:
	movq	%r14, 24(%r12)
	testq	%r13, %r13
	je	LBB0_9
## %bb.14:
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_19
LBB0_9:
	movq	_EOS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx,%r15), %rcx
	addq	$4, %r15
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.11:
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	sarq	$2, %r15
	imulq	(%rax), %r15
	movq	%r15, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_g_Ctoc
	testq	%rax, %rax
	jne	LBB0_13
LBB0_15:
	movq	%r13, %rdi
	callq	_strlen
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	addq	%rcx, %rax
	incq	%rax
	movq	%rax, 8(%rdx)
	movq	_GLOB_LIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12)
	je	LBB0_17
## %bb.16:
	movq	_GLOB_LIMIT_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_17
LBB0_13:
	movq	%r13, %rdi
	callq	_free
LBB0_2:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_4
LBB0_19:
	movslq	20(%r12), %rax
	movslq	16(%r12), %rcx
	addq	%rax, %rcx
	movq	$0, (%r14,%rcx,8)
LBB0_4:
	movq	_GLOB_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	16(%r12), %eax
	movl	20(%r12), %ecx
	leal	1(%rax), %edx
	movl	%edx, 16(%r12)
	leal	(%rax,%rcx), %edx
	movslq	%edx, %rdx
	movq	%r13, (%r14,%rdx,8)
	addl	%ecx, %eax
	incl	%eax
	cltq
	movq	$0, (%r14,%rax,8)
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GLOB_LIMIT,4,2                 ## @GLOB_LIMIT
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_errno,4,2                      ## @errno
	.comm	_GLOB_NOSPACE,4,2               ## @GLOB_NOSPACE
	.comm	_EOS,8,3                        ## @EOS
	.comm	_MB_CUR_MAX,8,3                 ## @MB_CUR_MAX
	.comm	_GLOB_LIMIT_STRING,8,3          ## @GLOB_LIMIT_STRING
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x25, _GLOB_LIMIT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GLOB_LIMIT@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.gt	LBB0_15
LBB0_2:
	ldpsw	x8, x9, [x19, #16]
	add	x8, x8, x9
	add	x1, x8, #2
	ldr	x0, [x19, #24]
	mov	w2, #8
	bl	_reallocarray
	cbz	x0, LBB0_17
; %bb.3:
	mov	x21, x0
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:
	lsl	x1, x8, #3
	mov	x0, x21
	bl	_bzero
LBB0_6:
	str	x21, [x19, #24]
	cbz	x23, LBB0_8
; %bb.7:
	mov	x0, x23
	bl	_strdup
	mov	x23, x0
	cbnz	x0, LBB0_12
	b	LBB0_16
LBB0_8:
	mov	x8, #0
Lloh2:
	adrp	x9, _EOS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EOS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x22, x8]
	add	x8, x8, #4
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.10:
Lloh5:
	adrp	x9, _MB_CUR_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MB_CUR_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	asr	x8, x8, #2
	mul	x24, x9, x8
	mov	x0, x24
	bl	_malloc
	cbz	x0, LBB0_16
; %bb.11:
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_g_Ctoc
	cbnz	x0, LBB0_14
LBB0_12:
	mov	x0, x23
	bl	_strlen
	ldr	x8, [x20, #8]
	add	x8, x0, x8
	add	x8, x8, #1
	str	x8, [x20, #8]
	ldr	w9, [x19]
	ldr	w10, [x25]
	and	w9, w10, w9
Lloh8:
	adrp	x10, _GLOB_LIMIT_STRING@GOTPAGE
Lloh9:
	ldr	x10, [x10, _GLOB_LIMIT_STRING@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	w9, #0
	ccmp	x8, x10, #8, ne
	b.ge	LBB0_14
; %bb.13:
	mov	w0, #0
	ldp	w9, w8, [x19, #16]
	add	w10, w9, #1
	str	w10, [x19, #16]
	add	w9, w9, w8
	str	x23, [x21, w9, sxtw #3]
	add	w8, w8, w10
	str	xzr, [x21, w8, sxtw #3]
	b	LBB0_18
LBB0_14:
	mov	x0, x23
	bl	_free
LBB0_15:
Lloh11:
	adrp	x8, _E2BIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
	b	LBB0_17
LBB0_16:
	ldp	w9, w8, [x19, #16]
	add	w8, w9, w8
	str	xzr, [x21, w8, sxtw #3]
LBB0_17:
Lloh17:
	adrp	x8, _GLOB_NOSPACE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GLOB_NOSPACE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_18:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GLOB_LIMIT,4,2                 ; @GLOB_LIMIT
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_errno,4,2                      ; @errno
	.comm	_GLOB_NOSPACE,4,2               ; @GLOB_NOSPACE
	.comm	_EOS,8,3                        ; @EOS
	.comm	_MB_CUR_MAX,8,3                 ; @MB_CUR_MAX
	.comm	_GLOB_LIMIT_STRING,8,3          ; @GLOB_LIMIT_STRING
	.no_dead_strip	_globextend
.subsections_via_symbols
