	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dounsetenv                     ## -- Begin function dounsetenv
	.p2align	4, 0x90
_dounsetenv:                            ## @dounsetenv
	.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	%rdi, %r14
	movq	%rsi, %rdi
	callq	_USE
	movq	_STR_environ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edi, %edx
	cmovgl	%edx, %edi
	movq	8(%rax), %rcx
	addq	$8, %rax
	testq	%rcx, %rcx
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rcx,%rdx), %ebx
	testb	%bl, %bl
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$61, %bl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%rdx
	jmp	LBB0_4
LBB0_8:
	incl	%edi
	jmp	LBB0_9
LBB0_1:
	movl	$1, %edi
LBB0_9:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cleanup_push
	cmpq	$0, 8(%r14)
	je	LBB0_29
## %bb.10:
	addq	$8, %r14
	movq	_STRNOREBIND@GOTPCREL(%rip), %r12
	movq	_NLSMapsAreInited@GOTPCREL(%rip), %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	testq	%rax, %rax
	je	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	(%rax,%rcx), %edx
	testb	%dl, %dl
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=3
	cmpb	$61, %dl
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=3
	movb	%dl, (%rbx,%rcx)
	incq	%rcx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	movb	$0, (%rbx,%rcx)
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_Gmatch
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	8(%r13), %rax
	addq	$8, %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_Unsetenv
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_eq
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_NoNLSRebind@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_MapsAreInited@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	$0, (%r15)
	xorl	%eax, %eax
	callq	_ed_InitMaps
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
	movq	_STR_environ@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r13), %rax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_islocale_var
	testq	%rax, %rax
	je	LBB0_12
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	sete	%al
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=1
	movzbl	%al, %eax
	movq	_AsciiOnly@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	$0, (%r15)
	xorl	%eax, %eax
	callq	_ed_Init
	movq	_MapsAreInited@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.27:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_12
## %bb.28:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	callq	_ed_InitNLSMaps
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, 8(%r14)
	leaq	8(%r14), %r14
	jne	LBB0_12
LBB0_29:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cleanup_until                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STR_environ,8,3                ## @STR_environ
	.comm	_xfree,4,2                      ## @xfree
	.comm	_STRNOREBIND,4,2                ## @STRNOREBIND
	.comm	_NoNLSRebind,8,3                ## @NoNLSRebind
	.comm	_MapsAreInited,8,3              ## @MapsAreInited
	.comm	_NLSMapsAreInited,8,3           ## @NLSMapsAreInited
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LANG"

L_.str.1:                               ## @.str.1
	.asciz	"LC_CTYPE"

	.comm	_AsciiOnly,4,2                  ## @AsciiOnly
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.comm	_LC_COLLATE,4,2                 ## @LC_COLLATE
	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
	.comm	_LC_MESSAGES,4,2                ## @LC_MESSAGES
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
	.comm	_STRLSCOLORS,4,2                ## @STRLSCOLORS
	.comm	_STRLS_COLORS,4,2               ## @STRLS_COLORS
	.comm	_STRNLSPATH,4,2                 ## @STRNLSPATH
	.comm	_STRSYSTYPE,4,2                 ## @STRSYSTYPE
	.comm	_STRtcshlang,4,2                ## @STRtcshlang
	.comm	_dont_free,4,2                  ## @dont_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dounsetenv                     ; -- Begin function dounsetenv
	.p2align	2
_dounsetenv:                            ; @dounsetenv
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	x0, x1
	bl	_USE
