	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_service_keyblock
_get_service_keyblock:                  ## @get_service_keyblock
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_krb5_storage_emem
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_HEIMDAL_MUTEX_lock
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	callq	_krb5_data_zero
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_krb5_store_keyblock
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.5:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_krb5_storage_to_data
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_gss_add_buffer_set_member
	movq	%rax, %r15
	xorl	%ebx, %ebx
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_krb5_data_free
	movq	%r13, %rdi
	callq	_krb5_storage_free
	testq	%rbx, %rbx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	callq	__gsskrb5_clear_status
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_8
LBB0_3:
	movq	%r12, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	movq	%r13, %rdi
	callq	_krb5_storage_free
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	__gsskrb5_set_status
	movq	(%rbx), %rbx
LBB0_8:
	movq	%rbx, (%r14)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_9:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No service keyblock on gssapi context"

	.no_dead_strip	_get_service_keyblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_service_keyblock
_get_service_keyblock:                  ; @get_service_keyblock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_krb5_storage_emem
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x24
	bl	_HEIMDAL_MUTEX_lock
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_7
; %bb.2:
	add	x0, sp, #8
	bl	_krb5_data_zero
	ldr	x8, [x24, #8]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_krb5_store_keyblock
	mov	x23, x0
	mov	x0, x24
	bl	_HEIMDAL_MUTEX_unlock
	cbnz	x23, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_krb5_storage_to_data
	mov	x23, x0
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	d0, [sp, #8]
	str	d0, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	x2, x22
	bl	_gss_add_buffer_set_member
	mov	x21, x0
LBB0_5:
	add	x0, sp, #8
	bl	_krb5_data_free
	mov	x0, x20
	bl	_krb5_storage_free
	cbnz	x23, LBB0_8
	b	LBB0_9
LBB0_6:
	bl	__gsskrb5_clear_status
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	b	LBB0_8
LBB0_7:
	mov	x0, x24
	bl	_HEIMDAL_MUTEX_unlock
	mov	x0, x20
	bl	_krb5_storage_free
Lloh6:
	adrp	x20, _EINVAL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	__gsskrb5_set_status
	ldr	x23, [x20]
LBB0_8:
	str	x23, [x19]
Lloh10:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No service keyblock on gssapi context"

	.no_dead_strip	_get_service_keyblock
.subsections_via_symbols
