	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function credential_read
_credential_read:                       ## @credential_read
	.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, %r14
	movl	$1024, %edi                     ## imm = 0x400
	callq	_gnome_keyring_memory_alloc
	movq	%rax, %rbx
	movq	_stdin@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rax, %rdi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%r14), %rdi
	callq	_g_free
	movq	%r13, %rdi
	callq	_g_strdup
	movq	%rax, 40(%r14)
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edx
	movq	%rbx, %rdi
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movl	$1024, %esi                     ## imm = 0x400
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$10, -1(%rbx,%rax)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rax
	movb	$0, (%rbx,%rax)
	je	LBB0_21
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r12
	leaq	1(%rax), %r13
	movb	$0, (%rax)
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	callq	_gnome_keyring_memory_free
	movq	%r13, %rdi
	callq	_gnome_keyring_memory_strdup
	movq	%rax, (%r14)
	cmpb	$0, (%r13)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %r12
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movb	$0, -1(%r12)
	cmpb	$0, (%r12)
	leaq	1(%r12), %r12
	jne	LBB0_19
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%r14), %rdi
	callq	_g_free
	movq	%r13, %rdi
	callq	_g_strdup
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	incq	%rdi
	movb	$0, (%rax)
	callq	_atoi
	movl	%eax, 24(%r14)
	jmp	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r14), %rdi
	callq	_g_free
	movq	%r13, %rdi
	callq	_g_strdup
	movq	%rax, 16(%r14)
	jmp	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rdi
	callq	_g_free
	movq	%r13, %rdi
	callq	_g_strdup
	movq	%rax, 8(%r14)
	jmp	LBB0_20
LBB0_21:
	movq	%rbx, %rdi
	callq	_gnome_keyring_memory_free
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_g_warning
	movq	%rbx, %rdi
	callq	_gnome_keyring_memory_free
	movl	$-1, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid credential line: %s"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"path"

L_.str.4:                               ## @.str.4
	.asciz	"username"

L_.str.5:                               ## @.str.5
	.asciz	"password"

	.no_dead_strip	_credential_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function credential_read
_credential_read:                       ; @credential_read
	.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
	mov	x20, x0
	mov	w0, #1024
	bl	_gnome_keyring_memory_alloc
	mov	x19, x0
Lloh0:
	adrp	x28, _stdin@GOTPAGE
Lloh1:
	ldr	x28, [x28, _stdin@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	w1, #1024
	bl	_fgets
	cbz	x0, LBB0_20
; %bb.1:
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh6:
	adrp	x23, l_.str.3@PAGE
Lloh7:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh8:
	adrp	x24, l_.str.4@PAGE
Lloh9:
	add	x24, x24, l_.str.4@PAGEOFF
Lloh10:
	adrp	x25, l_.str.5@PAGE
Lloh11:
	add	x25, x25, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #40]
	bl	_g_free
	mov	x0, x26
	bl	_g_strdup
	str	x0, [x20, #40]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x28]
	mov	x0, x19
	mov	w1, #1024
	bl	_fgets
	cbz	x0, LBB0_20
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	mov	x0, x19
	bl	_strlen
	cbz	x0, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x0, #1
	ldrb	w9, [x19, x8]
	cmp	w9, #10
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x19, x8]
	cbz	x8, LBB0_20
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	mov	x26, x0
	strb	wzr, [x26], #1
	mov	x0, x19
	mov	x1, x21
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_strcmp
	cbnz	w0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20]
	bl	_gnome_keyring_memory_free
	mov	x0, x26
	bl	_gnome_keyring_memory_strdup
	str	x0, [x20]
	ldrb	w8, [x26]
	cbz	w8, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x27, #2
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sturb	wzr, [x8, #-1]
	ldrb	w9, [x8], #1
	cbnz	w9, LBB0_15
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #32]
	bl	_g_free
	mov	x0, x26
	bl	_g_strdup
	str	x0, [x20, #32]
	mov	w1, #58
	bl	_strrchr
	cbz	x0, LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x0], #1
	bl	_atoi
	str	w0, [x20, #24]
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #16]
	bl	_g_free
	mov	x0, x26
	bl	_g_strdup
	str	x0, [x20, #16]
	b	LBB0_3
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #8]
	bl	_g_free
	mov	x0, x26
	bl	_g_strdup
	str	x0, [x20, #8]
	b	LBB0_3
LBB0_20:
	mov	x0, x19
	bl	_gnome_keyring_memory_free
	mov	w0, #0
LBB0_21:
	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_22:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_g_warning
	mov	x0, x19
	bl	_gnome_keyring_memory_free
	mov	w0, #-1
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid credential line: %s"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"path"

l_.str.4:                               ; @.str.4
	.asciz	"username"

l_.str.5:                               ; @.str.5
	.asciz	"password"

	.no_dead_strip	_credential_read
.subsections_via_symbols
