	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5_get_tkt_flags         ## -- Begin function _gsskrb5_get_tkt_flags
	.p2align	4, 0x90
__gsskrb5_get_tkt_flags:                ## @_gsskrb5_get_tkt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_HEIMDAL_MUTEX_lock
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rax), %edi
	callq	_TicketFlags2int
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GSS_S_NO_CONTEXT@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GSS_S_BAD_MECH@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	%rax, (%r14)
	movq	(%rcx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_GSS_S_NO_CONTEXT,8,3           ## @GSS_S_NO_CONTEXT
	.comm	_GSS_S_BAD_MECH,8,3             ## @GSS_S_BAD_MECH
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5_get_tkt_flags         ; -- Begin function _gsskrb5_get_tkt_flags
	.p2align	2
__gsskrb5_get_tkt_flags:                ; @_gsskrb5_get_tkt_flags
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x0, x1
	bl	_HEIMDAL_MUTEX_lock
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x8]
	bl	_TicketFlags2int
	str	x0, [x21]
	mov	x0, x20
	bl	_HEIMDAL_MUTEX_unlock
	mov	x8, #0
Lloh0:
	adrp	x9, _GSS_S_COMPLETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _GSS_S_NO_CONTEXT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GSS_S_NO_CONTEXT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_HEIMDAL_MUTEX_unlock
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _GSS_S_BAD_MECH@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GSS_S_BAD_MECH@GOTPAGEOFF]
LBB0_5:
	str	x8, [x19]
	ldr	x0, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_GSS_S_NO_CONTEXT,8,3           ; @GSS_S_NO_CONTEXT
	.comm	_GSS_S_BAD_MECH,8,3             ; @GSS_S_BAD_MECH
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
.subsections_via_symbols
