	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_tgs_req
_init_tgs_req:                          ## @init_tgs_req
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movl	%edi, %ebx
	movq	48(%rbp), %r15
	movq	$0, -56(%rbp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movl	$5, (%r15)
	movq	_krb_tgs_req@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r15)
	cmpq	$0, 8(%r12)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	leaq	56(%r15), %rdi
	movl	$1, %esi
	callq	_ALLOC_SEQ
	movq	56(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%r12), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_5
LBB0_4:
	movq	_KRB5_PDU_TGS_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	64(%r15), %rdx
	leaq	56(%r15), %rcx
	movl	%ebx, %edi
	xorl	%r8d, %r8d
	callq	__krb5_init_etype
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_25
LBB0_5:
	movq	%r13, 16(%r15)
	movl	%r14d, 52(%r15)
	movq	32(%r12), %rdi
	addq	$4, %rdi
	leaq	48(%r15), %rsi
	callq	_copy_Realm
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_25
## %bb.6:
	movq	40(%r15), %rdi
	movl	$1, %esi
	callq	_ALLOC
	movq	40(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.7:
	movq	32(%r12), %rdi
	callq	_copy_PrincipalName
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_25
## %bb.8:
	movq	32(%r15), %rdi
	movl	$1, %esi
	callq	_ALLOC
	movq	32(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:
	movl	24(%rbp), %ecx
	leaq	8(%r15), %r14
	movups	16(%r12), %xmm0
	movups	%xmm0, (%rax)
	movl	%ecx, (%r14)
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.10:
	movq	24(%r15), %rdi
	movl	$1, %esi
	callq	_ALLOC
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.11:
	movl	$1, %esi
	callq	_ALLOC_SEQ
	movq	24(%r15), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_copy_Ticket
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_25
LBB0_13:
	movq	72(%r15), %rdi
	movl	$1, %esi
	callq	_ALLOC
	movq	72(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.14:
	movq	32(%rbp), %rbx
	movl	(%rbx), %esi
	incl	%esi
	callq	_ALLOC_SEQ
	movq	72(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.15:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	$8, %esi
	movq	$-1, %r13
	xorl	%edi, %edi
	movq	%rbx, %rcx
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx), %rax
	incq	%r13
	cmpq	%rax, %r13
	jae	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rcx, %rbx
	leaq	4(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	8(%rcx), %rdi
	leaq	8(%rsi), %r14
	movq	72(%r15), %rax
	addq	(%rax), %rsi
	callq	_copy_PA_DATA
	movq	%rbx, %rcx
	movq	%r14, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:
	movq	%rax, %rbx
	jmp	LBB0_19
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_19:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_krb5_set_error_message
LBB0_25:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.26:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_auth_con_free
LBB0_27:
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.28:
	movq	$0, 16(%r15)
	movq	%r15, %rdi
	callq	_free_TGS_REQ
LBB0_29:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	-56(%rbp), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_auth_con_init
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_25
## %bb.21:
	movq	-56(%rbp), %rsi
	movq	16(%rbp), %rax
	leaq	8(%rax), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_auth_con_generatelocalsubkey
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_25
## %bb.22:
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_set_auth_data
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_25
## %bb.23:
	movq	-56(%rbp), %rsi
	movq	72(%r15), %rax
	movq	(%rax), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rdx
	movq	16(%rbp), %r8
	callq	_make_pa_tgs_req
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:
	movq	-56(%rbp), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	40(%rbp), %rdx
	callq	_krb5_auth_con_getlocalsubkey
	movq	%rax, %rbx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_krb_tgs_req,4,2                ## @krb_tgs_req
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc: out of memory"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_KRB5_PDU_TGS_REQUEST,4,2       ## @KRB5_PDU_TGS_REQUEST
	.no_dead_strip	_init_tgs_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_tgs_req
_init_tgs_req:                          ; @init_tgs_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, x7
	mov	x21, x6
	mov	x22, x5
	mov	x25, x4
	mov	x24, x3
	mov	x27, x2
	mov	x20, x0
	ldr	x19, [x29, #32]
	str	xzr, [sp, #8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	mov	w8, #5
	str	w8, [x19]
Lloh0:
	adrp	x8, _krb_tgs_req@GOTPAGE
Lloh1:
	ldr	x8, [x8, _krb_tgs_req@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #80]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_3
; %bb.1:
	add	x0, x19, #56
	mov	w1, #1
	bl	_ALLOC_SEQ
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_18
; %bb.2:
	ldr	x9, [x22, #8]
	str	x9, [x8]
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _KRB5_PDU_TGS_REQUEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KRB5_PDU_TGS_REQUEST@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, x19, #64
	add	x3, x19, #56
	mov	x0, x20
	mov	x4, #0
	bl	__krb5_init_etype
	mov	x23, x0
	cbnz	x0, LBB0_20
LBB0_4:
	str	x27, [x19, #16]
	str	w24, [x19, #52]
	ldr	x8, [x22, #32]
	add	x0, x8, #4
	add	x1, x19, #48
	bl	_copy_Realm
	mov	x23, x0
	cbnz	x0, LBB0_20
; %bb.5:
	ldr	x0, [x19, #40]
	mov	w1, #1
	bl	_ALLOC
	ldr	x1, [x19, #40]
	cbz	x1, LBB0_18
; %bb.6:
	ldr	x0, [x22, #32]
	bl	_copy_PrincipalName
	mov	x23, x0
	cbnz	x0, LBB0_20
; %bb.7:
	ldr	x0, [x19, #32]
	mov	w1, #1
	bl	_ALLOC
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_18
; %bb.8:
	add	x24, x19, #8
	ldr	q0, [x22, #16]
	str	q0, [x8]
	str	w26, [x24]
	cbz	x25, LBB0_12
; %bb.9:
	ldr	x0, [x19, #24]
	mov	w1, #1
	bl	_ALLOC
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_18
; %bb.10:
	mov	w1, #1
	bl	_ALLOC_SEQ
	ldr	x8, [x19, #24]
	ldr	x1, [x8]
	cbz	x1, LBB0_18
; %bb.11:
	mov	x0, x25
	bl	_copy_Ticket
	mov	x23, x0
	cbnz	x0, LBB0_20
LBB0_12:
	ldr	x0, [x19, #72]
	mov	w1, #1
	bl	_ALLOC
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_18
; %bb.13:
	ldr	x26, [x29, #16]
	ldr	w8, [x26]
	add	w1, w8, #1
	bl	_ALLOC_SEQ
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.14:
	mov	x8, #0
	ldr	x9, [x29, #24]
	str	x9, [sp]                        ; 8-byte Folded Spill
	mov	x27, #-1
	mov	w9, #8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x26]
	add	x27, x27, #1
	cmp	x27, x10
	b.hs	LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x28, x8, #4
	add	x25, x9, #8
	ldr	x10, [x26, #8]
	add	x0, x10, x8
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	add	x1, x8, x9
	bl	_copy_PA_DATA
	mov	x9, x25
	mov	x8, x28
	cbz	x0, LBB0_15
; %bb.17:
	mov	x23, x0
	b	LBB0_19
LBB0_18:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
LBB0_19:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_krb5_set_error_message
LBB0_20:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_22
; %bb.21:
	mov	x0, x20
	bl	_krb5_auth_con_free
LBB0_22:
	cbz	x23, LBB0_24
; %bb.23:
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_free_TGS_REQ
LBB0_24:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	add	x1, sp, #8
	mov	x0, x20
	bl	_krb5_auth_con_init
	mov	x23, x0
	cbnz	x0, LBB0_20
; %bb.26:
	ldr	x1, [sp, #8]
	add	x2, x21, #8
	mov	x0, x20
	bl	_krb5_auth_con_generatelocalsubkey
	mov	x23, x0
	cbnz	x0, LBB0_20
; %bb.27:
	ldr	x8, [sp, #8]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	bl	_set_auth_data
	mov	x23, x0
	cbnz	x0, LBB0_20
; %bb.28:
	ldr	x1, [sp, #8]
	ldr	x8, [x19, #72]
	ldr	x3, [x8]
	mov	x0, x20
	mov	x2, x24
	mov	x4, x21
	bl	_make_pa_tgs_req
	mov	x23, x0
	cbnz	x0, LBB0_20
; %bb.29:
	ldp	x2, x1, [sp]                    ; 8-byte Folded Reload
	mov	x0, x20
	bl	_krb5_auth_con_getlocalsubkey
	mov	x23, x0
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_krb_tgs_req,4,2                ; @krb_tgs_req
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc: out of memory"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_KRB5_PDU_TGS_REQUEST,4,2       ; @KRB5_PDU_TGS_REQUEST
	.no_dead_strip	_init_tgs_req
.subsections_via_symbols
