	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5cfx_wrap_length_cfx    ## -- Begin function _gsskrb5cfx_wrap_length_cfx
	.p2align	4, 0x90
__gsskrb5cfx_wrap_length_cfx:           ## @_gsskrb5cfx_wrap_length_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	24(%rbp), %rax
	movq	$4, (%r9)
	movq	$0, (%rax)
	leaq	-44(%rbp), %rdx
	callq	_krb5_crypto_get_checksum_type
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	16(%rbp), %rdx
	movl	-44(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_checksumsize
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movq	16(%rbp), %rax
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.3:
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	movl	%r12d, %esi
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	callq	_krb5_crypto_getblocksize
	jmp	LBB0_6
LBB0_13:
	movq	(%rax), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	%r14, %rax
	jmp	LBB0_14
LBB0_5:
	callq	_krb5_crypto_getpadsize
LBB0_6:
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_15
## %bb.7:
	addq	$4, %r14
	movq	-64(%rbp), %rcx
	cmpq	$2, %rcx
	jb	LBB0_12
## %bb.8:
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_11
LBB0_9:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_11:
	movq	24(%rbp), %rax
	subq	%rdx, %rcx
	movq	%rcx, (%rax)
	addq	%rcx, %r14
LBB0_12:
	movl	%ebx, %edi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_krb5_get_wrapped_length
LBB0_14:
	addq	(%r15), %rax
	movq	%rax, (%r15)
	xorl	%edi, %edi
	cmpq	%r14, %rax
	seta	%dil
	callq	_assert
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5cfx_wrap_length_cfx    ; -- Begin function _gsskrb5cfx_wrap_length_cfx
	.p2align	2
__gsskrb5cfx_wrap_length_cfx:           ; @_gsskrb5cfx_wrap_length_cfx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x7
	mov	x24, x6
	mov	x20, x5
	mov	x19, x4
	mov	x25, x3
	mov	x26, x2
	mov	x21, x1
	mov	x23, x0
	mov	w8, #4
	str	x8, [x5]
	str	xzr, [x7]
	add	x2, sp, #12
	bl	_krb5_crypto_get_checksum_type
	cbnz	x0, LBB0_11
; %bb.1:
	ldr	w1, [sp, #12]
	mov	x0, x23
	mov	x2, x24
	bl	_krb5_checksumsize
	cbnz	x0, LBB0_11
; %bb.2:
	cbz	w26, LBB0_5
; %bb.3:
	mov	x2, sp
	mov	x0, x23
	mov	x1, x21
	cbz	w25, LBB0_6
; %bb.4:
	bl	_krb5_crypto_getblocksize
	cbnz	x0, LBB0_11
	b	LBB0_7
LBB0_5:
	ldr	x8, [x24]
	ldr	x9, [x20]
	add	x8, x8, x19
	add	x8, x8, x9
	b	LBB0_10
LBB0_6:
	bl	_krb5_crypto_getpadsize
	cbnz	x0, LBB0_11
LBB0_7:
	add	x19, x19, #4
	ldr	x8, [sp]
	cmp	x8, #2
	b.lo	LBB0_9
; %bb.8:
	udiv	x9, x19, x8
	neg	x10, x19
	madd	x9, x9, x8, x10
	add	x8, x8, x9
	add	x19, x8, x19
	str	x8, [x22]
LBB0_9:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	bl	_krb5_get_wrapped_length
	ldr	x8, [x20]
	add	x8, x8, x0
LBB0_10:
	str	x8, [x20]
	cmp	x8, x19
	cset	w0, hi
	bl	_assert
	mov	x0, #0
LBB0_11:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
