	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_digest_server_request          ## -- Begin function digest_server_request
	.p2align	4, 0x90
_digest_server_request:                 ## @digest_server_request
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 48(%rbx)
	je	LBB0_3
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
LBB0_6:
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_8:
	movq	_context@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-28(%rbp), %rsi
	callq	_krb5_digest_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_10:
	movq	48(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	movq	56(%rbx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	56(%rbx), %rdx
LBB0_13:
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	callq	_krb5_digest_set_identifier
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	(%r15), %edi
	leaq	L_.str.7(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_15:
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	movq	48(%rbx), %rdx
	callq	_krb5_digest_set_type
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	(%r15), %edi
	leaq	L_.str.7(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_17:
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	movl	40(%rbx), %edx
	callq	_krb5_digest_set_username
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	(%r15), %edi
	leaq	L_.str.8(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_19:
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	movq	32(%rbx), %rdx
	callq	_krb5_digest_set_server_nonce
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	(%r15), %edi
	leaq	L_.str.9(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_21:
	movl	24(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_24
## %bb.22:
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	callq	_krb5_digest_set_client_nonce
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	(%r15), %edi
	leaq	L_.str.10(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_24:
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	movq	16(%rbx), %rdx
	callq	_krb5_digest_set_opaque
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movl	(%r15), %edi
	leaq	L_.str.11(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_26:
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	movq	8(%rbx), %rdx
	callq	_krb5_digest_set_responseData
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movl	(%r15), %edi
	leaq	L_.str.12(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_28:
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	movl	(%rbx), %edx
	movq	_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_krb5_digest_request
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movl	(%r15), %edi
	leaq	L_.str.13(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_30:
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	callq	_krb5_digest_rep_get_status
	testq	%rax, %rax
	leaq	L_.str.15(%rip), %rax
	leaq	L_.str.14(%rip), %rbx
	cmoveq	%rax, %rbx
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	callq	_krb5_digest_get_rsp
	movq	%rax, %r14
	leaq	L_.str.16(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	testq	%r14, %r14
	je	LBB0_32
## %bb.31:
	leaq	L_.str.17(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_32:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%r15), %edi
	movl	-28(%rbp), %esi
	leaq	-56(%rbp), %rdx
	callq	_krb5_digest_get_session_key
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movl	(%r15), %edi
	leaq	L_.str.19(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_34:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_38
## %bb.35:
	movl	-48(%rbp), %edi
	leaq	-40(%rbp), %rdx
	callq	_hex_encode
	cmpq	$0, -40(%rbp)
	jne	LBB0_37
## %bb.36:
	movl	(%r15), %edi
	leaq	L_.str.20(%rip), %rdx
	movl	$1, %esi
	callq	_krb5_errx
LBB0_37:
	leaq	-56(%rbp), %rdi
	callq	_krb5_data_free
	movq	-40(%rbp), %rsi
	leaq	L_.str.21(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-40(%rbp), %rdi
	callq	_free
LBB0_38:
	movl	-28(%rbp), %edi
	callq	_krb5_digest_free
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	cmpq	$0, 48(%rbx)
	jne	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	cmpq	$0, 16(%rbx)
	jne	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"server nonce missing"

L_.str.1:                               ## @.str.1
	.asciz	"type missing"

L_.str.2:                               ## @.str.2
	.asciz	"opaque missing"

L_.str.3:                               ## @.str.3
	.asciz	"client response missing"

	.comm	_context,4,2                    ## @context
L_.str.4:                               ## @.str.4
	.asciz	"digest_alloc"

L_.str.5:                               ## @.str.5
	.asciz	"CHAP"

L_.str.6:                               ## @.str.6
	.asciz	"server identifier missing"

L_.str.7:                               ## @.str.7
	.asciz	"krb5_digest_set_type"

L_.str.8:                               ## @.str.8
	.asciz	"krb5_digest_set_username"

L_.str.9:                               ## @.str.9
	.asciz	"krb5_digest_set_server_nonce"

L_.str.10:                              ## @.str.10
	.asciz	"krb5_digest_set_client_nonce"

L_.str.11:                              ## @.str.11
	.asciz	"krb5_digest_set_opaque"

L_.str.12:                              ## @.str.12
	.asciz	"krb5_digest_set_responseData"

	.comm	_id,4,2                         ## @id
L_.str.13:                              ## @.str.13
	.asciz	"krb5_digest_request"

L_.str.14:                              ## @.str.14
	.asciz	"ok"

L_.str.15:                              ## @.str.15
	.asciz	"failed"

L_.str.16:                              ## @.str.16
	.asciz	"status=%s\n"

L_.str.17:                              ## @.str.17
	.asciz	"rsp=%s\n"

L_.str.19:                              ## @.str.19
	.asciz	"krb5_digest_get_session_key"

L_.str.20:                              ## @.str.20
	.asciz	"hex_encode"

L_.str.21:                              ## @.str.21
	.asciz	"session-key=%s\n"

L_str:                                  ## @str
	.asciz	"tickets=no"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_digest_server_request          ; -- Begin function digest_server_request
	.p2align	2
_digest_server_request:                 ; @digest_server_request
	.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	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_36
; %bb.1:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_37
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_38
LBB0_3:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
LBB0_4:
Lloh0:
	adrp	x1, l_.str.3@PAGE
Lloh1:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
Lloh2:
	adrp	x20, _context@GOTPAGE
Lloh3:
	ldr	x20, [x20, _context@GOTPAGEOFF]
	ldr	w0, [x20]
	sub	x1, x29, #36
	bl	_krb5_digest_alloc
	cbz	x0, LBB0_7
; %bb.6:
	mov	x2, x0
	ldr	w0, [x20]
Lloh4:
	adrp	x3, l_.str.4@PAGE
Lloh5:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_7:
	ldr	x0, [x19, #48]
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcasecmp
	cbnz	x0, LBB0_12
; %bb.8:
	ldr	x2, [x19, #56]
	cbnz	x2, LBB0_10
; %bb.9:
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x2, [x19, #56]
LBB0_10:
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	bl	_krb5_digest_set_identifier
	cbz	x0, LBB0_12
; %bb.11:
	mov	x2, x0
	ldr	w0, [x20]
Lloh10:
	adrp	x3, l_.str.7@PAGE
Lloh11:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_12:
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	ldr	x2, [x19, #48]
	bl	_krb5_digest_set_type
	cbz	x0, LBB0_14
; %bb.13:
	mov	x2, x0
	ldr	w0, [x20]
Lloh12:
	adrp	x3, l_.str.7@PAGE
Lloh13:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_14:
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	ldr	w2, [x19, #40]
	bl	_krb5_digest_set_username
	cbz	x0, LBB0_16
; %bb.15:
	mov	x2, x0
	ldr	w0, [x20]
Lloh14:
	adrp	x3, l_.str.8@PAGE
Lloh15:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_16:
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	ldr	x2, [x19, #32]
	bl	_krb5_digest_set_server_nonce
	cbz	x0, LBB0_18
; %bb.17:
	mov	x2, x0
	ldr	w0, [x20]
Lloh16:
	adrp	x3, l_.str.9@PAGE
Lloh17:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_18:
	ldr	w2, [x19, #24]
	cbz	w2, LBB0_21
; %bb.19:
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	bl	_krb5_digest_set_client_nonce
	cbz	x0, LBB0_21
; %bb.20:
	mov	x2, x0
	ldr	w0, [x20]
Lloh18:
	adrp	x3, l_.str.10@PAGE
Lloh19:
	add	x3, x3, l_.str.10@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_21:
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	ldr	x2, [x19, #16]
	bl	_krb5_digest_set_opaque
	cbz	x0, LBB0_23
; %bb.22:
	mov	x2, x0
	ldr	w0, [x20]
Lloh20:
	adrp	x3, l_.str.11@PAGE
Lloh21:
	add	x3, x3, l_.str.11@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_23:
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	ldr	x2, [x19, #8]
	bl	_krb5_digest_set_responseData
	cbz	x0, LBB0_25
; %bb.24:
	mov	x2, x0
	ldr	w0, [x20]
Lloh22:
	adrp	x3, l_.str.12@PAGE
Lloh23:
	add	x3, x3, l_.str.12@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_25:
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	ldr	w2, [x19]
Lloh24:
	adrp	x8, _id@GOTPAGE
Lloh25:
	ldr	x8, [x8, _id@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	bl	_krb5_digest_request
	cbz	x0, LBB0_27
; %bb.26:
	mov	x2, x0
	ldr	w0, [x20]
Lloh27:
	adrp	x3, l_.str.13@PAGE
Lloh28:
	add	x3, x3, l_.str.13@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_27:
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	bl	_krb5_digest_rep_get_status
Lloh29:
	adrp	x8, l_.str.14@PAGE
Lloh30:
	add	x8, x8, l_.str.14@PAGEOFF
Lloh31:
	adrp	x9, l_.str.15@PAGE
Lloh32:
	add	x9, x9, l_.str.15@PAGEOFF
	cmp	x0, #0
	csel	x21, x9, x8, eq
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	bl	_krb5_digest_get_rsp
	mov	x19, x0
	str	x21, [sp]
Lloh33:
	adrp	x0, l_.str.16@PAGE
Lloh34:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_printf
	cbz	x19, LBB0_29
; %bb.28:
	str	x19, [sp]
Lloh35:
	adrp	x0, l_.str.17@PAGE
Lloh36:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_printf
LBB0_29:
Lloh37:
	adrp	x0, l_str@PAGE
Lloh38:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w0, [x20]
	ldur	w1, [x29, #-36]
	add	x2, sp, #24
	bl	_krb5_digest_get_session_key
	cbz	x0, LBB0_31
; %bb.30:
	mov	x2, x0
	ldr	w0, [x20]
Lloh39:
	adrp	x3, l_.str.19@PAGE
Lloh40:
	add	x3, x3, l_.str.19@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_31:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_35
; %bb.32:
	ldr	w0, [sp, #32]
	add	x2, sp, #16
	bl	_hex_encode
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_34
; %bb.33:
	ldr	w0, [x20]
Lloh41:
	adrp	x2, l_.str.20@PAGE
Lloh42:
	add	x2, x2, l_.str.20@PAGEOFF
	mov	w1, #1
	bl	_krb5_errx
LBB0_34:
	add	x0, sp, #24
	bl	_krb5_data_free
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh43:
	adrp	x0, l_.str.21@PAGE
Lloh44:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #16]
	bl	_free
LBB0_35:
	ldur	w0, [x29, #-36]
	bl	_krb5_digest_free
	mov	w0, #0
	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_36:
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_2
LBB0_37:
Lloh47:
	adrp	x1, l_.str.1@PAGE
Lloh48:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_3
LBB0_38:
Lloh49:
	adrp	x1, l_.str.2@PAGE
Lloh50:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"server nonce missing"

l_.str.1:                               ; @.str.1
	.asciz	"type missing"

l_.str.2:                               ; @.str.2
	.asciz	"opaque missing"

l_.str.3:                               ; @.str.3
	.asciz	"client response missing"

	.comm	_context,4,2                    ; @context
l_.str.4:                               ; @.str.4
	.asciz	"digest_alloc"

l_.str.5:                               ; @.str.5
	.asciz	"CHAP"

l_.str.6:                               ; @.str.6
	.asciz	"server identifier missing"

l_.str.7:                               ; @.str.7
	.asciz	"krb5_digest_set_type"

l_.str.8:                               ; @.str.8
	.asciz	"krb5_digest_set_username"

l_.str.9:                               ; @.str.9
	.asciz	"krb5_digest_set_server_nonce"

l_.str.10:                              ; @.str.10
	.asciz	"krb5_digest_set_client_nonce"

l_.str.11:                              ; @.str.11
	.asciz	"krb5_digest_set_opaque"

l_.str.12:                              ; @.str.12
	.asciz	"krb5_digest_set_responseData"

	.comm	_id,4,2                         ; @id
l_.str.13:                              ; @.str.13
	.asciz	"krb5_digest_request"

l_.str.14:                              ; @.str.14
	.asciz	"ok"

l_.str.15:                              ; @.str.15
	.asciz	"failed"

l_.str.16:                              ; @.str.16
	.asciz	"status=%s\n"

l_.str.17:                              ; @.str.17
	.asciz	"rsp=%s\n"

l_.str.19:                              ; @.str.19
	.asciz	"krb5_digest_get_session_key"

l_.str.20:                              ; @.str.20
	.asciz	"hex_encode"

l_.str.21:                              ; @.str.21
	.asciz	"session-key=%s\n"

l_str:                                  ; @str
	.asciz	"tickets=no"

.subsections_via_symbols
