	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shlvl                          ## -- Begin function shlvl
	.p2align	4, 0x90
_shlvl:                                 ## @shlvl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_loginsh@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	$0, (%rcx)
	jne	LBB0_6
## %bb.2:
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, %rdi
	addl	%ebx, %edi
	testl	%edi, %edi
	jle	LBB0_3
LBB0_6:
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_Itoa
	movq	%rax, %rbx
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cleanup_push
	movq	_STRshlvl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VAR_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_setv
	movq	%rbx, %rdi
	callq	_cleanup_ignore
	movq	%rbx, %rdi
	callq	_cleanup_until
	movq	_STRKSHLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	jmp	LBB0_8
LBB0_7:
	movq	_STRshlvl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STR1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_VAR_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_setcopy
	movq	_STRKSHLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tsetenv                        ## TAILCALL
LBB0_3:
	movq	_STRshlvl@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_adrof
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	callq	_unsetv
LBB0_5:
	movq	_STRKSHLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Unsetenv                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHLVL"

	.comm	_loginsh,8,3                    ## @loginsh
	.comm	_STRshlvl,4,2                   ## @STRshlvl
	.comm	_STRKSHLVL,4,2                  ## @STRKSHLVL
	.comm	_xfree,4,2                      ## @xfree
	.comm	_VAR_READWRITE,4,2              ## @VAR_READWRITE
	.comm	_STR1,8,3                       ## @STR1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shlvl                          ; -- Begin function shlvl
	.p2align	2
_shlvl:                                 ; @shlvl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _loginsh@GOTPAGE
Lloh3:
	ldr	x8, [x8, _loginsh@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _STRshlvl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STRshlvl@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x19, _STR1@GOTPAGE
Lloh9:
	ldr	x19, [x19, _STR1@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh10:
	adrp	x8, _VAR_READWRITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VAR_READWRITE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_setcopy
Lloh13:
	adrp	x8, _STRKSHLVL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STRKSHLVL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x1, [x19]
	b	LBB0_6
LBB0_4:
	bl	_atoi
	add	w0, w0, w19
	cmp	w0, #0
	b.le	LBB0_7
LBB0_5:
	mov	w1, #0
	mov	w2, #0
	bl	_Itoa
	mov	x19, x0
Lloh16:
	adrp	x8, _xfree@GOTPAGE
Lloh17:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_cleanup_push
Lloh19:
	adrp	x8, _STRshlvl@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STRshlvl@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _VAR_READWRITE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VAR_READWRITE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_setv
	mov	x0, x19
	bl	_cleanup_ignore
	mov	x0, x19
	bl	_cleanup_until
Lloh25:
	adrp	x8, _STRKSHLVL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _STRKSHLVL@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	x1, x19
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tsetenv
LBB0_7:
Lloh28:
	adrp	x19, _STRshlvl@GOTPAGE
Lloh29:
	ldr	x19, [x19, _STRshlvl@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_adrof
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19]
	bl	_unsetv
LBB0_9:
Lloh30:
	adrp	x8, _STRKSHLVL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _STRKSHLVL@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Unsetenv
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHLVL"

	.comm	_loginsh,8,3                    ; @loginsh
	.comm	_STRshlvl,4,2                   ; @STRshlvl
	.comm	_STRKSHLVL,4,2                  ; @STRKSHLVL
	.comm	_xfree,4,2                      ; @xfree
	.comm	_VAR_READWRITE,4,2              ; @VAR_READWRITE
	.comm	_STR1,8,3                       ; @STR1
.subsections_via_symbols
