	.file	"extr_gss_accept_sec_context.c_choose_mech.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"NTLMSSP"
	.string	""
	.text
	.p2align 4
	.type	choose_mech, @function
choose_mech:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	parse_header@PLT
	cmp	QWORD PTR GSS_S_COMPLETE[rip], rax
	mov	r12, rax
	je	.L1
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 8
	jg	.L8
.L3:
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR 8[rbx]
	cmp	BYTE PTR [rax], 110
	je	.L9
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR spnego_mechanism[rip]
	mov	r12, QWORD PTR GSS_S_COMPLETE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[rbp], eax
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, 8
	lea	rsi, .LC0[rip]
	call	memcmp@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR [rbx]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR ntlm_mechanism[rip]
	mov	r12, QWORD PTR GSS_S_COMPLETE[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR krb5_mechanism[rip]
	mov	r12, QWORD PTR GSS_S_COMPLETE[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	choose_mech, .-choose_mech
	.comm	spnego_mechanism,4,4
	.comm	ntlm_mechanism,4,4
	.comm	krb5_mechanism,4,4
	.comm	GSS_S_COMPLETE,8,8
	.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_gss_accept_sec_context.c_choose_mech.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	choose_mech, %function
choose_mech:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	bl	parse_header
	ldr	r3, .L11
	mov	r4, r0
	ldr	r6, [r3]
	cmp	r6, r0
	beq	.L1
	ldr	r3, [r5]
	cmp	r3, #8
	ble	.L3
	ldr	r5, [r5, #4]
	mov	r2, #8
	mov	r0, r5
	ldr	r1, .L11+4
	bl	memcmp
	cmp	r0, #0
	beq	.L8
.L4:
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L9
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	cmp	r3, #0
	bne	.L10
	mov	r4, r6
	ldr	r3, .L11+8
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L11+12
	mov	r4, r6
	ldr	r3, [r3]
	str	r3, [r7]
	b	.L1
.L8:
	mov	r4, r6
	ldr	r3, .L11+16
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r5, [r5, #4]
	b	.L4
.L12:
	.align	2
.L11:
	.word	GSS_S_COMPLETE
	.word	.LANCHOR0
	.word	spnego_mechanism
	.word	krb5_mechanism
	.word	ntlm_mechanism
	.size	choose_mech, .-choose_mech
	.comm	spnego_mechanism,4,4
	.comm	ntlm_mechanism,4,4
	.comm	krb5_mechanism,4,4
	.comm	GSS_S_COMPLETE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.ascii	"NTLMSSP\000\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
