	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_PAC
_check_PAC:                             ## @check_PAC
	.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
	movq	56(%rbp), %rax
	movq	8(%rax), %r15
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_19
## %bb.1:
	cmpl	$0, (%r15)
	je	LBB0_19
## %bb.2:
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	_KRB5_AUTHDATA_IF_RELEVANT@GOTPCREL(%rip), %rbx
	leaq	-96(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_free_AuthorizationData
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movl	(%r15), %eax
	cmpq	%rax, %r12
	jae	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%r15), %rax
	movq	%r12, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdx
	cmpq	(%rbx), %rdx
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rax,%rcx), %esi
	movl	12(%rax,%rcx), %edi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_decode_AuthorizationData
	testl	%eax, %eax
	jne	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-96(%rbp), %eax
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rcx
	movq	_KRB5_AUTHDATA_WIN2K_PAC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, (%rcx,%rsi)
	je	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	addq	$16, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_7
	jmp	LBB0_16
LBB0_8:
	movl	$0, -52(%rbp)
	movl	8(%rcx,%rsi), %edx
	movl	12(%rcx,%rsi), %esi
	leaq	-44(%rbp), %r13
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r13, %rcx
	callq	_krb5_pac_parse
	movl	%eax, %r14d
	leaq	-96(%rbp), %rdi
	callq	_free_AuthorizationData
	testl	%r14d, %r14d
	jne	LBB0_19
## %bb.9:
	movl	-44(%rbp), %esi
	movq	56(%rbp), %r12
	movl	(%r12), %edx
	movl	%ebx, %edi
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	movq	24(%rbp), %r8
	movq	32(%rbp), %r9
	callq	_krb5_pac_verify
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	leaq	-52(%rbp), %rax
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	16(%rbp), %r9
	pushq	%rax
	pushq	%r13
	callq	__kdc_pac_verify
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	cmpl	$0, -52(%rbp)
	je	LBB0_12
## %bb.13:
	movq	72(%rbp), %rax
	movl	$1, (%rax)
	movl	-44(%rbp), %esi
	movl	(%r12), %edx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%r15d, %ecx
	movq	40(%rbp), %r8
	movq	48(%rbp), %r9
	pushq	64(%rbp)
	callq	__krb5_pac_sign
	addq	$16, %rsp
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_20:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	%eax, %ecx
	callq	_krb5_set_error_message
	jmp	LBB0_19
LBB0_12:
	xorl	%r14d, %r14d
LBB0_14:
	movl	-44(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_pac_free
LBB0_19:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_AUTHDATA_IF_RELEVANT,8,3  ## @KRB5_AUTHDATA_IF_RELEVANT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to decode IF_RELEVANT with %d"

	.comm	_KRB5_AUTHDATA_WIN2K_PAC,8,3    ## @KRB5_AUTHDATA_WIN2K_PAC
	.no_dead_strip	_check_PAC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_PAC
_check_PAC:                             ; @check_PAC
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	x25, [x29, #40]
	ldr	x21, [x25, #8]
	cbz	x21, LBB0_11
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x28, x7
	mov	x26, x4
	mov	x27, x3
	mov	x20, x2
	mov	x19, x0
	stp	x5, x6, [sp, #32]               ; 16-byte Folded Spill
	mov	x23, #0
	ldr	x8, [x29, #56]
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x29, #48]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x29, #32]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x8, [x29, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x29, #16]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x24, _KRB5_AUTHDATA_IF_RELEVANT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _KRB5_AUTHDATA_IF_RELEVANT@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #64
	bl	_free_AuthorizationData
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	w8, [x21]
	cmp	x23, x8
	b.hs	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x21, #8]
	lsl	x9, x23, #4
	ldr	x9, [x8, x9]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x23, lsl #4
	ldp	w1, w0, [x8, #8]
	add	x2, sp, #64
	mov	x3, #0
	bl	_decode_AuthorizationData
	cbnz	w0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #64]
	cbz	w8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [sp, #72]
Lloh2:
	adrp	x10, _KRB5_AUTHDATA_WIN2K_PAC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _KRB5_AUTHDATA_WIN2K_PAC@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	add	x9, x9, #12
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x11, [x9, #-12]
	cmp	x11, x10
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_9
	b	LBB0_3
LBB0_11:
	mov	w22, #0
	b	LBB0_20
LBB0_12:
	str	wzr, [sp, #60]
	ldp	w2, w1, [x9, #-4]
	add	x3, sp, #56
	mov	x0, x19
	bl	_krb5_pac_parse
	mov	x22, x0
	add	x0, sp, #64
	bl	_free_AuthorizationData
	cbnz	w22, LBB0_20
; %bb.13:
	ldr	w1, [sp, #56]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x3, x20
	mov	x4, x28
	ldr	x5, [sp, #48]                   ; 8-byte Folded Reload
	bl	_krb5_pac_verify
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.14:
	add	x6, sp, #56
	add	x7, sp, #60
	mov	x0, x19
	mov	x1, x20
	mov	x2, x27
	mov	x3, x26
	ldp	x4, x5, [sp, #32]               ; 16-byte Folded Reload
	bl	__kdc_pac_verify
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.15:
	ldr	w8, [sp, #60]
	cbz	w8, LBB0_18
; %bb.16:
	mov	w8, #1
	ldp	x9, x4, [sp]                    ; 16-byte Folded Reload
	str	w8, [x9]
	ldr	w1, [sp, #56]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x3, x20
	ldp	x5, x6, [sp, #16]               ; 16-byte Folded Reload
	bl	__krb5_pac_sign
	mov	x22, x0
	b	LBB0_19
LBB0_17:
	mov	x22, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x3, x22
	bl	_krb5_set_error_message
	b	LBB0_20
LBB0_18:
	mov	w22, #0
LBB0_19:
	ldr	w1, [sp, #56]
	mov	x0, x19
	bl	_krb5_pac_free
LBB0_20:
	mov	x0, x22
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_AUTHDATA_IF_RELEVANT,8,3  ; @KRB5_AUTHDATA_IF_RELEVANT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to decode IF_RELEVANT with %d"

	.comm	_KRB5_AUTHDATA_WIN2K_PAC,8,3    ; @KRB5_AUTHDATA_WIN2K_PAC
	.no_dead_strip	_check_PAC
.subsections_via_symbols
