	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_tgs_flags
_check_tgs_flags:                       ## @check_tgs_flags
	.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
	pushq	%rax
	.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, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	32(%rdx), %r8
	movq	40(%rdx), %r9
	movq	48(%rdx), %r10
	movq	56(%rdx), %rsi
	movq	64(%rdx), %r11
	movq	72(%rdx), %rdi
	movq	80(%rdx), %rax
	movq	88(%rdx), %rcx
	cmpq	$0, 96(%rdx)
	movl	32(%r13), %edx
	je	LBB0_6
## %bb.1:
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rdx
	movq	_kdc_time@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jle	LBB0_8
## %bb.5:
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_kdc_log
	movq	_KRB5KRB_AP_ERR_TKT_NYV@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_3:
	leaq	L_.str(%rip), %rcx
LBB0_53:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_kdc_log
	movq	_KRB5KDC_ERR_BADOPTION@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_6:
	testl	%edx, %edx
	je	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_kdc_log
	movq	_KRB5KRB_AP_ERR_TKT_INVALID@GOTPCREL(%rip), %rax
LBB0_54:
	movl	(%rax), %ebx
LBB0_55:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$0, 32(%r12)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_9:
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.10:
	cmpl	$0, 36(%r13)
	je	LBB0_11
## %bb.12:
	movl	$1, 36(%r12)
LBB0_13:
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	cmpl	$0, 36(%r13)
	je	LBB0_15
## %bb.16:
	movl	$1, 40(%r12)
	movl	16(%rbx), %eax
	movl	%eax, 64(%r12)
LBB0_17:
	cmpl	$0, 40(%r13)
	je	LBB0_19
## %bb.18:
	movl	$1, 40(%r12)
LBB0_19:
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.20:
	cmpl	$0, 44(%r13)
	je	LBB0_21
## %bb.22:
	movl	$1, 44(%r12)
LBB0_23:
	testq	%r11, %r11
	je	LBB0_27
## %bb.24:
	cmpl	$0, 44(%r13)
	je	LBB0_25
## %bb.26:
	movl	$1, 48(%r12)
	movl	16(%rbx), %eax
	movl	%eax, 64(%r12)
LBB0_27:
	cmpl	$0, 48(%r13)
	je	LBB0_29
## %bb.28:
	movl	$1, 48(%r12)
LBB0_29:
	testq	%rsi, %rsi
	je	LBB0_33
## %bb.30:
	cmpl	$0, 52(%r13)
	je	LBB0_31
## %bb.32:
	movl	$1, 52(%r12)
LBB0_33:
	testq	%r10, %r10
	je	LBB0_43
## %bb.34:
	cmpl	$0, 52(%r13)
	je	LBB0_35
## %bb.36:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_38:
	movl	$1, 56(%r12)
	movl	$1, 32(%r12)
	jmp	LBB0_39
LBB0_11:
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_53
LBB0_15:
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_53
LBB0_21:
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_53
LBB0_25:
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_53
LBB0_43:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_39
## %bb.44:
	movq	_kdc_time@GOTPCREL(%rip), %rcx
	movq	(%r15), %rdx
	addq	(%rcx), %rdx
	cmpq	%rdx, (%rax)
	jle	LBB0_39
