	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handleLoginResp
_handleLoginResp:                       ## @handleLoginResp
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	20(%rsi), %edi
	callq	_ntohs
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_debug_called
	movl	4(%r15), %r8d
	movl	8(%r15), %edx
	movl	16(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_debug
	movl	%ebx, %r13d
	sarl	$8, %r13d
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movzbl	%bl, %eax
	cmpl	$3, %r13d
	je	LBB0_16
## %bb.2:
	cmpl	$2, %r13d
	je	LBB0_12
## %bb.3:
	cmpl	$1, %r13d
	jne	LBB0_11
## %bb.4:
	decb	%bl
	movl	$1, %r12d
	cmpb	$2, %bl
	jae	LBB0_15
LBB0_5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_processParams
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_setOptions
	cmpq	$0, 8(%r15)
	je	LBB0_11
## %bb.6:
	movl	4(%r14), %eax
	movq	_SN_PHASE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.7:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_handleTgtResp
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_15
LBB0_9:
	movl	4(%r15), %eax
	movl	%eax, 4(%r14)
	movq	_FF_PHASE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	movl	(%r15), %edx
	movl	%edx, (%r14)
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_debug
LBB0_11:
	movl	%r13d, %r12d
	jmp	LBB0_15
LBB0_12:
	movq	_CLASS1_ERRS@GOTPCREL(%rip), %rcx
	movl	$2, %r12d
	cmpl	(%rcx), %eax
	jge	LBB0_15
## %bb.13:
	movq	_status_class1@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_16:
	movq	_CLASS3_ERRS@GOTPCREL(%rip), %rcx
	movl	$3, %r12d
	cmpl	(%rcx), %eax
	jge	LBB0_15
## %bb.17:
	movq	_status_class3@GOTPCREL(%rip), %rcx
LBB0_14:
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tbit=%d csg=%d nsg=%d status=%x"

	.comm	_CLASS1_ERRS,4,2                ## @CLASS1_ERRS
L_.str.1:                               ## @.str.1
	.asciz	"0x%04x: %s\n"

	.comm	_status_class1,8,3              ## @status_class1
	.comm	_CLASS3_ERRS,4,2                ## @CLASS3_ERRS
	.comm	_status_class3,8,3              ## @status_class3
	.comm	_SN_PHASE,4,2                   ## @SN_PHASE
	.comm	_FF_PHASE,4,2                   ## @FF_PHASE
L_.str.2:                               ## @.str.2
	.asciz	"TSIH=%x"

	.no_dead_strip	_handleLoginResp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handleLoginResp
_handleLoginResp:                       ; @handleLoginResp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x1, #20]
	bl	_ntohs
	mov	x22, x0
	mov	w0, #3
	bl	_debug_called
	ldr	w8, [x21, #16]
	ldp	w9, w2, [x21, #4]
	stp	x9, x22, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_debug
	asr	w19, w22, #8
	cbz	w22, LBB0_5
; %bb.1:
	and	w8, w22, #0xff
	cmp	w19, #3
	b.eq	LBB0_12
; %bb.2:
	cmp	w19, #2
	b.eq	LBB0_15
; %bb.3:
	cmp	w19, #1
	b.ne	LBB0_18
; %bb.4:
	and	w8, w22, #0xff
	sub	w8, w8, #1
	cmp	w8, #2
	b.hs	LBB0_9
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_processParams
	mov	x0, x20
	mov	w1, #0
	bl	_setOptions
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_18
; %bb.6:
	ldr	w8, [x20, #4]
Lloh2:
	adrp	x9, _SN_PHASE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SN_PHASE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_handleTgtResp
	cbz	x0, LBB0_10
LBB0_9:
	mov	w19, #1
	b	LBB0_18
LBB0_10:
	ldr	w8, [x21, #4]
	str	w8, [x20, #4]
Lloh5:
	adrp	x9, _FF_PHASE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FF_PHASE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.11:
	ldr	w2, [x21]
	str	w2, [x20]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_debug
	b	LBB0_18
LBB0_12:
Lloh10:
	adrp	x9, _CLASS3_ERRS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CLASS3_ERRS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_14
; %bb.13:
Lloh13:
	adrp	x9, _status_class3@GOTPAGE
Lloh14:
	ldr	x9, [x9, _status_class3@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x2, [x9, w8, uxtw #3]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_printf
LBB0_14:
	mov	w19, #3
	b	LBB0_18
LBB0_15:
Lloh18:
	adrp	x9, _CLASS1_ERRS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CLASS1_ERRS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_17
; %bb.16:
Lloh21:
	adrp	x9, _status_class1@GOTPAGE
Lloh22:
	ldr	x9, [x9, _status_class1@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	x2, [x9, w8, uxtw #3]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_printf
LBB0_17:
	mov	w19, #2
LBB0_18:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tbit=%d csg=%d nsg=%d status=%x"

	.comm	_CLASS1_ERRS,4,2                ; @CLASS1_ERRS
l_.str.1:                               ; @.str.1
	.asciz	"0x%04x: %s\n"

	.comm	_status_class1,8,3              ; @status_class1
	.comm	_CLASS3_ERRS,4,2                ; @CLASS3_ERRS
	.comm	_status_class3,8,3              ; @status_class3
	.comm	_SN_PHASE,4,2                   ; @SN_PHASE
	.comm	_FF_PHASE,4,2                   ; @FF_PHASE
l_.str.2:                               ; @.str.2
	.asciz	"TSIH=%x"

	.no_dead_strip	_handleLoginResp
.subsections_via_symbols
