	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setterm                        ## -- Begin function setterm
	.p2align	4, 0x90
_setterm:                               ## @setterm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_rootshell@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%rdi, %rdx
	movq	_el@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movq	_EL_TERMINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_el_set                         ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rootshell,8,3                  ## @rootshell
	.comm	_el,8,3                         ## @el
	.comm	_EL_TERMINAL,4,2                ## @EL_TERMINAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setterm                        ; -- Begin function setterm
	.p2align	2
_setterm:                               ; @setterm
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x8, _rootshell@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rootshell@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _el@GOTPAGE
Lloh4:
	ldr	x9, [x9, _el@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x9]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EL_TERMINAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EL_TERMINAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	b	_el_set
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_rootshell,8,3                  ; @rootshell
	.comm	_el,8,3                         ; @el
	.comm	_EL_TERMINAL,4,2                ; @EL_TERMINAL
.subsections_via_symbols
