	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kdc_tgs_rep                   ## -- Begin function _kdc_tgs_rep
	.p2align	4, 0x90
__kdc_tgs_rep:                          ## @_kdc_tgs_rep
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movl	%edi, %r15d
	movq	$0, -56(%rbp)
	movl	$0, -116(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	_ETYPE_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -88(%rbp)
	movl	$0, -44(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	cmpq	$0, 8(%rdx)
	je	LBB0_5
## %bb.1:
	movq	%r9, %rbx
	movq	%rdx, %r14
	movq	_KRB5_PADATA_TGS_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-116(%rbp), %rsi
	movq	%r14, %rdi
	callq	__kdc_find_padata
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	subq	$8, %rsp
	leaq	-56(%rbp), %r10
	leaq	-96(%rbp), %r11
	leaq	-112(%rbp), %r8
	leaq	-48(%rbp), %r9
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	leaq	-44(%rbp), %rax
	pushq	%rax
	leaq	-88(%rbp), %rax
	pushq	%rax
	pushq	%r10
	leaq	-72(%rbp), %rax
	pushq	%rax
	leaq	-80(%rbp), %rax
	pushq	%rax
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	pushq	%rbx
	pushq	%r12
	pushq	%r11
	leaq	-104(%rbp), %rax
	pushq	%rax
	callq	_tgs_parse_request
	addq	$80, %rsp
	movq	%rax, %rbx
	movq	_HDB_ERR_NOT_FOUND_HERE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.4:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_KRB5KDC_ERR_PREAUTH_REQUIRED@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_KRB5KDC_ERR_PADATA_TYPE_NOSUPP@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str.1(%rip), %rcx
LBB0_7:
	movl	%r15d, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_kdc_log
LBB0_8:
	movq	-88(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movl	%r15d, %edi
	callq	_krb5_free_keyblock
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.11:
	movq	_HDB_ERR_NOT_FOUND_HERE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_15
## %bb.12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	jne	LBB0_15
## %bb.13:
	subq	$8, %rsp
	movl	%r15d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	-72(%rbp)
	pushq	-80(%rbp)
	callq	_krb5_mk_error
	addq	$32, %rsp
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	-80(%rbp), %rdi
	callq	_free
	movq	-72(%rbp), %rdi
	callq	_free
	movq	-104(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:
	movl	%r15d, %edi
	callq	_krb5_free_ticket
LBB0_17:
	movq	-112(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.18:
	movl	%r15d, %edi
	callq	__kdc_free_ent
LBB0_19:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_free_AuthorizationData
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_21:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-112(%rbp), %r8
	movl	-48(%rbp), %r9d
	movl	-44(%rbp), %eax
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r14, %rcx
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	leaq	-56(%rbp), %rbx
	pushq	%rbx
	leaq	-96(%rbp), %rbx
	pushq	%rbx
	pushq	%r12
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)
	pushq	%rax
	pushq	-88(%rbp)
	callq	_tgs_build_reply
	addq	$64, %rsp
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_7
LBB0_24:
	cmpl	$0, 16(%rbp)
	je	LBB0_28
## %bb.25:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	cmpq	(%r13), %rax
	jle	LBB0_28
## %bb.26:
	callq	_krb5_data_free
	movq	_KRB5KRB_ERR_RESPONSE_TOO_BIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -96(%rbp)
	jmp	LBB0_8
LBB0_28:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ETYPE_NULL,4,2                 ## @ETYPE_NULL
	.comm	_KRB5KDC_ERR_PREAUTH_REQUIRED,8,3 ## @KRB5KDC_ERR_PREAUTH_REQUIRED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TGS-REQ from %s without PA-DATA"

	.comm	_KRB5_PADATA_TGS_REQ,4,2        ## @KRB5_PADATA_TGS_REQ
	.comm	_KRB5KDC_ERR_PADATA_TYPE_NOSUPP,8,3 ## @KRB5KDC_ERR_PADATA_TYPE_NOSUPP
L_.str.1:                               ## @.str.1
	.asciz	"TGS-REQ from %s without PA-TGS-REQ"

	.comm	_HDB_ERR_NOT_FOUND_HERE,8,3     ## @HDB_ERR_NOT_FOUND_HERE
L_.str.2:                               ## @.str.2
	.asciz	"Failed parsing TGS-REQ from %s"

L_.str.3:                               ## @.str.3
	.asciz	"Failed building TGS-REP to %s"

	.comm	_KRB5KRB_ERR_RESPONSE_TOO_BIG,8,3 ## @KRB5KRB_ERR_RESPONSE_TOO_BIG
L_.str.4:                               ## @.str.4
	.asciz	"Reply packet too large"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kdc_tgs_rep                   ; -- Begin function _kdc_tgs_rep
	.p2align	2
__kdc_tgs_rep:                          ; @_kdc_tgs_rep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x20, x3
	mov	x23, x1
	mov	x19, x0
	stur	xzr, [x29, #-88]
	stur	wzr, [x29, #-92]
	stur	xzr, [x29, #-104]
	stp	xzr, xzr, [sp, #104]
Lloh0:
	adrp	x8, _ETYPE_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETYPE_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #100]
	str	xzr, [sp, #88]
	str	wzr, [sp, #84]
	stp	xzr, xzr, [sp, #64]
	ldr	x8, [x2, #8]
Lloh3:
	adrp	x27, _HDB_ERR_NOT_FOUND_HERE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _HDB_ERR_NOT_FOUND_HERE@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x24, x6
	mov	x26, x5
	mov	x25, x2
Lloh5:
	adrp	x8, _KRB5_PADATA_TGS_REQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KRB5_PADATA_TGS_REQ@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	sub	x1, x29, #92
	mov	x0, x25
	bl	__kdc_find_padata
	cbz	x0, LBB0_6
; %bb.2:
	mov	x3, x0
	add	x8, sp, #84
	str	x8, [sp, #48]
	add	x8, sp, #88
	sub	x9, x29, #88
	stp	x9, x8, [sp, #32]
	add	x8, sp, #64
	add	x9, sp, #72
	sub	x4, x29, #104
	add	x5, sp, #100
	stp	x9, x8, [sp, #16]
	stp	x22, x26, [sp]
	add	x6, sp, #112
	add	x7, sp, #104
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	bl	_tgs_parse_request
	mov	x21, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.3:
	cbz	x21, LBB0_21
; %bb.4:
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _KRB5KDC_ERR_PREAUTH_REQUIRED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KRB5KDC_ERR_PREAUTH_REQUIRED@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _KRB5KDC_ERR_PADATA_TYPE_NOSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KRB5KDC_ERR_PADATA_TYPE_NOSUPP@GOTPAGEOFF]
Lloh17:
	ldr	x21, [x8]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	mov	x4, x22
	bl	_kdc_log
LBB0_8:
	ldr	x1, [sp, #88]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_krb5_free_keyblock
LBB0_10:
	cbz	x21, LBB0_14
; %bb.11:
	ldr	x8, [x27]
	cmp	x21, x8
	b.eq	LBB0_14
; %bb.12:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_14
; %bb.13:
	ldp	x7, x6, [sp, #64]
	str	x20, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_krb5_mk_error
	mov	x21, #0
LBB0_14:
	ldr	x0, [sp, #72]
	bl	_free
	ldr	x0, [sp, #64]
	bl	_free
	ldr	x1, [sp, #112]
	cbz	x1, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_krb5_free_ticket
LBB0_16:
	ldur	x1, [x29, #-104]
	cbz	x1, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	__kdc_free_ent
LBB0_18:
	ldur	x0, [x29, #-88]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_free_AuthorizationData
	ldur	x0, [x29, #-88]
	bl	_free
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_21:
	ldur	x4, [x29, #-104]
	ldr	w5, [sp, #100]
	ldr	x6, [sp, #88]
	ldr	w7, [sp, #84]
	ldr	x8, [sp, #112]
	sub	x9, x29, #88
	stp	x9, x26, [sp, #32]
	add	x9, sp, #104
	stp	x22, x9, [sp, #16]
	stp	x8, x20, [sp]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	mov	x3, x25
	bl	_tgs_build_reply
	cbz	x0, LBB0_23
; %bb.22:
	mov	x21, x0
Lloh20:
	adrp	x3, l_.str.3@PAGE
Lloh21:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_23:
	cbz	w24, LBB0_26
; %bb.24:
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.le	LBB0_26
; %bb.25:
	mov	x0, x20
	bl	_krb5_data_free
Lloh22:
	adrp	x8, _KRB5KRB_ERR_RESPONSE_TOO_BIG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KRB5KRB_ERR_RESPONSE_TOO_BIG@GOTPAGEOFF]
Lloh24:
	ldr	x21, [x8]
Lloh25:
	adrp	x8, l_.str.4@PAGE
Lloh26:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [sp, #104]
	b	LBB0_8
LBB0_26:
	mov	x21, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ETYPE_NULL,4,2                 ; @ETYPE_NULL
	.comm	_KRB5KDC_ERR_PREAUTH_REQUIRED,8,3 ; @KRB5KDC_ERR_PREAUTH_REQUIRED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TGS-REQ from %s without PA-DATA"

	.comm	_KRB5_PADATA_TGS_REQ,4,2        ; @KRB5_PADATA_TGS_REQ
	.comm	_KRB5KDC_ERR_PADATA_TYPE_NOSUPP,8,3 ; @KRB5KDC_ERR_PADATA_TYPE_NOSUPP
l_.str.1:                               ; @.str.1
	.asciz	"TGS-REQ from %s without PA-TGS-REQ"

	.comm	_HDB_ERR_NOT_FOUND_HERE,8,3     ; @HDB_ERR_NOT_FOUND_HERE
l_.str.2:                               ; @.str.2
	.asciz	"Failed parsing TGS-REQ from %s"

l_.str.3:                               ; @.str.3
	.asciz	"Failed building TGS-REP to %s"

	.comm	_KRB5KRB_ERR_RESPONSE_TOO_BIG,8,3 ; @KRB5KRB_ERR_RESPONSE_TOO_BIG
l_.str.4:                               ; @.str.4
	.asciz	"Reply packet too large"

.subsections_via_symbols
