	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getpass                        ## -- Begin function getpass
	.p2align	4, 0x90
_getpass:                               ## @getpass
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_STD_INPUT_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStdHandle
	movq	%rax, %r12
	movq	_STD_ERROR_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStdHandle
	movq	%rax, %r14
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
	cmpq	%rax, %r12
	je	LBB0_19
## %bb.1:
	cmpq	%rax, %r14
	je	LBB0_19
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_WriteFile
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%r12, %rdi
	callq	_GetFileType
	movq	_FILE_TYPE_CHAR@GOTPCREL(%rip), %rcx
	movl	$3, %r13d
	cmpq	(%rcx), %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.4:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_GetConsoleMode
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_ENABLE_LINE_INPUT@GOTPCREL(%rip), %rax
	movq	_ENABLE_PROCESSED_INPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_SetConsoleMode
	movl	$2, %r13d
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_7:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movl	$0, -48(%rbp)
	leaq	-68(%rbp), %r14
	leaq	_getpass.input(%rip), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$3, %ecx
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_ReadFile
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	-41(%rbp), %eax
	movl	%r13d, %ecx
	cmpb	$13, %al
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$10, %al
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-48(%rbp), %edx
	xorl	%ecx, %ecx
	cmpq	$254, %rdx
	ja	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%rdx), %esi
	movl	%esi, -48(%rbp)
	movb	%al, (%rdx,%r15)
	jmp	LBB0_9
LBB0_15:
	movslq	-48(%rbp), %rax
	movb	$0, (%rax,%r15)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_WriteFile
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movl	-56(%rbp), %esi
	movq	%r12, %rdi
	callq	_SetConsoleMode
LBB0_17:
	testl	%ebx, %ebx
	jne	LBB0_19
LBB0_18:
	xorl	%r15d, %r15d
LBB0_19:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getpass.input,256,4 ## @getpass.input
	.comm	_STD_INPUT_HANDLE,4,2           ## @STD_INPUT_HANDLE
	.comm	_STD_ERROR_HANDLE,4,2           ## @STD_ERROR_HANDLE
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_FILE_TYPE_CHAR,8,3             ## @FILE_TYPE_CHAR
	.comm	_ENABLE_LINE_INPUT,4,2          ## @ENABLE_LINE_INPUT
	.comm	_ENABLE_PROCESSED_INPUT,4,2     ## @ENABLE_PROCESSED_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getpass                        ; -- Begin function getpass
	.p2align	2
_getpass:                               ; @getpass
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, _STD_INPUT_HANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STD_INPUT_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_GetStdHandle
	mov	x19, x0
Lloh3:
	adrp	x8, _STD_ERROR_HANDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STD_ERROR_HANDLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_GetStdHandle
Lloh6:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x19, x8
	ccmp	x0, x8, #4, ne
	b.eq	LBB0_18
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	x4, #0
	bl	_WriteFile
	cbz	x0, LBB0_18
; %bb.2:
	mov	x0, x19
	bl	_GetFileType
Lloh9:
	adrp	x8, _FILE_TYPE_CHAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILE_TYPE_CHAR@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_GetConsoleMode
	cbz	x0, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _ENABLE_LINE_INPUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENABLE_LINE_INPUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ENABLE_PROCESSED_INPUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ENABLE_PROCESSED_INPUT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_SetConsoleMode
	mov	w23, #2
	mov	w22, #1
	b	LBB0_6
LBB0_5:
	mov	w22, #0
	mov	w23, #3
LBB0_6:
	str	wzr, [sp, #12]
Lloh18:
	adrp	x24, _getpass.input@PAGE
Lloh19:
	add	x24, x24, _getpass.input@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #0
	add	w11, w10, #1
	str	w11, [sp, #12]
	strb	w8, [x24, x10]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	w9, #3
	b.eq	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #3
	add	x3, sp, #4
	mov	x0, x19
	mov	w2, #1
	mov	x4, #0
	bl	_ReadFile
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [sp, #3]
	mov	x9, x23
	cmp	w8, #13
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #10
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [sp, #12]
	cmp	w10, #254
	b.ls	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #0
	b	LBB0_8
LBB0_14:
	ldrsw	x8, [sp, #12]
	strb	wzr, [x24, x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #12
	mov	x0, x20
	mov	w2, #2
	mov	x4, #0
	bl	_WriteFile
	cbz	w22, LBB0_16
; %bb.15:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_SetConsoleMode
LBB0_16:
	cbz	w21, LBB0_18
; %bb.17:
Lloh22:
	adrp	x0, _getpass.input@PAGE
Lloh23:
	add	x0, x0, _getpass.input@PAGEOFF
	b	LBB0_19
LBB0_18:
	mov	x0, #0
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getpass.input,256,0 ; @getpass.input
	.comm	_STD_INPUT_HANDLE,4,2           ; @STD_INPUT_HANDLE
	.comm	_STD_ERROR_HANDLE,4,2           ; @STD_ERROR_HANDLE
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_FILE_TYPE_CHAR,8,3             ; @FILE_TYPE_CHAR
	.comm	_ENABLE_LINE_INPUT,4,2          ; @ENABLE_LINE_INPUT
	.comm	_ENABLE_PROCESSED_INPUT,4,2     ; @ENABLE_PROCESSED_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

.subsections_via_symbols
