	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_mech
_choose_mech:                           ## @choose_mech
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_parse_header
	movq	%rax, %r15
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_10
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$9, %eax
	jl	LBB0_5
## %bb.2:
	movq	8(%rbx), %rdi
	leaq	l_.str(%rip), %rsi
	movl	$8, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %eax
LBB0_5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	8(%rbx), %rax
	cmpb	$110, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	_krb5_mechanism@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_spnego_mechanism@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_ntlm_mechanism@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	(%r12), %r15
LBB0_10:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"NTLMSSP\000"

	.comm	_ntlm_mechanism,4,2             ## @ntlm_mechanism
	.comm	_krb5_mechanism,4,2             ## @krb5_mechanism
	.comm	_spnego_mechanism,4,2           ## @spnego_mechanism
	.no_dead_strip	_choose_mech
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_mech
_choose_mech:                           ; @choose_mech
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x21, x0
	bl	_parse_header
	mov	x20, x0
Lloh0:
	adrp	x22, _GSS_S_COMPLETE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GSS_S_COMPLETE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #9
	b.lt	LBB0_4
; %bb.2:
	ldr	x0, [x21, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #8
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x21]
LBB0_4:
	cbz	w8, LBB0_7
; %bb.5:
	ldr	x8, [x21, #8]
	ldrb	w8, [x8]
	cmp	w8, #110
	b.ne	LBB0_10
; %bb.6:
Lloh4:
	adrp	x8, _krb5_mechanism@GOTPAGE
Lloh5:
	ldr	x8, [x8, _krb5_mechanism@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _spnego_mechanism@GOTPAGE
Lloh7:
	ldr	x8, [x8, _spnego_mechanism@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _ntlm_mechanism@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ntlm_mechanism@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x20, [x22]
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"NTLMSSP\000"

	.comm	_ntlm_mechanism,4,2             ; @ntlm_mechanism
	.comm	_krb5_mechanism,4,2             ; @krb5_mechanism
	.comm	_spnego_mechanism,4,2           ; @spnego_mechanism
	.no_dead_strip	_choose_mech
.subsections_via_symbols
