	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_mech
_select_mech:                           ## @select_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %rdx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-49(%rbp), %rdi
	leaq	-184(%rbp), %rcx
	movl	$64, %esi
	callq	_der_put_oid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GSS_S_DEFECTIVE_TOKEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_30
LBB0_2:
	movq	-184(%rbp), %rax
	leaq	-112(%rbp), %rcx
	subq	%rax, %rcx
	movq	%rax, -176(%rbp)
	addq	$64, %rcx
	movq	%rcx, -168(%rbp)
	movq	_GSS_SPNEGO_MECHANISM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-176(%rbp), %r13
	movq	%r13, %rdi
	callq	_gss_oid_equal
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_GSS_S_BAD_MECH@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_30
LBB0_4:
	movq	$0, (%r15)
	movq	__gss_spnego_mskrb_mechanism_oid_desc@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_gss_oid_equal
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	__gss_spnego_krb5_mechanism_oid_desc@GOTPCREL(%rip), %r13
LBB0_6:
	leaq	-152(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	callq	_gss_indicate_mechs
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-128(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.8:
	movq	%r14, -160(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdi
	addq	%r14, %rdi
	movq	%r13, %rsi
	callq	_gss_oid_equal
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movq	-128(%rbp), %rax
	movq	(%rax), %rcx
	addq	$16, %r14
	cmpq	%rcx, %rbx
	jb	LBB0_9
	jmp	LBB0_12
LBB0_10:
	movq	-128(%rbp), %rax
	movq	(%rax), %rcx
LBB0_12:
	cmpq	%rcx, %rbx
	movq	-160(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_14
LBB0_13:
	leaq	-152(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	callq	_gss_release_oid_set
	jmp	LBB0_3
LBB0_14:
	leaq	-152(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	callq	_gss_release_oid_set
	leaq	-176(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_gss_duplicate_oid
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.16:
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movq	_GSS_C_NO_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	movq	$0, -144(%rbp)
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_issuid
	testq	%rax, %rax
	je	LBB0_18
LBB0_19:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_gethostname
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:
	movq	_errno@GOTPCREL(%rip), %rcx
LBB0_21:
	movq	-136(%rbp), %r12                ## 8-byte Reload
LBB0_22:
	movq	(%rcx), %rax
	movq	%rax, (%r15)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_29
LBB0_15:
	movq	%rax, %rbx
	jmp	LBB0_30
LBB0_23:
	leaq	L_.str.1(%rip), %rsi
	leaq	-144(%rbp), %rdi
	movq	%r12, %rdx
	callq	_asprintf
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	js	LBB0_21
## %bb.24:
	movq	-144(%rbp), %rbx
	testq	%rbx, %rbx
	movq	-136(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_25
	jmp	LBB0_22
LBB0_18:
	movq	-136(%rbp), %r12                ## 8-byte Reload
LBB0_25:
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, -192(%rbp)
	movq	%rbx, -200(%rbp)
	movq	_GSS_C_NT_HOSTBASED_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-200(%rbp), %rsi
	leaq	-116(%rbp), %rcx
	movq	%r15, %rdi
	callq	_gss_import_name
	movq	%rax, %rbx
	movq	-144(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	callq	_free
LBB0_27:
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_29
## %bb.28:
	movl	-116(%rbp), %edi
	movq	(%r14), %rsi
	callq	_acceptor_approved
	movq	%rax, %rbx
	leaq	-152(%rbp), %rdi
	leaq	-116(%rbp), %rsi
	callq	_gss_release_name
LBB0_29:
	movq	%r12, %rsp
	jmp	LBB0_30
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_DEFECTIVE_TOKEN,8,3      ## @GSS_S_DEFECTIVE_TOKEN
	.comm	_GSS_SPNEGO_MECHANISM,8,3       ## @GSS_SPNEGO_MECHANISM
	.comm	_GSS_S_BAD_MECH,8,3             ## @GSS_S_BAD_MECH
	.comm	__gss_spnego_mskrb_mechanism_oid_desc,16,3 ## @_gss_spnego_mskrb_mechanism_oid_desc
	.comm	__gss_spnego_krb5_mechanism_oid_desc,16,3 ## @_gss_spnego_krb5_mechanism_oid_desc
	.comm	_GSS_C_NO_NAME,4,2              ## @GSS_C_NO_NAME
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GSSAPI_SPNEGO_NAME"

	.comm	_errno,8,3                      ## @errno
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"host@%s"

	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_GSS_C_NT_HOSTBASED_SERVICE,4,2 ## @GSS_C_NT_HOSTBASED_SERVICE
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.no_dead_strip	_select_mech
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_mech
_select_mech:                           ; @select_mech
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #144
	mov	x19, x3
	mov	x21, x2
	mov	x2, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	sub	x22, x29, #120
	add	x0, x22, #63
	sub	x3, x29, #128
	mov	w1, #64
	bl	_der_put_oid
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _GSS_S_DEFECTIVE_TOKEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSS_S_DEFECTIVE_TOKEN@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	b	LBB0_5
LBB0_2:
	ldur	x8, [x29, #-128]
	sub	x9, x22, x8
	add	x9, x9, #64
	stp	x8, x9, [x29, #-144]
Lloh6:
	adrp	x8, _GSS_SPNEGO_MECHANISM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GSS_SPNEGO_MECHANISM@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	sub	x22, x29, #144
	sub	x0, x29, #144
	bl	_gss_oid_equal
	cbz	x0, LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _GSS_S_BAD_MECH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GSS_S_BAD_MECH@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	b	LBB0_5
LBB0_4:
	str	xzr, [x20]
Lloh12:
	adrp	x1, __gss_spnego_mskrb_mechanism_oid_desc@GOTPAGE
Lloh13:
	ldr	x1, [x1, __gss_spnego_mskrb_mechanism_oid_desc@GOTPAGEOFF]
	sub	x0, x29, #144
	bl	_gss_oid_equal
Lloh14:
	adrp	x8, __gss_spnego_krb5_mechanism_oid_desc@GOTPAGE
Lloh15:
	ldr	x8, [x8, __gss_spnego_krb5_mechanism_oid_desc@GOTPAGEOFF]
	cmp	x0, #0
	csel	x23, x22, x8, eq
	sub	x0, x29, #160
	sub	x1, x29, #152
	bl	_gss_indicate_mechs
	mov	x22, x0
	cbz	x0, LBB0_7
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.6:
	mov	x0, x22
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldur	x8, [x29, #-152]
	ldr	x9, [x8]
	cbz	x9, LBB0_13
; %bb.8:
	mov	x24, #0
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	add	x0, x8, x24
	mov	x1, x23
	bl	_gss_oid_equal
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	ldur	x8, [x29, #-152]
	ldr	x9, [x8]
	add	x24, x24, #16
	cmp	x22, x9
	b.lo	LBB0_9
	b	LBB0_12
LBB0_11:
	ldur	x8, [x29, #-152]
	ldr	x9, [x8]
LBB0_12:
	cmp	x22, x9
	b.ne	LBB0_14
LBB0_13:
	sub	x0, x29, #160
	sub	x1, x29, #152
	bl	_gss_release_oid_set
	b	LBB0_3
LBB0_14:
	sub	x0, x29, #160
	sub	x1, x29, #152
	bl	_gss_release_oid_set
	sub	x1, x29, #144
	mov	x0, x20
	mov	x2, x19
	bl	_gss_duplicate_oid
	cbz	w21, LBB0_20
; %bb.15:
	mov	x24, sp
Lloh19:
	adrp	x8, _GSS_C_NO_NAME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GSS_C_NO_NAME@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	stur	w8, [x29, #-164]
	stur	xzr, [x29, #-192]
Lloh22:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
	mov	x9, x22
Lloh25:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh26:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_17
; %bb.16:
	mov	x23, x0
	bl	_issuid
	cbz	x0, LBB0_23
LBB0_17:
	mov	x0, x21
	mov	x1, x22
	bl	_gethostname
	cbz	x0, LBB0_21
; %bb.18:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh31:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh33:
	ldr	x22, [x8]
	b	LBB0_27
LBB0_20:
	mov	x22, x0
	b	LBB0_5
LBB0_21:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #192
	mov	x2, x21
	bl	_asprintf
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_19
; %bb.22:
	ldur	x23, [x29, #-192]
	cbz	x23, LBB0_19
LBB0_23:
	mov	x0, x23
	bl	_strlen
	stur	w0, [x29, #-176]
	stur	x23, [x29, #-184]
Lloh38:
	adrp	x8, _GSS_C_NT_HOSTBASED_SERVICE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GSS_C_NT_HOSTBASED_SERVICE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	sub	x1, x29, #184
	sub	x3, x29, #164
	mov	x0, x20
	bl	_gss_import_name
	mov	x22, x0
	ldur	x0, [x29, #-192]
	cbz	x0, LBB0_25
; %bb.24:
	bl	_free
LBB0_25:
Lloh41:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_27
; %bb.26:
	ldur	w0, [x29, #-164]
	ldr	x1, [x19]
	bl	_acceptor_approved
	mov	x22, x0
	sub	x0, x29, #160
	sub	x1, x29, #164
	bl	_gss_release_name
LBB0_27:
	mov	sp, x24
	b	LBB0_5
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_DEFECTIVE_TOKEN,8,3      ; @GSS_S_DEFECTIVE_TOKEN
	.comm	_GSS_SPNEGO_MECHANISM,8,3       ; @GSS_SPNEGO_MECHANISM
	.comm	_GSS_S_BAD_MECH,8,3             ; @GSS_S_BAD_MECH
	.comm	__gss_spnego_mskrb_mechanism_oid_desc,16,3 ; @_gss_spnego_mskrb_mechanism_oid_desc
	.comm	__gss_spnego_krb5_mechanism_oid_desc,16,3 ; @_gss_spnego_krb5_mechanism_oid_desc
	.comm	_GSS_C_NO_NAME,4,2              ; @GSS_C_NO_NAME
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GSSAPI_SPNEGO_NAME"

	.comm	_errno,8,3                      ; @errno
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"host@%s"

	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_GSS_C_NT_HOSTBASED_SERVICE,4,2 ; @GSS_C_NT_HOSTBASED_SERVICE
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.no_dead_strip	_select_mech
.subsections_via_symbols
