	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inquire_sec_context_get_subkey
_inquire_sec_context_get_subkey:        ## @inquire_sec_context_get_subkey
	.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	%r8, %r13
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rdi
	callq	_krb5_data_zero
	xorl	%eax, %eax
	callq	_krb5_storage_emem
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_HEIMDAL_MUTEX_lock
	cmpl	$128, %r12d
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_7
## %bb.2:
	cmpl	$129, %r12d
	je	LBB0_6
## %bb.3:
	cmpl	$130, %r12d
	jne	LBB0_8
## %bb.4:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	__gsskrb5i_get_acceptor_subkey
	movq	%rax, %r13
	jmp	LBB0_9
LBB0_19:
	xorl	%eax, %eax
	callq	__gsskrb5_clear_status
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	-64(%rbp), %rdi
	callq	_krb5_data_free
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%r13, %r13
	jne	LBB0_17
	jmp	LBB0_18
LBB0_7:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	__gsskrb5i_get_token_key
	movq	%rax, %r13
	jmp	LBB0_9
LBB0_6:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	__gsskrb5i_get_initiator_subkey
	movq	%rax, %r13
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	__gsskrb5_set_status
	movq	(%r13), %r13
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	testq	%r13, %r13
	je	LBB0_10
LBB0_15:
	leaq	-64(%rbp), %rdi
	callq	_krb5_data_free
	movq	%r15, %rdi
	callq	_krb5_storage_free
	testq	%r13, %r13
	je	LBB0_18
LBB0_17:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_18:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_krb5_store_keyblock
	movq	%rax, %r13
	movq	-56(%rbp), %rsi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_free_keyblock
	testq	%r13, %r13
	jne	LBB0_15
## %bb.13:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_krb5_storage_to_data
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
	leaq	-96(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_gss_add_buffer_set_member
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	__gsskrb5_set_status
	movq	(%r14), %r13
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d is not a valid subkey type"

L_.str.1:                               ## @.str.1
	.asciz	"have no subkey of type %d"

	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.no_dead_strip	_inquire_sec_context_get_subkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inquire_sec_context_get_subkey
_inquire_sec_context_get_subkey:        ; @inquire_sec_context_get_subkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x4
	mov	x24, x3
	mov	x23, x2
	mov	x25, x1
	mov	x19, x0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	add	x0, sp, #16
	bl	_krb5_data_zero
	bl	_krb5_storage_emem
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x25
	bl	_HEIMDAL_MUTEX_lock
	cmp	w24, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w24, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w24, #130
	b.ne	LBB0_8
; %bb.4:
	add	x2, sp, #24
	mov	x0, x25
	mov	x1, x23
	bl	__gsskrb5i_get_acceptor_subkey
	mov	x26, x0
	b	LBB0_9
LBB0_5:
	bl	__gsskrb5_clear_status
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	add	x0, sp, #16
	bl	_krb5_data_free
	cbnz	x26, LBB0_11
	b	LBB0_12
LBB0_6:
	add	x2, sp, #24
	mov	x0, x25
	mov	x1, x23
	bl	__gsskrb5i_get_token_key
	mov	x26, x0
	b	LBB0_9
LBB0_7:
	add	x2, sp, #24
	mov	x0, x25
	mov	x1, x23
	bl	__gsskrb5i_get_initiator_subkey
	mov	x26, x0
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x26, _EINVAL@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
	ldr	x0, [x26]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	__gsskrb5_set_status
	ldr	x26, [x26]
LBB0_9:
	mov	x0, x25
	bl	_HEIMDAL_MUTEX_unlock
	cbz	x26, LBB0_13
LBB0_10:
	add	x0, sp, #16
	bl	_krb5_data_free
	mov	x0, x21
	bl	_krb5_storage_free
	cbz	x26, LBB0_12
LBB0_11:
	str	x26, [x19]
Lloh10:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	x20, [x8]
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_17
; %bb.14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_krb5_store_keyblock
	mov	x26, x0
	ldr	x1, [sp, #24]
	mov	x0, x23
	bl	_krb5_free_keyblock
	cbnz	x26, LBB0_10
; %bb.15:
	add	x1, sp, #16
	mov	x0, x21
	bl	_krb5_storage_to_data
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.16:
	ldr	d0, [sp, #16]
	str	d0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	bl	_gss_add_buffer_set_member
	mov	x20, x0
	b	LBB0_10
LBB0_17:
Lloh13:
	adrp	x22, _EINVAL@GOTPAGE
Lloh14:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	bl	__gsskrb5_set_status
	ldr	x26, [x22]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d is not a valid subkey type"

l_.str.1:                               ; @.str.1
	.asciz	"have no subkey of type %d"

	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.no_dead_strip	_inquire_sec_context_get_subkey
.subsections_via_symbols
