	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dotermname                     ## -- Begin function dotermname
	.p2align	4, 0x90
_dotermname:                            ## @dotermname
	.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
	subq	$2056, %rsp                     ## imm = 0x808
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	%rsi, %rdi
	callq	_USE
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_short2str
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
LBB0_3:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	leaq	-2064(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_tgetent
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_xprintf
	movq	_STRstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STR0@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_STRstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VAR_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_11
## %bb.5:
	addq	$2056, %rsp                     ## imm = 0x808
	popq	%rbx
	popq	%rbp
	jmp	_setcopy                        ## TAILCALL
LBB0_8:
	movq	_STRstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STR1@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	_VAR_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_setcopy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$2056, %rsp                     ## imm = 0x808
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TERM"

	.comm	_STRstatus,4,2                  ## @STRstatus
	.comm	_STR1,4,2                       ## @STR1
	.comm	_VAR_READWRITE,4,2              ## @VAR_READWRITE
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.comm	_STR0,4,2                       ## @STR0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dotermname                     ; -- Begin function dotermname
	.p2align	2
_dotermname:                            ; @dotermname
	.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
	sub	sp, sp, #2064
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	x0, x1
	bl	_USE
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_short2str
	mov	x19, x0
	cbz	x0, LBB0_5
LBB0_2:
	add	x0, sp, #8
	mov	x1, x19
	bl	_tgetent
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_xprintf
Lloh5:
	adrp	x8, _STRstatus@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STRstatus@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _STR0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STR0@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbnz	x0, LBB0_2
LBB0_5:
Lloh12:
	adrp	x8, _STRstatus@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STRstatus@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _STR1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STR1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _VAR_READWRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VAR_READWRITE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldur	x8, [x29, #-24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.6:
	add	sp, sp, #2064
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_setcopy
LBB0_7:
Lloh24:
	adrp	x8, _STRstatus@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STRstatus@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _STR1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STR1@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _VAR_READWRITE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VAR_READWRITE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	bl	_setcopy
	ldur	x8, [x29, #-24]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #2064
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TERM"

	.comm	_STRstatus,4,2                  ; @STRstatus
	.comm	_STR1,4,2                       ; @STR1
	.comm	_VAR_READWRITE,4,2              ; @VAR_READWRITE
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.comm	_STR0,4,2                       ; @STR0
.subsections_via_symbols
