	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_login                          ## -- Begin function login
	.p2align	4, 0x90
_login:                                 ## @login
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$392, %rsp                      ## imm = 0x188
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	movaps	%xmm0, -288(%rbp)
	movaps	%xmm0, -304(%rbp)
	movaps	%xmm0, -320(%rbp)
	movaps	%xmm0, -336(%rbp)
	movaps	%xmm0, -352(%rbp)
	movaps	%xmm0, -368(%rbp)
	movaps	%xmm0, -384(%rbp)
	movaps	%xmm0, -400(%rbp)
	leaq	-144(%rbp), %rdi
	leaq	-272(%rbp), %rdx
	movl	$128, %esi
	movl	$128, %ecx
	callq	_db_auth_get_selected
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	-400(%rbp), %rdi
	leaq	-272(%rbp), %rcx
	movl	$128, %esi
	movq	%rbx, %rdx
	callq	_get_access_token
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	leaq	-144(%rbp), %rdi
	leaq	-400(%rbp), %rsi
	jmp	LBB0_6
LBB0_4:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_5
LBB0_3:
	leaq	L_str.5(%rip), %rdi
LBB0_5:
	callq	_puts
	leaq	L_.str.3(%rip), %rdi
	movq	%rdi, %rsi
LBB0_6:
	callq	_client_login
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$392, %rsp                      ## imm = 0x188
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Contacting login server for username: %s\n"

L_.str.3:                               ## @.str.3
	.space	1

L_str:                                  ## @str
	.asciz	"Logging in anonymously"

L_str.5:                                ## @str.5
	.asciz	"Failed to authenticate with the login server"

L_str.6:                                ## @str.6
	.asciz	"Successfully authenticated with the login server"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_login                          ; -- Begin function login
	.p2align	2
_login:                                 ; @login
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #448
	.cfi_def_cfa_offset 448
	stp	x20, x19, [sp, #416]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #432]            ; 16-byte Folded Spill
	add	x29, sp, #432
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x29, #-64]
	stp	q0, q0, [x29, #-96]
	stp	q0, q0, [x29, #-128]
	stp	q0, q0, [x29, #-160]
	stp	q0, q0, [sp, #240]
	stp	q0, q0, [sp, #208]
	stp	q0, q0, [sp, #176]
	stp	q0, q0, [sp, #144]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	sub	x19, x29, #160
	sub	x0, x29, #160
	add	x2, sp, #144
	mov	w1, #128
	mov	w3, #128
	bl	_db_auth_get_selected
	cbz	x0, LBB0_3
; %bb.1:
	str	x19, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	add	x0, sp, #16
	sub	x2, x29, #160
	add	x3, sp, #144
	mov	w1, #128
	bl	_get_access_token
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_str.6@PAGE
Lloh6:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	sub	x0, x29, #160
	add	x1, sp, #16
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_str.5@PAGE
Lloh10:
	add	x0, x0, l_str.5@PAGEOFF
LBB0_5:
	bl	_puts
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x0
LBB0_6:
	bl	_client_login
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #432]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #416]            ; 16-byte Folded Reload
	add	sp, sp, #448
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Contacting login server for username: %s\n"

l_.str.3:                               ; @.str.3
	.space	1

l_str:                                  ; @str
	.asciz	"Logging in anonymously"

l_str.5:                                ; @str.5
	.asciz	"Failed to authenticate with the login server"

l_str.6:                                ; @str.6
	.asciz	"Successfully authenticated with the login server"

.subsections_via_symbols
