	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auth_krb5
_auth_krb5:                             ## @auth_krb5
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	$0, -40(%rbp)
	leaq	-44(%rbp), %rdi
	callq	_krb5_verify_init_creds_opt_init
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_asprintf
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	xorl	%eax, %eax
	callq	_asprintf
LBB0_3:
	movq	-40(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.4:
	movq	$0, -56(%rbp)
	movq	_PAM_AUTHTOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pam_get_authtok
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	callq	_free
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	jne	LBB0_14
## %bb.5:
	leaq	-64(%rbp), %rsi
	movl	%r15d, %edi
	callq	_krb5_get_init_creds_opt_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_krb5_get_error_message
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_7:
	movq	_PAM_BUF_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	-56(%rbp), %rcx
	subq	$8, %rsp
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	movl	%r14d, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	-64(%rbp)
	pushq	$0
	pushq	$0
	callq	_krb5_get_init_creds_password
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	-64(%rbp), %rsi
	movl	%r15d, %edi
	callq	_krb5_get_init_creds_opt_free
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_krb5_get_error_message
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_12
LBB0_10:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_krb5_verify_init_creds_opt_set_ap_req_nofail
	leaq	-48(%rbp), %r14
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_krb5_verify_init_creds
	movq	%rax, %rbx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_krb5_free_cred_contents
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.11:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_krb5_get_error_message
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rdi
LBB0_12:
	movq	%rax, %rsi
	callq	_PAM_LOG
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_krb5_free_error_message
	movq	_PAM_AUTH_ERR@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r12), %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Password for %s:"

L_.str.1:                               ## @.str.1
	.asciz	"Password:"

	.comm	_PAM_BUF_ERR,4,2                ## @PAM_BUF_ERR
	.comm	_PAM_AUTHTOK,4,2                ## @PAM_AUTHTOK
	.comm	_PAM_SUCCESS,4,2                ## @PAM_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"krb5_get_init_creds_opt_alloc: %s"

	.comm	_PAM_AUTH_ERR,4,2               ## @PAM_AUTH_ERR
L_.str.3:                               ## @.str.3
	.asciz	"krb5_get_init_creds_password: %s"

L_.str.4:                               ## @.str.4
	.asciz	"krb5_verify_init_creds: %s"

	.no_dead_strip	_auth_krb5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auth_krb5
_auth_krb5:                             ; @auth_krb5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	add	x0, sp, #28
	bl	_krb5_verify_init_creds_opt_init
	cbz	x22, LBB0_2
; %bb.1:
	str	x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	add	x0, sp, #8
	bl	_asprintf
	ldr	x3, [sp, #8]
	cbz	x3, LBB0_7
; %bb.4:
	str	xzr, [sp, #16]
Lloh4:
	adrp	x8, _PAM_AUTHTOK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PAM_AUTHTOK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x21
	bl	_pam_get_authtok
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_free
Lloh7:
	adrp	x22, _PAM_SUCCESS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _PAM_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_14
; %bb.5:
	add	x1, sp, #32
	mov	x0, x19
	bl	_krb5_get_init_creds_opt_alloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x1, x0
	mov	x0, x19
	bl	_krb5_get_error_message
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_7:
Lloh11:
	adrp	x8, _PAM_BUF_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAM_BUF_ERR@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	ldr	x3, [sp, #16]
	ldr	x8, [sp, #32]
	str	x8, [sp]
	sub	x1, x29, #36
	mov	x0, x19
	mov	x2, x20
	mov	x4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_krb5_get_init_creds_password
	mov	x20, x0
	ldr	x1, [sp, #32]
	mov	x0, x19
	bl	_krb5_get_init_creds_opt_free
	cbz	x20, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_get_error_message
	mov	x20, x0
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_10:
	add	x0, sp, #28
	mov	w1, #1
	bl	_krb5_verify_init_creds_opt_set_ap_req_nofail
	sub	x1, x29, #36
	add	x5, sp, #28
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_krb5_verify_init_creds
	mov	x20, x0
	sub	x1, x29, #36
	mov	x0, x19
	bl	_krb5_free_cred_contents
	cbz	x20, LBB0_15
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_get_error_message
	mov	x20, x0
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_12:
	mov	x1, x20
	bl	_PAM_LOG
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_free_error_message
Lloh17:
	adrp	x8, _PAM_AUTH_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAM_AUTH_ERR@GOTPAGEOFF]
LBB0_13:
	ldr	w21, [x8]
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	w21, [x22]
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Password for %s:"

l_.str.1:                               ; @.str.1
	.asciz	"Password:"

	.comm	_PAM_BUF_ERR,4,2                ; @PAM_BUF_ERR
	.comm	_PAM_AUTHTOK,4,2                ; @PAM_AUTHTOK
	.comm	_PAM_SUCCESS,4,2                ; @PAM_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"krb5_get_init_creds_opt_alloc: %s"

	.comm	_PAM_AUTH_ERR,4,2               ; @PAM_AUTH_ERR
l_.str.3:                               ; @.str.3
	.asciz	"krb5_get_init_creds_password: %s"

l_.str.4:                               ; @.str.4
	.asciz	"krb5_verify_init_creds: %s"

	.no_dead_strip	_auth_krb5
.subsections_via_symbols
