	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_PlatformInit               ## -- Begin function Sys_PlatformInit
	.p2align	4, 0x90
_Sys_PlatformInit:                      ## @Sys_PlatformInit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_Sys_SetFloatEnv
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_5
LBB0_2:
	movl	$1, %ebx
LBB0_5:
	movq	_stdinIsATTY@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TERM"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
L_.str.1:                               ## @.str.1
	.asciz	"raw"

L_.str.2:                               ## @.str.2
	.asciz	"dumb"

	.comm	_stdinIsATTY,4,2                ## @stdinIsATTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_PlatformInit               ; -- Begin function Sys_PlatformInit
	.p2align	2
_Sys_PlatformInit:                      ; @Sys_PlatformInit
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
	bl	_Sys_SetFloatEnv
Lloh2:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_isatty
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x19, LBB0_5
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cmp	w0, #0
	cset	w8, ne
	b	LBB0_6
LBB0_4:
	mov	w8, #0
	b	LBB0_6
LBB0_5:
	mov	w8, #1
LBB0_6:
Lloh9:
	adrp	x9, _stdinIsATTY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _stdinIsATTY@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TERM"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
l_.str.1:                               ; @.str.1
	.asciz	"raw"

l_.str.2:                               ; @.str.2
	.asciz	"dumb"

	.comm	_stdinIsATTY,4,2                ; @stdinIsATTY
.subsections_via_symbols
