	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_auth
_query_auth:                            ## @query_auth
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movl	16(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	24(%rbx), %rdi
	movq	_stdin@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$8, %esi
	callq	_fgets
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_35
## %bb.1:
	movq	24(%rbx), %rdi
	callq	_strlen
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movl	%eax, %ecx
	testb	$1, %al
	jne	LBB0_7
## %bb.3:
	movq	24(%rbx), %rsi
	movb	(%rsi,%rcx), %dl
	cmpb	$13, %dl
	je	LBB0_5
## %bb.4:
	cmpb	$10, %dl
	jne	LBB0_6
LBB0_5:
	movb	$0, (%rsi,%rcx)
LBB0_6:
	decq	%rcx
LBB0_7:
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	addq	$2, %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	$0, -3(%rax,%rcx)
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$-2, %rcx
	cmpq	$1, %rcx
	jle	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movzbl	-2(%rax,%rcx), %edx
	cmpb	$13, %dl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$10, %dl
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	$0, -2(%rax,%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%rbx), %rax
	movzbl	-3(%rax,%rcx), %edx
	cmpb	$13, %dl
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$10, %dl
	je	LBB0_14
	jmp	LBB0_15
LBB0_16:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-48(%rbp), %rsi
	callq	_tcgetattr
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	32(%rbx), %rdi
	movl	(%r15), %edx
	movl	$8, %esi
	callq	_fgets
	movq	%rax, %r15
	testq	%r15, %r15
	jne	LBB0_20
	jmp	LBB0_35
LBB0_17:
	movl	-48(%rbp), %r12d
	movq	_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r12d, %eax
	movq	_ECHONL@GOTPCREL(%rip), %rcx
	movq	_ICANON@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, -48(%rbp)
	movl	(%r13), %edi
	movq	_TCSAFLUSH@GOTPCREL(%rip), %rax
	movq	_TCSASOFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_tcsetattr
	movq	32(%rbx), %rdi
	movl	(%r15), %edx
	movl	$8, %esi
	callq	_fgets
	movq	%rax, %r15
	movl	%r12d, -48(%rbp)
	movl	(%r13), %edi
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movq	_TCSASOFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_tcsetattr
	testq	%r15, %r15
	je	LBB0_35
LBB0_20:
	movq	32(%rbx), %rdi
	callq	_strlen
	xorl	%r14d, %r14d
	testl	%eax, %eax
	js	LBB0_35
## %bb.21:
	movl	%eax, %ecx
	testb	$1, %al
	jne	LBB0_26
## %bb.22:
	movq	32(%rbx), %rsi
	movb	(%rsi,%rcx), %dl
	cmpb	$13, %dl
	je	LBB0_24
## %bb.23:
	cmpb	$10, %dl
	jne	LBB0_25
LBB0_24:
	movb	$0, (%rsi,%rcx)
LBB0_25:
	decq	%rcx
LBB0_26:
	testl	%eax, %eax
	je	LBB0_35
## %bb.27:
	addq	$2, %rcx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_28 Depth=1
	movb	$0, -3(%rax,%rcx)
LBB0_34:                                ##   in Loop: Header=BB0_28 Depth=1
	addq	$-2, %rcx
	cmpq	$1, %rcx
	jle	LBB0_35
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	movzbl	-2(%rax,%rcx), %edx
	cmpb	$13, %dl
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpb	$10, %dl
	jne	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	movb	$0, -2(%rax,%rcx)
LBB0_31:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	32(%rbx), %rax
	movzbl	-3(%rax,%rcx), %edx
	cmpb	$13, %dl
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpb	$10, %dl
	je	LBB0_33
	jmp	LBB0_34
LBB0_35:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Authentication required for <%s://%s:%d/>!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Login: "

	.comm	_stdin,4,2                      ## @stdin
L_.str.2:                               ## @.str.2
	.asciz	"Password: "

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_ECHONL,4,2                     ## @ECHONL
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_TCSAFLUSH,4,2                  ## @TCSAFLUSH
	.comm	_TCSASOFT,4,2                   ## @TCSASOFT
	.comm	_TCSANOW,4,2                    ## @TCSANOW
	.no_dead_strip	_query_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_auth
_query_auth:                            ; @query_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x21, _stderr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	ldr	w0, [x21]
	ldp	x8, x9, [x19]
	ldr	w10, [x19, #16]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x0, [x19, #24]
Lloh6:
	adrp	x20, _stdin@GOTPAGE
Lloh7:
	ldr	x20, [x20, _stdin@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_fgets
	cbz	x0, LBB0_15
; %bb.1:
	ldr	x0, [x19, #24]
	bl	_strlen
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	w8, w0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x9, x8, #1
	cmp	x8, #0
	mov	x8, x9
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldrb	w10, [x9, x8]
	cmp	w10, #13
	ccmp	w10, #10, #4, ne
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x9, x8]
	b	LBB0_3
LBB0_6:
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh10:
	adrp	x21, _STDIN_FILENO@GOTPAGE
Lloh11:
	ldr	x21, [x21, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #24
	bl	_tcgetattr
	cbz	x0, LBB0_14
; %bb.7:
	ldr	x0, [x19, #32]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_fgets
	mov	x20, x0
	cbz	x20, LBB0_15
LBB0_8:
	ldr	x0, [x19, #32]
	bl	_strlen
	tbnz	w0, #31, LBB0_13
; %bb.9:
	mov	w8, w0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x9, x8, #1
	cmp	x8, #0
	mov	x8, x9
	b.le	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	ldrb	w10, [x9, x8]
	cmp	w10, #13
	ccmp	w10, #10, #4, ne
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	strb	wzr, [x9, x8]
	b	LBB0_10
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
	ldr	w22, [sp, #24]
Lloh12:
	adrp	x8, _ECHO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ECHO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w8, w22, w8
Lloh15:
	adrp	x9, _ECHONL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ECHONL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _ICANON@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ICANON@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [sp, #24]
Lloh21:
	adrp	x8, _TCSAFLUSH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TCSAFLUSH@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x23, _TCSASOFT@GOTPAGE
Lloh25:
	ldr	x23, [x23, _TCSASOFT@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w9, w8
	add	x2, sp, #24
	bl	_tcsetattr
	ldr	x0, [x19, #32]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_fgets
	mov	x20, x0
	str	w22, [sp, #24]
	ldr	w0, [x21]
Lloh26:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w1, w9, w8
	add	x2, sp, #24
	bl	_tcsetattr
	cbnz	x20, LBB0_8
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Authentication required for <%s://%s:%d/>!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Login: "

	.comm	_stdin,4,2                      ; @stdin
l_.str.2:                               ; @.str.2
	.asciz	"Password: "

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_ECHONL,4,2                     ; @ECHONL
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_TCSAFLUSH,4,2                  ; @TCSAFLUSH
	.comm	_TCSASOFT,4,2                   ; @TCSASOFT
	.comm	_TCSANOW,4,2                    ; @TCSANOW
	.no_dead_strip	_query_auth
.subsections_via_symbols