Lloh0:
	adrp	x23, _STR_environ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STR_environ@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.1:
	mov	w10, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w11, w10
	csel	w10, w11, w10, gt
	ldr	x9, [x8, #8]!
	cbz	x9, LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x11, #0
	ldrb	w12, [x9, x11]
	cbz	w12, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w12, #61
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x11, x11, #1
	ldrb	w12, [x9, x11]
	cbnz	w12, LBB0_4
	b	LBB0_2
LBB0_6:
	add	w0, w10, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	bl	_xmalloc
	mov	x20, x0
Lloh2:
	adrp	x8, _xfree@GOTPAGE
Lloh3:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_cleanup_push
	ldr	x8, [x19, #8]!
	cbz	x8, LBB0_26
; %bb.9:
Lloh5:
	adrp	x24, _STRNOREBIND@GOTPAGE
Lloh6:
	ldr	x24, [x24, _STRNOREBIND@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
Lloh9:
	adrp	x25, _AsciiOnly@GOTPAGE
Lloh10:
	ldr	x25, [x25, _AsciiOnly@GOTPAGEOFF]
Lloh11:
	adrp	x26, _NLSMapsAreInited@GOTPAGE
Lloh12:
	ldr	x26, [x26, _NLSMapsAreInited@GOTPAGEOFF]
Lloh13:
	adrp	x27, _MapsAreInited@GOTPAGE
Lloh14:
	ldr	x27, [x27, _MapsAreInited@GOTPAGEOFF]
Lloh15:
	adrp	x28, _NoNLSRebind@GOTPAGE
Lloh16:
	ldr	x28, [x28, _NoNLSRebind@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	mov	x9, #0
	ldrb	w10, [x8, x9]
	cbz	w10, LBB0_13
LBB0_11:                                ;   Parent Loop BB0_17 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w10, #61
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	strb	w10, [x20, x9]
	add	x9, x9, #1
	ldrb	w10, [x8, x9]
	cbnz	w10, LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
	strb	wzr, [x20, x9]
	ldr	x1, [x19]
	mov	x0, x20
	bl	_Gmatch
	cbnz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x22, #8]!
	cbnz	x8, LBB0_10
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_Unsetenv
	ldr	w1, [x24]
	mov	x0, x20
	bl	_eq
	cbz	x0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_17 Depth=1
	str	xzr, [x28]
	str	xzr, [x27]
	str	xzr, [x26]
	bl	_ed_InitMaps
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x22, [x23]
	ldr	x8, [x22]
	cbnz	x8, LBB0_10
LBB0_18:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19, #8]!
	cbnz	x8, LBB0_17
	b	LBB0_26
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_islocale_var
	cbz	x0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x21
	bl	_getenv
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	w8, #0
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=1
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cmp	x0, #0
	cset	w8, eq
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=1
	str	w8, [x25]
	str	xzr, [x26]
	bl	_ed_Init
	ldr	x8, [x27]
	cbz	x8, LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x26]
	cbnz	x8, LBB0_17
; %bb.25:                               ;   in Loop: Header=BB0_17 Depth=1
	bl	_ed_InitNLSMaps
	b	LBB0_17
LBB0_26:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_cleanup_until
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_STR_environ,8,3                ; @STR_environ
	.comm	_xfree,4,2                      ; @xfree
	.comm	_STRNOREBIND,4,2                ; @STRNOREBIND
	.comm	_NoNLSRebind,8,3                ; @NoNLSRebind
	.comm	_MapsAreInited,8,3              ; @MapsAreInited
	.comm	_NLSMapsAreInited,8,3           ; @NLSMapsAreInited
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LANG"

l_.str.1:                               ; @.str.1
	.asciz	"LC_CTYPE"

	.comm	_AsciiOnly,4,2                  ; @AsciiOnly
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.comm	_LC_COLLATE,4,2                 ; @LC_COLLATE
	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
	.comm	_LC_MESSAGES,4,2                ; @LC_MESSAGES
	.comm	_MB_CUR_MAX,4,2                 ; @MB_CUR_MAX
	.comm	_STRLSCOLORS,4,2                ; @STRLSCOLORS
	.comm	_STRLS_COLORS,4,2               ; @STRLS_COLORS
	.comm	_STRNLSPATH,4,2                 ; @STRNLSPATH
	.comm	_STRSYSTYPE,4,2                 ; @STRSYSTYPE
	.comm	_STRtcshlang,4,2                ; @STRtcshlang
	.comm	_dont_free,4,2                  ; @dont_free
.subsections_via_symbols
