	.file	"extr_login.c_handleLoginResp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Tbit=%d csg=%d nsg=%d status=%x"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"0x%04x: %s\n"
.LC2:
	.string	"TSIH=%x"
	.text
	.p2align 4
	.type	handleLoginResp, @function
handleLoginResp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 20[rsi]
	call	ntohs@PLT
	mov	edi, 3
	mov	ebp, eax
	call	debug_called@PLT
	mov	ecx, DWORD PTR 16[rbx]
	mov	r8d, DWORD PTR 4[rbx]
	mov	r9d, ebp
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	mov	r13d, ebp
	mov	edi, 4
	sar	r13d, 8
	call	debug@PLT
	test	ebp, ebp
	je	.L2
	movzx	eax, bpl
	cmp	r13d, 2
	je	.L3
	cmp	r13d, 3
	je	.L4
	cmp	r13d, 1
	je	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, rbx
	mov	rdi, r12
	call	processParams@PLT
	xor	esi, esi
	mov	rdi, r12
	call	setOptions@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	mov	eax, DWORD PTR SN_PHASE[rip]
	cmp	DWORD PTR 4[r12], eax
	je	.L6
.L8:
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, DWORD PTR FF_PHASE[rip]
	mov	DWORD PTR 4[r12], eax
	jne	.L1
	mov	edx, DWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	mov	edi, 2
	xor	eax, eax
	mov	DWORD PTR [r12], edx
	call	debug@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	sub	eax, 1
	cmp	eax, 1
	jbe	.L2
.L9:
	mov	r13d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	DWORD PTR CLASS3_ERRS[rip], eax
	jle	.L1
	mov	rdx, QWORD PTR status_class3[rip]
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	call	printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	DWORD PTR CLASS1_ERRS[rip], eax
	jle	.L1
	mov	rdx, QWORD PTR status_class1[rip]
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	call	printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[r12]
	cmp	QWORD PTR [rax], 0
	je	.L8
	mov	rsi, rbx
	mov	rdi, r12
	call	handleTgtResp@PLT
	test	rax, rax
	je	.L8
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	handleLoginResp, .-handleLoginResp
	.comm	status_class3,8,8
	.comm	status_class1,8,8
	.comm	SN_PHASE,4,4
	.comm	FF_PHASE,4,4
	.comm	CLASS3_ERRS,4,4
	.comm	CLASS1_ERRS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_login.c_handleLoginResp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Tbit=%d csg=%d nsg=%d status=%x\000"
	.align	2
.LC1:
	.ascii	"0x%04x: %s\012\000"
	.align	2
.LC2:
	.ascii	"TSIH=%x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleLoginResp, %function
handleLoginResp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	sub	sp, sp, #12
	ldr	r0, [r1, #16]
	mov	r4, r1
	bl	ntohs
	mov	r5, r0
	mov	r0, #3
	bl	debug_called
	ldr	r3, [r4, #4]
	mov	r0, #4
	stm	sp, {r3, r5}
	ldr	r1, .L23
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #8]
	bl	debug
	cmp	r5, #0
	asr	r7, r5, #8
	beq	.L2
	cmp	r7, #2
	and	r3, r5, #255
	beq	.L3
	cmp	r7, #3
	beq	.L4
	cmp	r7, #1
	beq	.L22
.L1:
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r1, r4
	mov	r0, r6
	bl	processParams
	mov	r1, #0
	mov	r0, r6
	bl	setOptions
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L1
	ldr	r3, .L23+4
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L6
.L8:
	ldr	r2, .L23+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	str	r3, [r6, #4]
	cmp	r3, r2
	bne	.L1
	ldr	r2, [r4]
	ldr	r1, .L23+12
	str	r2, [r6]
	mov	r0, #2
	bl	debug
	b	.L1
.L22:
	sub	r3, r3, #1
	cmp	r3, #1
	bls	.L2
.L9:
	mov	r7, #1
	b	.L1
.L4:
	ldr	r2, .L23+16
	ldr	r2, [r2]
	cmp	r2, r3
	ble	.L1
	ldr	r2, .L23+20
.L20:
	ldr	r2, [r2]
	mov	r1, r5
	ldr	r2, [r2, r3, lsl #2]
	ldr	r0, .L23+24
	bl	printf
	b	.L1
.L3:
	ldr	r2, .L23+28
	ldr	r2, [r2]
	cmp	r2, r3
	ldrgt	r2, .L23+32
	ble	.L1
	b	.L20
.L6:
	ldr	r3, [r6, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	mov	r1, r4
	mov	r0, r6
	bl	handleTgtResp
	cmp	r0, #0
	beq	.L8
	b	.L9
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	SN_PHASE
	.word	FF_PHASE
	.word	.LC2
	.word	CLASS3_ERRS
	.word	status_class3
	.word	.LC1
	.word	CLASS1_ERRS
	.word	status_class1
	.size	handleLoginResp, .-handleLoginResp
	.comm	status_class3,4,4
	.comm	status_class1,4,4
	.comm	SN_PHASE,4,4
	.comm	FF_PHASE,4,4
	.comm	CLASS3_ERRS,4,4
	.comm	CLASS1_ERRS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
