	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_authsspi_create_default        ## -- Begin function authsspi_create_default
	.p2align	4, 0x90
_authsspi_create_default:               ## @authsspi_create_default
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SSPI_C_NO_NAME@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movabsq	$8317992816545523019, %rax      ## imm = 0x736F72656272654B
	movq	%rax, -64(%rbp)
	movb	$0, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_log_debug
	movq	%rbx, -88(%rbp)
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, -80(%rbp)
	leaq	-88(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_sspi_import_name
	movq	_SEC_E_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_log_debug
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_2:
	movl	$1, %edi
	movl	$12, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r12
	movl	%r15d, (%rax)
	movq	_SECPKG_CRED_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	4(%r12), %r15
	movq	%r12, %rax
	addq	$8, %rax
	subq	$8, %rsp
	leaq	-64(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r15
	pushq	$0
	callq	_AcquireCredentialsHandleA
	addq	$32, %rsp
	cmpq	(%rbx), %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_log_debug
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_9
LBB0_5:
	movq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_authsspi_create
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	_rpc_createerr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_FreeCredentialsHandle
	movq	%r12, %rdi
	callq	_free
LBB0_8:
	movq	_RPC_SYSTEMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rpc_createerr@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%rcx)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	-72(%rbp), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_12
## %bb.11:
	callq	_free
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSPI_C_NO_NAME,8,3             ## @SSPI_C_NO_NAME
	.section	__TEXT,__cstring,cstring_literals
L___const.authsspi_create_default.sec_pkg_name: ## @__const.authsspi_create_default.sec_pkg_name
	.asciz	"Kerberos"

L_.str:                                 ## @.str
	.asciz	"in authgss_create_default() for %s"

	.comm	_SEC_E_OK,8,3                   ## @SEC_E_OK
L_.str.1:                               ## @.str.1
	.asciz	"authgss_create_default: sspi_import_name failed with %x"

	.comm	_SECPKG_CRED_BOTH,4,2           ## @SECPKG_CRED_BOTH
L_.str.2:                               ## @.str.2
	.asciz	"authgss_create_default: AcquireCredentialsHandleA failed with %x"

	.comm	_rpc_createerr,16,3             ## @rpc_createerr
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_RPC_SYSTEMERROR,4,2            ## @RPC_SYSTEMERROR
	.comm	_GSS_C_NT_HOSTBASED_SERVICE,8,3 ## @GSS_C_NT_HOSTBASED_SERVICE
	.comm	_min_stat,4,2                   ## @min_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_authsspi_create_default        ; -- Begin function authsspi_create_default
	.p2align	2
_authsspi_create_default:               ; @authsspi_create_default
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x22, _SSPI_C_NO_NAME@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SSPI_C_NO_NAME@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp, #16]
Lloh5:
	adrp	x8, l___const.authsspi_create_default.sec_pkg_name@PAGE
Lloh6:
	add	x8, x8, l___const.authsspi_create_default.sec_pkg_name@PAGEOFF
Lloh7:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	strb	wzr, [sp, #48]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_debug
	str	x20, [sp, #24]
	mov	x0, x20
	bl	_strlen
	str	w0, [sp, #32]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_sspi_import_name
Lloh10:
	adrp	x23, _SEC_E_OK@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SEC_E_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_debug
	mov	x19, #0
	b	LBB0_11
LBB0_2:
	mov	w0, #1
	mov	w1, #12
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	mov	x8, x0
	str	w21, [x8], #8
Lloh14:
	adrp	x9, _SECPKG_CRED_BOTH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SECPKG_CRED_BOTH@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x9]
	add	x21, x0, #4
	str	x8, [sp]
	add	x1, sp, #40
	mov	x0, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, x21
	bl	_AcquireCredentialsHandleA
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_debug
	mov	x0, x20
	bl	_free
	mov	x19, #0
	b	LBB0_9
LBB0_5:
	ldr	x1, [sp, #16]
	mov	x0, x19
	mov	x2, x20
	bl	_authsspi_create
	mov	x19, x0
	cbnz	x0, LBB0_9
; %bb.6:
Lloh19:
	adrp	x8, _rpc_createerr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rpc_createerr@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_FreeCredentialsHandle
	mov	x0, x20
	bl	_free
LBB0_8:
	mov	x19, #0
Lloh25:
	adrp	x8, _RPC_SYSTEMERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RPC_SYSTEMERROR@GOTPAGEOFF]
Lloh27:
	adrp	x9, _rpc_createerr@GOTPAGE
Lloh28:
	ldr	x9, [x9, _rpc_createerr@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x9, #8]
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	str	x8, [x9]
LBB0_9:
	ldr	x0, [sp, #16]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	bl	_free
LBB0_11:
	ldr	x8, [sp, #56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAddLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SSPI_C_NO_NAME,8,3             ; @SSPI_C_NO_NAME
	.section	__TEXT,__cstring,cstring_literals
l___const.authsspi_create_default.sec_pkg_name: ; @__const.authsspi_create_default.sec_pkg_name
	.asciz	"Kerberos"

l_.str:                                 ; @.str
	.asciz	"in authgss_create_default() for %s"

	.comm	_SEC_E_OK,8,3                   ; @SEC_E_OK
l_.str.1:                               ; @.str.1
	.asciz	"authgss_create_default: sspi_import_name failed with %x"

	.comm	_SECPKG_CRED_BOTH,4,2           ; @SECPKG_CRED_BOTH
l_.str.2:                               ; @.str.2
	.asciz	"authgss_create_default: AcquireCredentialsHandleA failed with %x"

	.comm	_rpc_createerr,16,3             ; @rpc_createerr
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_RPC_SYSTEMERROR,4,2            ; @RPC_SYSTEMERROR
	.comm	_GSS_C_NT_HOSTBASED_SERVICE,8,3 ; @GSS_C_NT_HOSTBASED_SERVICE
	.comm	_min_stat,4,2                   ; @min_stat
.subsections_via_symbols