## %bb.45:
	leaq	L_.str.9(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_kdc_log
	movq	_KRB5KDC_ERR_CANNOT_POSTDATE@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_39:
	testq	%r9, %r9
	je	LBB0_47
## %bb.40:
	cmpl	$0, 60(%r13)
	je	LBB0_42
## %bb.41:
	cmpq	$0, 24(%r13)
	je	LBB0_42
## %bb.46:
	movl	$1, 60(%r12)
	movq	24(%r12), %rdi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_ALLOC
	leaq	8(%rbx), %rdi
	callq	__kdc_fix_time
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movq	24(%r12), %rcx
	movl	%eax, (%rcx)
LBB0_47:
	xorl	%ebx, %ebx
	testq	%r8, %r8
	je	LBB0_55
## %bb.48:
	cmpl	$0, 60(%r13)
	je	LBB0_52
## %bb.49:
	cmpq	$0, 24(%r13)
	je	LBB0_52
## %bb.50:
	movq	(%r13), %rax
	movq	8(%r13), %rsi
	addq	$16, %r13
	testq	%rax, %rax
	cmovneq	%rax, %r13
	subq	(%r13), %rsi
	movq	(%r12), %rax
	addq	(%rax), %rsi
	movq	24(%r12), %rax
	movq	%rsi, 8(%r12)
	testq	%rax, %rax
	je	LBB0_55
## %bb.51:
	movl	(%rax), %edi
	callq	_min
	movq	%rax, 8(%r12)
	jmp	LBB0_55
LBB0_31:
	leaq	L_.str.7(%rip), %rcx
	jmp	LBB0_53
LBB0_42:
	leaq	L_.str.10(%rip), %rcx
	jmp	LBB0_53
LBB0_35:
	leaq	L_.str.8(%rip), %rcx
	jmp	LBB0_53
LBB0_52:
	leaq	L_.str.11(%rip), %rcx
	jmp	LBB0_53
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad request to validate ticket"

	.comm	_KRB5KDC_ERR_BADOPTION,4,2      ## @KRB5KDC_ERR_BADOPTION
	.comm	_kdc_time,8,3                   ## @kdc_time
L_.str.1:                               ## @.str.1
	.asciz	"Early request to validate ticket"

	.comm	_KRB5KRB_AP_ERR_TKT_NYV,4,2     ## @KRB5KRB_AP_ERR_TKT_NYV
L_.str.2:                               ## @.str.2
	.asciz	"Ticket-granting ticket has INVALID flag set"

	.comm	_KRB5KRB_AP_ERR_TKT_INVALID,4,2 ## @KRB5KRB_AP_ERR_TKT_INVALID
L_.str.3:                               ## @.str.3
	.asciz	"Bad request for forwardable ticket"

L_.str.4:                               ## @.str.4
	.asciz	"Request to forward non-forwardable ticket"

L_.str.5:                               ## @.str.5
	.asciz	"Bad request for proxiable ticket"

L_.str.6:                               ## @.str.6
	.asciz	"Request to proxy non-proxiable ticket"

L_.str.7:                               ## @.str.7
	.asciz	"Bad request for post-datable ticket"

L_.str.8:                               ## @.str.8
	.asciz	"Bad request for postdated ticket"

L_.str.9:                               ## @.str.9
	.asciz	"Ticket cannot be postdated"

	.comm	_KRB5KDC_ERR_CANNOT_POSTDATE,4,2 ## @KRB5KDC_ERR_CANNOT_POSTDATE
L_.str.10:                              ## @.str.10
	.asciz	"Bad request for renewable ticket"

L_.str.11:                              ## @.str.11
	.asciz	"Request to renew non-renewable ticket"

	.no_dead_strip	_check_tgs_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_tgs_flags
_check_tgs_flags:                       ; @check_tgs_flags
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldp	x24, x8, [x2, #32]
	ldp	x9, x10, [x2, #48]
	ldp	x11, x12, [x2, #64]
	ldp	x13, x14, [x2, #80]
	ldr	x16, [x2, #96]
	ldr	w15, [x3, #32]
	cbz	x16, LBB0_7
; %bb.1:
	cbz	w15, LBB0_5
; %bb.2:
	ldr	x15, [x22]
	cbz	x15, LBB0_5
; %bb.3:
	ldr	x15, [x15]
Lloh0:
	adrp	x16, _kdc_time@GOTPAGE
Lloh1:
	ldr	x16, [x16, _kdc_time@GOTPAGEOFF]
Lloh2:
	ldr	x16, [x16]
	cmp	x15, x16
	b.le	LBB0_11
; %bb.4:
Lloh3:
	adrp	x3, l_.str.1@PAGE
Lloh4:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_kdc_log
Lloh5:
	adrp	x8, _KRB5KRB_AP_ERR_TKT_NYV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KRB5KRB_AP_ERR_TKT_NYV@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_kdc_log
Lloh9:
	adrp	x8, _KRB5KDC_ERR_BADOPTION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KRB5KDC_ERR_BADOPTION@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	cbz	w15, LBB0_12
; %bb.8:
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_kdc_log
Lloh13:
	adrp	x8, _KRB5KRB_AP_ERR_TKT_INVALID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KRB5KRB_AP_ERR_TKT_INVALID@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	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_11:
	str	wzr, [x21, #32]
LBB0_12:
	cbz	x14, LBB0_15
; %bb.13:
	ldr	w14, [x22, #36]
	cbz	w14, LBB0_36
; %bb.14:
	mov	w14, #1
	str	w14, [x21, #36]
LBB0_15:
	cbz	x13, LBB0_18
; %bb.16:
	ldr	w13, [x22, #36]
	cbz	w13, LBB0_37
; %bb.17:
	mov	w13, #1
	str	w13, [x21, #40]
	ldr	w13, [x23, #16]
	str	w13, [x21, #64]
LBB0_18:
	ldr	w13, [x22, #40]
	cbz	w13, LBB0_20
; %bb.19:
	mov	w13, #1
	str	w13, [x21, #40]
LBB0_20:
	cbz	x12, LBB0_23
; %bb.21:
	ldr	w12, [x22, #44]
	cbz	w12, LBB0_38
; %bb.22:
	mov	w12, #1
	str	w12, [x21, #44]
LBB0_23:
	cbz	x11, LBB0_26
; %bb.24:
	ldr	w11, [x22, #44]
	cbz	w11, LBB0_39
; %bb.25:
	mov	w11, #1
	str	w11, [x21, #48]
	ldr	w11, [x23, #16]
	str	w11, [x21, #64]
LBB0_26:
	ldr	w11, [x22, #48]
	cbz	w11, LBB0_28
; %bb.27:
	mov	w11, #1
	str	w11, [x21, #48]
LBB0_28:
	cbz	x10, LBB0_31
; %bb.29:
	ldr	w10, [x22, #52]
	cbz	w10, LBB0_52
; %bb.30:
	mov	w10, #1
	str	w10, [x21, #52]
LBB0_31:
	cbz	x9, LBB0_40
; %bb.32:
	ldr	w9, [x22, #52]
	cbz	w9, LBB0_54
; %bb.33:
	ldr	x9, [x23]
	cbz	x9, LBB0_35
; %bb.34:
	ldr	x9, [x9]
	ldr	x10, [x21]
	str	x9, [x10]
LBB0_35:
	mov	w9, #1
	str	w9, [x21, #56]
	str	w9, [x21, #32]
	b	LBB0_43
LBB0_36:
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_37:
Lloh17:
	adrp	x3, l_.str.4@PAGE
Lloh18:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_38:
Lloh19:
	adrp	x3, l_.str.5@PAGE
Lloh20:
	add	x3, x3, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_39:
Lloh21:
	adrp	x3, l_.str.6@PAGE
Lloh22:
	add	x3, x3, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_40:
	ldr	x9, [x23]
	cbz	x9, LBB0_43
; %bb.41:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _kdc_time@GOTPAGE
Lloh24:
	ldr	x10, [x10, _kdc_time@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	ldr	x11, [x20]
	add	x10, x11, x10
	cmp	x9, x10
	b.le	LBB0_43
; %bb.42:
Lloh26:
	adrp	x3, l_.str.9@PAGE
Lloh27:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_kdc_log
Lloh28:
	adrp	x8, _KRB5KDC_ERR_CANNOT_POSTDATE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _KRB5KDC_ERR_CANNOT_POSTDATE@GOTPAGEOFF]
	b	LBB0_9
LBB0_43:
	cbz	x8, LBB0_47
; %bb.44:
	ldr	w8, [x22, #60]
	cbz	w8, LBB0_53
; %bb.45:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_53
; %bb.46:
	mov	w8, #1
	str	w8, [x21, #60]
	ldr	x0, [x21, #24]
	bl	_ALLOC
	add	x0, x23, #8
	bl	__kdc_fix_time
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	ldr	x9, [x21, #24]
	str	w8, [x9]
LBB0_47:
	cbz	x24, LBB0_55
; %bb.48:
	ldr	w8, [x22, #60]
	cbz	w8, LBB0_56
; %bb.49:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_56
; %bb.50:
	ldp	x9, x8, [x22]
	add	x10, x22, #16
	cmp	x9, #0
	csel	x9, x10, x9, eq
	ldr	x9, [x9]
	ldr	x10, [x21]
	ldr	x10, [x10]
	sub	x8, x8, x9
	add	x1, x10, x8
	str	x1, [x21, #8]
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_55
; %bb.51:
	ldr	w0, [x8]
	bl	_min
	mov	x8, x0
	mov	w0, #0
	str	x8, [x21, #8]
	b	LBB0_10
LBB0_52:
Lloh30:
	adrp	x3, l_.str.7@PAGE
Lloh31:
	add	x3, x3, l_.str.7@PAGEOFF
	b	LBB0_6
LBB0_53:
Lloh32:
	adrp	x3, l_.str.10@PAGE
Lloh33:
	add	x3, x3, l_.str.10@PAGEOFF
	b	LBB0_6
LBB0_54:
Lloh34:
	adrp	x3, l_.str.8@PAGE
Lloh35:
	add	x3, x3, l_.str.8@PAGEOFF
	b	LBB0_6
LBB0_55:
	mov	w0, #0
	b	LBB0_10
LBB0_56:
Lloh36:
	adrp	x3, l_.str.11@PAGE
Lloh37:
	add	x3, x3, l_.str.11@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad request to validate ticket"

	.comm	_KRB5KDC_ERR_BADOPTION,4,2      ; @KRB5KDC_ERR_BADOPTION
	.comm	_kdc_time,8,3                   ; @kdc_time
l_.str.1:                               ; @.str.1
	.asciz	"Early request to validate ticket"

	.comm	_KRB5KRB_AP_ERR_TKT_NYV,4,2     ; @KRB5KRB_AP_ERR_TKT_NYV
l_.str.2:                               ; @.str.2
	.asciz	"Ticket-granting ticket has INVALID flag set"

	.comm	_KRB5KRB_AP_ERR_TKT_INVALID,4,2 ; @KRB5KRB_AP_ERR_TKT_INVALID
l_.str.3:                               ; @.str.3
	.asciz	"Bad request for forwardable ticket"

l_.str.4:                               ; @.str.4
	.asciz	"Request to forward non-forwardable ticket"

l_.str.5:                               ; @.str.5
	.asciz	"Bad request for proxiable ticket"

l_.str.6:                               ; @.str.6
	.asciz	"Request to proxy non-proxiable ticket"

l_.str.7:                               ; @.str.7
	.asciz	"Bad request for post-datable ticket"

l_.str.8:                               ; @.str.8
	.asciz	"Bad request for postdated ticket"

l_.str.9:                               ; @.str.9
	.asciz	"Ticket cannot be postdated"

	.comm	_KRB5KDC_ERR_CANNOT_POSTDATE,4,2 ; @KRB5KDC_ERR_CANNOT_POSTDATE
l_.str.10:                              ; @.str.10
	.asciz	"Bad request for renewable ticket"

l_.str.11:                              ; @.str.11
	.asciz	"Request to renew non-renewable ticket"

	.no_dead_strip	_check_tgs_flags
.subsections_via_symbols
