	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gssapi_mic_cfx                ## -- Begin function _gssapi_mic_cfx
	.p2align	4, 0x90
__gssapi_mic_cfx:                       ## @_gssapi_mic_cfx
	.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	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movslq	(%r8), %r14
	leaq	24(%r14), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rsi
	movq	%rax, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	(%rbx), %rax
	leaq	(%rax,%rax,2), %rbx
	movq	(%r12,%rbx,8), %rax
	movabsq	$17179869188, %rcx              ## imm = 0x400000004
	movq	%rcx, (%rax)
	leaq	20(%r12,%rbx,8), %rax
	movl	$0, 20(%r12,%rbx,8)
	movl	(%r15), %edx
	movq	_LOCAL@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	testl	%edx, (%rsi)
	jne	LBB0_4
## %bb.3:
	movq	_CFXSentByAcceptor@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_4:
	movq	_ACCEPTOR_SUBKEY@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_6
## %bb.5:
	movq	_CFXAcceptorSubkey@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
LBB0_6:
	movl	16(%r12,%rbx,8), %edi
	movl	$255, %esi
	movl	$5, %edx
	callq	_memset
	leaq	8(%r15), %r13
	movq	%r13, %rdi
	callq	_HEIMDAL_MUTEX_lock
	movl	12(%r15), %esi
	leaq	-44(%rbp), %rdx
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_krb5_auth_con_getlocalseqnumber
	movq	8(%r12,%rbx,8), %rsi
	xorl	%edi, %edi
	callq	__gsskrb5_encode_be_om_uint32
	movl	-44(%rbp), %edi
	movq	8(%r12,%rbx,8), %rsi
	addq	$16, %rsi
	callq	__gsskrb5_encode_be_om_uint32
	movl	12(%r15), %esi
	movl	-44(%rbp), %edx
	incl	%edx
	movl	%edx, -44(%rbp)
	movl	%r14d, %edi
	callq	_krb5_auth_con_setlocalseqnumber
	movq	%r13, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	movq	_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	jne	LBB0_7
## %bb.8:
	movq	_KRB5_KU_USAGE_ACCEPTOR_SIGN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	movq	_KRB5_KU_USAGE_INITIATOR_SIGN@GOTPCREL(%rip), %rax
LBB0_9:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%r15), %esi
	leaq	-72(%rbp), %rax
	movq	%rax, (%rsp)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_krb5_create_checksum
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, (%r13)
LBB0_11:
	movq	%r12, %rdi
	callq	_free
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movl	-72(%rbp), %eax
	addl	$24, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movslq	%eax, %rdi
	callq	_malloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	leaq	(%r12,%rbx,8), %rsi
	movq	%rax, %rdi
	movl	$24, %edx
	callq	_memcpy
	movl	$576, %edi                      ## imm = 0x240
	addq	8(%r14), %rdi
	movq	-64(%rbp), %rsi
	movl	-72(%rbp), %edx
	callq	_memcpy
	leaq	-72(%rbp), %rdi
	callq	_free_Checksum
	movq	%r12, %rdi
	callq	_free
	movq	$0, (%r13)
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	leaq	-72(%rbp), %rdi
	callq	_free_Checksum
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_LOCAL,4,2                      ## @LOCAL
	.comm	_CFXSentByAcceptor,4,2          ## @CFXSentByAcceptor
	.comm	_ACCEPTOR_SUBKEY,4,2            ## @ACCEPTOR_SUBKEY
	.comm	_CFXAcceptorSubkey,4,2          ## @CFXAcceptorSubkey
	.comm	_KRB5_KU_USAGE_INITIATOR_SIGN,4,2 ## @KRB5_KU_USAGE_INITIATOR_SIGN
	.comm	_KRB5_KU_USAGE_ACCEPTOR_SIGN,4,2 ## @KRB5_KU_USAGE_ACCEPTOR_SIGN
	.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	__gssapi_mic_cfx                ; -- Begin function _gssapi_mic_cfx
	.p2align	2
