	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_checksum
_create_checksum:                       ## @create_checksum
	.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, %r14
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edi, %r13d
	movq	$0, -48(%rbp)
	movq	_CKSUMTYPE_HMAC_MD5@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_KRB5_KU_OTHER_CKSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %r9
	movl	%r13d, %edi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_HMAC_MD5_any_checksum
LBB0_4:
	movq	16(%rbp), %rdx
	cmpq	%rdx, -64(%rbp)
	jne	LBB0_5
## %bb.6:
	movl	-56(%rbp), %esi
	movq	%r14, %rdi
	callq	_memcpy
	leaq	-64(%rbp), %rdi
	callq	_free_Checksum
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	leaq	-48(%rbp), %rcx
	movl	%r13d, %edi
	xorl	%edx, %edx
	callq	_krb5_crypto_init
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	-48(%rbp), %rsi
	movq	_KRB5_KU_OTHER_CKSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movl	%r13d, %edi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_krb5_create_checksum
	movq	%rax, %rbx
	movq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_crypto_destroy
	testq	%rbx, %rbx
	jne	LBB0_7
	jmp	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %edi
	callq	_krb5_set_error_message
	leaq	-64(%rbp), %rdi
	callq	_free_Checksum
	movq	(%rbx), %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CKSUMTYPE_HMAC_MD5,8,3         ## @CKSUMTYPE_HMAC_MD5
	.comm	_KRB5_KU_OTHER_CKSUM,4,2        ## @KRB5_KU_OTHER_CKSUM
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pac checksum wrong length"

	.no_dead_strip	_create_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_checksum
_create_checksum:                       ; @create_checksum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x6
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x21, x0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _CKSUMTYPE_HMAC_MD5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CKSUMTYPE_HMAC_MD5@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _KRB5_KU_OTHER_CKSUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KRB5_KU_OTHER_CKSUM@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	x5, sp, #8
	mov	x0, x21
	mov	x2, x23
	mov	x3, x22
	bl	_HMAC_MD5_any_checksum
LBB0_2:
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.3:
	ldr	w1, [sp, #16]
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	add	x0, sp, #8
	bl	_free_Checksum
	mov	x24, #0
	b	LBB0_7
LBB0_4:
	add	x3, sp, #24
	mov	x0, x21
	mov	w2, #0
	bl	_krb5_crypto_init
	mov	x24, x0
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	x1, [sp, #24]
Lloh6:
	adrp	x8, _KRB5_KU_OTHER_CKSUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KRB5_KU_OTHER_CKSUM@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x6, sp, #8
	mov	x0, x21
	mov	w3, #0
	mov	x4, x23
	mov	x5, x22
	bl	_krb5_create_checksum
	mov	x24, x0
	ldr	x1, [sp, #24]
	mov	x0, x21
	bl	_krb5_crypto_destroy
	cbnz	x24, LBB0_7
	b	LBB0_2
LBB0_6:
Lloh9:
	adrp	x19, _EINVAL@GOTPAGE
Lloh10:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_krb5_set_error_message
	add	x0, sp, #8
	bl	_free_Checksum
	ldr	x24, [x19]
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CKSUMTYPE_HMAC_MD5,8,3         ; @CKSUMTYPE_HMAC_MD5
	.comm	_KRB5_KU_OTHER_CKSUM,4,2        ; @KRB5_KU_OTHER_CKSUM
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pac checksum wrong length"

	.no_dead_strip	_create_checksum
.subsections_via_symbols
