	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_credential
_read_credential:                       ## @read_credential
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	leaq	-1072(%rbp), %r12
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%r12, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ebx
	movslq	%eax, %r14
	leaq	-1073(%rbp), %rax
	addq	%rax, %r14
	negl	%ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r14,%r15), %esi
	movq	%r13, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movb	$0, (%r14,%r15)
	decq	%r15
	cmpl	%r15d, %ebx
	jne	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, -1072(%rbp)
	je	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	$61, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rax
	incq	%rbx
	movb	$0, (%rax)
	movq	-1072(%rbp), %rax
	movabsq	$7813573208857080432, %rcx      ## imm = 0x6C6F636F746F7270
	xorq	%rcx, %rax
	movzbl	-1064(%rbp), %ecx
	orq	%rax, %rcx
	je	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-1072(%rbp), %eax
	movl	$1953722216, %ecx               ## imm = 0x74736F68
	xorl	%ecx, %eax
	movzbl	-1068(%rbp), %ecx
	orl	%eax, %ecx
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-1072(%rbp), %eax
	movl	$1752457584, %ecx               ## imm = 0x68746170
	xorl	%ecx, %eax
	movzbl	-1068(%rbp), %ecx
	orl	%eax, %ecx
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-1072(%rbp), %rax
	movabsq	$7308604897285731189, %rcx      ## imm = 0x656D616E72657375
	xorq	%rcx, %rax
	movzbl	-1064(%rbp), %ecx
	orq	%rax, %rcx
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-1072(%rbp), %rax
	movabsq	$7237970109966541168, %rcx      ## imm = 0x64726F7773736170
	xorq	%rcx, %rax
	movzbl	-1064(%rbp), %ecx
	orq	%rax, %rcx
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_utf8_to_utf16_dup
	movq	_protocol@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_utf8_to_utf16_dup
	movq	_host@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_utf8_to_utf16_dup
	movq	_path@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_utf8_to_utf16_dup
	movq	_wusername@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_utf8_to_utf16_dup
	movq	_password@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, (%rcx)
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_5
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad input: %s"

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

	.comm	_protocol,8,3                   ## @protocol
L_.str.3:                               ## @.str.3
	.asciz	"host"

	.comm	_host,8,3                       ## @host
L_.str.4:                               ## @.str.4
	.asciz	"path"

	.comm	_path,8,3                       ## @path
L_.str.5:                               ## @.str.5
	.asciz	"username"

	.comm	_wusername,8,3                  ## @wusername
L_.str.6:                               ## @.str.6
	.asciz	"password"

	.comm	_password,8,3                   ## @password
L_.str.7:                               ## @.str.7
	.asciz	"unrecognized input"

	.no_dead_strip	_read_credential
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_credential
_read_credential:                       ; @read_credential
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1056
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x23, _stdin@GOTPAGE
Lloh4:
	ldr	x23, [x23, _stdin@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x24, sp, #16
	add	x0, sp, #16
	mov	w1, #1024
	bl	_fgets
	cbz	x0, LBB0_21
; %bb.1:
	sub	x25, x24, #1
	mov	x26, #29296
	movk	x26, #29807, lsl #16
	movk	x26, #25455, lsl #32
	movk	x26, #27759, lsl #48
Lloh5:
	adrp	x27, _protocol@GOTPAGE
Lloh6:
	ldr	x27, [x27, _protocol@GOTPAGEOFF]
	mov	w28, #28520
	movk	w28, #29811, lsl #16
	mov	w20, #24944
	movk	w20, #26740, lsl #16
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_utf8_to_utf16_dup
	str	x0, [x27]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x23]
	add	x0, sp, #16
	mov	w1, #1024
	bl	_fgets
	cbz	x0, LBB0_21
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x0, sp, #16
	bl	_strlen
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	add	x19, x25, w0, sxtw
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w1, [x19]
	mov	x0, x21
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	strb	wzr, [x19], #-1
	subs	w22, w22, #1
	b.ne	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [sp, #16]
	cbz	w8, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	mov	w1, #61
	bl	_strchr
	mov	x22, x0
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x24, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x22], #1
	ldr	x8, [sp, #16]
	eor	x8, x8, x26
	ldrb	w9, [sp, #24]
	orr	x8, x8, x9
	cbz	x8, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #16]
	eor	w8, w8, w28
	ldrb	w9, [sp, #20]
	orr	w8, w8, w9
	cbz	w8, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #16]
	eor	w8, w8, w20
	ldrb	w9, [sp, #20]
	orr	w8, w8, w9
	cbz	w8, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	mov	x9, #29557
	movk	x9, #29285, lsl #16
	movk	x9, #24942, lsl #32
	movk	x9, #25965, lsl #48
	eor	x8, x8, x9
	ldrb	w9, [sp, #24]
	orr	x8, x8, x9
	cbz	x8, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	mov	x9, #24944
	movk	x9, #29555, lsl #16
	movk	x9, #28535, lsl #32
	movk	x9, #25714, lsl #48
	eor	x8, x8, x9
	ldrb	w9, [sp, #24]
	orr	x8, x8, x9
	cbz	x8, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x0, l_.str.7@PAGE
Lloh12:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_die
	b	LBB0_3
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_utf8_to_utf16_dup
Lloh13:
	adrp	x8, _host@GOTPAGE
Lloh14:
	ldr	x8, [x8, _host@GOTPAGEOFF]
Lloh15:
	str	x0, [x8]
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_utf8_to_utf16_dup
Lloh16:
	adrp	x8, _path@GOTPAGE
Lloh17:
	ldr	x8, [x8, _path@GOTPAGEOFF]
Lloh18:
	str	x0, [x8]
	b	LBB0_3
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_utf8_to_utf16_dup
Lloh19:
	adrp	x8, _wusername@GOTPAGE
Lloh20:
	ldr	x8, [x8, _wusername@GOTPAGEOFF]
Lloh21:
	str	x0, [x8]
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_utf8_to_utf16_dup
Lloh22:
	adrp	x8, _password@GOTPAGE
Lloh23:
	ldr	x8, [x8, _password@GOTPAGEOFF]
Lloh24:
	str	x0, [x8]
	b	LBB0_3
LBB0_21:
	ldur	x8, [x29, #-96]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	add	sp, sp, #1056
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad input: %s"

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

	.comm	_protocol,8,3                   ; @protocol
l_.str.3:                               ; @.str.3
	.asciz	"host"

	.comm	_host,8,3                       ; @host
l_.str.4:                               ; @.str.4
	.asciz	"path"

	.comm	_path,8,3                       ; @path
l_.str.5:                               ; @.str.5
	.asciz	"username"

	.comm	_wusername,8,3                  ; @wusername
l_.str.6:                               ; @.str.6
	.asciz	"password"

	.comm	_password,8,3                   ; @password
l_.str.7:                               ; @.str.7
	.asciz	"unrecognized input"

	.no_dead_strip	_read_credential
.subsections_via_symbols
