	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doLogin
_doLogin:                               ## @doLogin
	.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
	movq	8(%rdi), %rbx
	movl	$3, %edi
	callq	_debug_called
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
LBB0_3:
	movq	_SN_PHASE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ecx
	movl	%ecx, 16(%r14)
	cmpq	$0, 24(%r14)
	je	LBB0_6
## %bb.5:
	movq	$0, 24(%r14)
	movq	_SESS_NEGODONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_6:
	movl	$10, %r12d
	movl	$-1, %r13d
	movq	_FF_PHASE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$3, %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_debug
	movq	%r14, %rdi
	callq	_loginPhase
	movl	%eax, %ebx
	subl	$1, %r12d
	cmovbl	%r13d, %ebx
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r14), %ecx
	cmpl	(%r15), %ecx
	jne	LBB0_7
## %bb.9:
	movq	_SESS_INITIALLOGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_debug
	movq	_SESS_LOGGEDIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_doDiscovery
LBB0_11:
	movq	_T5@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	movq	_SESS_INITIALLOGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$3, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_debug
	cmpl	$1, %ebx
	je	LBB0_18
## %bb.13:
	cmpl	$3, %ebx
	jne	LBB0_17
## %bb.14:
	movl	$5, %edi
	callq	_sleep
	jmp	LBB0_15
LBB0_18:
	movq	_SESS_NEGODONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r14), %eax
	movl	%eax, (%r14)
	movq	_SESS_REDIRECT@GOTPCREL(%rip), %rcx
	movq	_SESS_INITIALLOGIN1@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, (%r14)
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_syslog
LBB0_15:
	movq	_T7@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_LON_PHASE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_LON_PHASE,4,2                  ## @LON_PHASE
	.comm	_SN_PHASE,4,2                   ## @SN_PHASE
	.comm	_SESS_NEGODONE,4,2              ## @SESS_NEGODONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"count=%d csg=%d"

	.comm	_FF_PHASE,4,2                   ## @FF_PHASE
	.comm	_SESS_INITIALLOGIN,4,2          ## @SESS_INITIALLOGIN
L_.str.1:                               ## @.str.1
	.asciz	"status=%d"

	.comm	_SESS_LOGGEDIN,4,2              ## @SESS_LOGGEDIN
L_.str.2:                               ## @.str.2
	.asciz	"Discovery"

	.comm	_T5,4,2                         ## @T5
	.comm	_SESS_REDIRECT,4,2              ## @SESS_REDIRECT
	.comm	_SESS_INITIALLOGIN1,4,2         ## @SESS_INITIALLOGIN1
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"target sent REDIRECT"

	.comm	_T7,4,2                         ## @T7
	.no_dead_strip	_doLogin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doLogin
_doLogin:                               ; @doLogin
	.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	x19, x0
	ldr	x20, [x0, #8]
	mov	w0, #3
	bl	_debug_called
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
LBB0_2:
Lloh0:
	adrp	x8, _SN_PHASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SN_PHASE@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_5
; %bb.4:
	str	xzr, [x19, #24]
Lloh2:
	adrp	x9, _SESS_NEGODONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SESS_NEGODONE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
LBB0_5:
	mov	w20, #10
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
Lloh7:
	adrp	x23, _FF_PHASE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _FF_PHASE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [sp]
	mov	w0, #3
	mov	x1, x21
	mov	x2, x20
	bl	_debug
	mov	x0, x19
	bl	_loginPhase
	cmp	w20, #0
	csinv	w22, w0, wzr, ne
	cbnz	w22, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w20, w20, #1
	ldr	w8, [x19, #16]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.8:
Lloh9:
	adrp	x8, _SESS_INITIALLOGIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SESS_INITIALLOGIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	w2, #0
	bl	_debug
Lloh14:
	adrp	x8, _SESS_LOGGEDIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SESS_LOGGEDIN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_doDiscovery
LBB0_10:
Lloh19:
	adrp	x8, _T5@GOTPAGE
Lloh20:
	ldr	x8, [x8, _T5@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
Lloh21:
	adrp	x8, _SESS_INITIALLOGIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SESS_INITIALLOGIN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x2, x22
	bl	_debug
	cmp	w22, #1
	b.eq	LBB0_14
; %bb.12:
	cmp	w22, #3
	b.ne	LBB0_18
; %bb.13:
	mov	w0, #5
	bl	_sleep
	b	LBB0_15
LBB0_14:
Lloh26:
	adrp	x8, _SESS_NEGODONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SESS_NEGODONE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh29:
	adrp	x9, _SESS_REDIRECT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SESS_REDIRECT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _SESS_INITIALLOGIN1@GOTPAGE
Lloh33:
	ldr	x10, [x10, _SESS_INITIALLOGIN1@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x19]
Lloh35:
	adrp	x8, _LOG_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_syslog
LBB0_15:
Lloh40:
	adrp	x8, _T7@GOTPAGE
Lloh41:
	ldr	x8, [x8, _T7@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
LBB0_17:
	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
LBB0_18:
	mov	w0, #0
	b	LBB0_17
LBB0_19:
Lloh42:
	adrp	x8, _LON_PHASE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _LON_PHASE@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_LON_PHASE,4,2                  ; @LON_PHASE
	.comm	_SN_PHASE,4,2                   ; @SN_PHASE
	.comm	_SESS_NEGODONE,4,2              ; @SESS_NEGODONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"count=%d csg=%d"

	.comm	_FF_PHASE,4,2                   ; @FF_PHASE
	.comm	_SESS_INITIALLOGIN,4,2          ; @SESS_INITIALLOGIN
l_.str.1:                               ; @.str.1
	.asciz	"status=%d"

	.comm	_SESS_LOGGEDIN,4,2              ; @SESS_LOGGEDIN
l_.str.2:                               ; @.str.2
	.asciz	"Discovery"

	.comm	_T5,4,2                         ; @T5
	.comm	_SESS_REDIRECT,4,2              ; @SESS_REDIRECT
	.comm	_SESS_INITIALLOGIN1,4,2         ; @SESS_INITIALLOGIN1
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"target sent REDIRECT"

	.comm	_T7,4,2                         ; @T7
	.no_dead_strip	_doLogin
.subsections_via_symbols