__gssapi_mic_cfx:                       ; @_gssapi_mic_cfx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x5
	mov	x22, x4
	mov	x23, x2
	mov	x25, x1
	mov	x19, x0
	ldrsw	x26, [x4]
	add	x24, x26, #24
	mov	x0, x24
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x1, [x22, #8]
	mov	x2, x26
	bl	_memcpy
	mov	w9, #0
	ldrsw	x8, [x22]
	mov	w10, #24
	madd	x22, x8, x10, x20
	ldr	x10, [x22]
	movi.2s	v0, #4
	str	d0, [x10]
	mov	x10, x22
	str	wzr, [x10, #20]!
	ldr	w11, [x25]
Lloh0:
	adrp	x27, _LOCAL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _LOCAL@GOTPAGEOFF]
	ldr	w12, [x27]
	tst	w12, w11
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x9, _CFXSentByAcceptor@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CFXSentByAcceptor@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [x10]
LBB0_3:
Lloh5:
	adrp	x12, _ACCEPTOR_SUBKEY@GOTPAGE
Lloh6:
	ldr	x12, [x12, _ACCEPTOR_SUBKEY@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x11, _CFXAcceptorSubkey@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CFXAcceptorSubkey@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w9, w9, w11
	str	w9, [x10]
LBB0_5:
	mov	w9, #24
	madd	x28, x8, x9, x20
	ldr	w0, [x28, #16]
	mov	w1, #255
	mov	w2, #5
	bl	_memset
	add	x26, x25, #8
	mov	x0, x26
	bl	_HEIMDAL_MUTEX_lock
	ldr	w1, [x25, #12]
	add	x2, sp, #12
	mov	x0, x23
	bl	_krb5_auth_con_getlocalseqnumber
	ldr	x1, [x28, #8]
	mov	w0, #0
	bl	__gsskrb5_encode_be_om_uint32
	ldr	w0, [sp, #12]
	ldr	x8, [x28, #8]
	add	x1, x8, #16
	bl	__gsskrb5_encode_be_om_uint32
	ldr	w1, [x25, #12]
	ldr	w8, [sp, #12]
	add	w2, w8, #1
	str	w2, [sp, #12]
	mov	x0, x23
	bl	_krb5_auth_con_setlocalseqnumber
	mov	x0, x26
	bl	_HEIMDAL_MUTEX_unlock
Lloh11:
	adrp	x8, _KRB5_KU_USAGE_ACCEPTOR_SIGN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KRB5_KU_USAGE_ACCEPTOR_SIGN@GOTPAGEOFF]
Lloh13:
	adrp	x9, _KRB5_KU_USAGE_INITIATOR_SIGN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _KRB5_KU_USAGE_INITIATOR_SIGN@GOTPAGEOFF]
	ldr	w10, [x27]
	ldp	w11, w1, [x25]
	tst	w10, w11
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	add	x6, sp, #16
	mov	x0, x23
	mov	w3, #0
	mov	x4, x20
	mov	x5, x24
	bl	_krb5_create_checksum
	cbz	x0, LBB0_11
; %bb.6:
	str	x0, [x19]
LBB0_7:
	mov	x0, x20
	bl	_free
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_9:
Lloh18:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_10:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	ldr	w8, [sp, #16]
	add	w8, w8, #24
	str	w8, [x21]
	sxtw	x0, w8
	bl	_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_13
; %bb.12:
	mov	x1, x22
	mov	w2, #24
	bl	_memcpy
	ldr	x8, [x21, #8]
	add	x0, x8, #576
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #16]
	bl	_memcpy
	add	x0, sp, #16
	bl	_free_Checksum
	mov	x0, x20
	bl	_free
	str	xzr, [x19]
Lloh20:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19]
	add	x0, sp, #16
	bl	_free_Checksum
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_LOCAL,4,2                      ; @LOCAL
	.comm	_CFXSentByAcceptor,4,2          ; @CFXSentByAcceptor
	.comm	_ACCEPTOR_SUBKEY,4,2            ; @ACCEPTOR_SUBKEY
	.comm	_CFXAcceptorSubkey,4,2          ; @CFXAcceptorSubkey
	.comm	_KRB5_KU_USAGE_INITIATOR_SIGN,4,2 ; @KRB5_KU_USAGE_INITIATOR_SIGN
	.comm	_KRB5_KU_USAGE_ACCEPTOR_SIGN,4,2 ; @KRB5_KU_USAGE_ACCEPTOR_SIGN
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
.subsections_via_symbols
