	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function krb_enc_iov2
_krb_enc_iov2:                          ## @krb_enc_iov2
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%r8), %rbx
	movq	%r8, -168(%rbp)                 ## 8-byte Spill
	movq	8(%r8), %r14
	movq	_KRB5_CRYPTO_TYPE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -128(%rbp)
	leaq	-144(%rbp), %rcx
	callq	_krb5_crypto_length
	movq	-144(%rbp), %rdi
	callq	_emalloc
	movq	%rax, -136(%rbp)
	movq	_KRB5_CRYPTO_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	%r14, -120(%rbp)
	movq	%r14, %rdi
	callq	_emalloc
	movq	%rax, -112(%rbp)
	movq	-120(%rbp), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	_KRB5_CRYPTO_TYPE_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rcx
	movl	%edx, -80(%rbp)
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_krb5_crypto_length
	movq	-96(%rbp), %rdi
	callq	_emalloc
	movq	%rax, -88(%rbp)
	movq	_KRB5_CRYPTO_TYPE_TRAILER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rcx
	movl	%edx, -56(%rbp)
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_krb5_crypto_length
	movq	-72(%rbp), %rdi
	callq	_emalloc
	movq	%rax, -64(%rbp)
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, -148(%rbp)               ## 4-byte Spill
	movl	%r13d, %edx
	leaq	-144(%rbp), %rcx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_krb5_encrypt_iov_ivec
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movq	-120(%rbp), %r13
	addq	-144(%rbp), %r13
	addq	-96(%rbp), %r13
	addq	-72(%rbp), %r13
	cmpq	-160(%rbp), %r13                ## 8-byte Folded Reload
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movq	%r13, %rdi
	callq	_emalloc
	movq	%rax, %r14
	movq	-144(%rbp), %rdx
	movq	-136(%rbp), %rsi
	movq	%rax, %rdi
	callq	_memcpy
	movq	-144(%rbp), %rbx
	addq	%r14, %rbx
	movq	-120(%rbp), %rdx
	movq	-112(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_memcpy
	addq	-120(%rbp), %rbx
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_memcpy
	addq	-96(%rbp), %rbx
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_memcpy
	leaq	-184(%rbp), %r9
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	-148(%rbp), %edx                ## 4-byte Reload
	movq	%r14, %rcx
	movq	%r13, %r8
	callq	_krb5_decrypt
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rcx
	movl	%r15d, %edi
	movl	$1, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_err
	jmp	LBB0_7
LBB0_6:
	leaq	-184(%rbp), %rdi
	callq	_krb5_data_free
LBB0_7:
	movq	%r14, %rdi
	callq	_free
	movq	-96(%rbp), %rdi
	addq	-120(%rbp), %rdi
	callq	_emalloc
	movq	%rax, %rbx
	movq	-120(%rbp), %rdx
	movq	-112(%rbp), %rsi
	movq	%rax, %rdi
	callq	_memcpy
	movq	-120(%rbp), %rdi
	addq	%rbx, %rdi
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rsi
	callq	_memcpy
	movq	-112(%rbp), %rdi
	callq	_free
	movq	-88(%rbp), %rdi
	callq	_free
	movq	%rbx, -112(%rbp)
	movq	-96(%rbp), %rax
	addq	%rax, -120(%rbp)
	movq	_KRB5_CRYPTO_TYPE_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	$0, -96(%rbp)
	leaq	-144(%rbp), %rcx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	-148(%rbp), %edx                ## 4-byte Reload
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_krb5_decrypt_iov_ivec
	movl	%eax, %ebx
	movq	-136(%rbp), %rdi
	callq	_free
	movq	-64(%rbp), %rdi
	callq	_free
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rcx
	movl	%r15d, %edi
	movl	$1, %esi
	movl	%ebx, %edx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_krb5_err
LBB0_9:
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	movq	8(%rbx), %rdx
	cmpq	-120(%rbp), %rdx
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	-120(%rbp), %rdx
LBB0_11:
	movq	(%rbx), %rsi
	movq	-112(%rbp), %rdi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	movq	-112(%rbp), %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_CRYPTO_TYPE_HEADER,4,2    ## @KRB5_CRYPTO_TYPE_HEADER
	.comm	_KRB5_CRYPTO_TYPE_DATA,4,2      ## @KRB5_CRYPTO_TYPE_DATA
	.comm	_KRB5_CRYPTO_TYPE_PADDING,4,2   ## @KRB5_CRYPTO_TYPE_PADDING
	.comm	_KRB5_CRYPTO_TYPE_TRAILER,4,2   ## @KRB5_CRYPTO_TYPE_TRAILER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encrypt iov failed: %d"

L_.str.1:                               ## @.str.1
	.asciz	"cipher len wrong"

L_.str.2:                               ## @.str.2
	.asciz	"krb5_decrypt"

	.comm	_KRB5_CRYPTO_TYPE_EMPTY,4,2     ## @KRB5_CRYPTO_TYPE_EMPTY
L_.str.3:                               ## @.str.3
	.asciz	"decrypt iov failed: %d"

L_.str.4:                               ## @.str.4
	.asciz	"length incorrect"

L_.str.5:                               ## @.str.5
	.asciz	"iov[1] incorrect"

	.no_dead_strip	_krb_enc_iov2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function krb_enc_iov2
_krb_enc_iov2:                          ; @krb_enc_iov2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldp	x24, x25, [x4]
Lloh3:
	adrp	x8, _KRB5_CRYPTO_TYPE_HEADER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KRB5_CRYPTO_TYPE_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	str	w2, [sp, #40]
	add	x26, sp, #24
	add	x3, sp, #24
	bl	_krb5_crypto_length
	ldr	x0, [sp, #24]
	bl	_emalloc
Lloh6:
	adrp	x8, _KRB5_CRYPTO_TYPE_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KRB5_CRYPTO_TYPE_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	str	x0, [sp, #32]
	str	x25, [sp, #48]
	mov	x0, x25
	bl	_emalloc
	str	x0, [sp, #56]
	ldr	x2, [sp, #48]
	mov	x1, x24
	bl	_memcpy
Lloh9:
	adrp	x8, _KRB5_CRYPTO_TYPE_PADDING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KRB5_CRYPTO_TYPE_PADDING@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, x26, #48
	str	w2, [sp, #88]
	mov	x0, x20
	mov	x1, x22
	bl	_krb5_crypto_length
	ldr	x0, [sp, #72]
	bl	_emalloc
	str	x0, [sp, #80]
Lloh12:
	adrp	x8, _KRB5_CRYPTO_TYPE_TRAILER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KRB5_CRYPTO_TYPE_TRAILER@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, x26, #72
	str	w2, [sp, #112]
	mov	x0, x20
	mov	x1, x22
	bl	_krb5_crypto_length
	ldr	x0, [sp, #96]
	bl	_emalloc
	str	x0, [sp, #104]
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	w4, #4
	mov	x5, #0
	bl	_krb5_encrypt_iov_ivec
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	ldr	x8, [sp, #24]
	ldr	x9, [sp, #48]
	ldr	x10, [sp, #72]
	ldr	x11, [sp, #96]
	add	x8, x9, x8
	add	x8, x10, x8
	add	x24, x11, x8
	cmp	x24, x23
	b.eq	LBB0_4
; %bb.3:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	mov	x0, x24
	bl	_emalloc
	mov	x23, x0
	ldp	x2, x1, [sp, #24]
	bl	_memcpy
	ldr	x8, [sp, #24]
	ldp	x2, x1, [sp, #48]
	add	x25, x23, x8
	mov	x0, x25
	bl	_memcpy
	ldr	x8, [sp, #48]
	ldp	x2, x1, [sp, #72]
	add	x25, x25, x8
	mov	x0, x25
	bl	_memcpy
	ldr	x8, [sp, #72]
	ldp	x2, x1, [sp, #96]
	add	x0, x25, x8
	bl	_memcpy
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	bl	_krb5_decrypt
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	bl	_krb5_err
	b	LBB0_7
LBB0_6:
	add	x0, sp, #8
	bl	_krb5_data_free
LBB0_7:
	mov	x0, x23
	bl	_free
	ldr	x8, [sp, #48]
	ldr	x9, [sp, #72]
	add	x0, x9, x8
	bl	_emalloc
	mov	x23, x0
	ldp	x2, x1, [sp, #48]
	bl	_memcpy
	ldr	x8, [sp, #48]
	ldp	x2, x1, [sp, #72]
	add	x0, x23, x8
	bl	_memcpy
	ldr	x0, [sp, #56]
	bl	_free
	ldr	x0, [sp, #80]
	bl	_free
	ldr	x8, [sp, #72]
	ldr	x9, [sp, #48]
	add	x8, x9, x8
	stp	x8, x23, [sp, #48]
Lloh21:
	adrp	x8, _KRB5_CRYPTO_TYPE_EMPTY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KRB5_CRYPTO_TYPE_EMPTY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	str	xzr, [sp, #72]
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	w4, #4
	mov	x5, #0
	bl	_krb5_decrypt_iov_ivec
	mov	x21, x0
	ldr	x0, [sp, #32]
	bl	_free
	ldr	x0, [sp, #104]
	bl	_free
	cbz	w21, LBB0_9
; %bb.8:
	str	x21, [sp]
Lloh24:
	adrp	x3, l_.str.3@PAGE
Lloh25:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	bl	_krb5_err
LBB0_9:
	ldr	x2, [x19, #8]
	ldr	x8, [sp, #48]
	cmp	x2, x8
	b.eq	LBB0_11
; %bb.10:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x2, [sp, #48]
LBB0_11:
	ldr	x1, [x19]
	ldr	x0, [sp, #56]
	bl	_memcmp
	cbz	x0, LBB0_13
; %bb.12:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	ldr	x0, [sp, #56]
	bl	_free
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_CRYPTO_TYPE_HEADER,4,2    ; @KRB5_CRYPTO_TYPE_HEADER
	.comm	_KRB5_CRYPTO_TYPE_DATA,4,2      ; @KRB5_CRYPTO_TYPE_DATA
	.comm	_KRB5_CRYPTO_TYPE_PADDING,4,2   ; @KRB5_CRYPTO_TYPE_PADDING
	.comm	_KRB5_CRYPTO_TYPE_TRAILER,4,2   ; @KRB5_CRYPTO_TYPE_TRAILER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encrypt iov failed: %d"

l_.str.1:                               ; @.str.1
	.asciz	"cipher len wrong"

l_.str.2:                               ; @.str.2
	.asciz	"krb5_decrypt"

	.comm	_KRB5_CRYPTO_TYPE_EMPTY,4,2     ; @KRB5_CRYPTO_TYPE_EMPTY
l_.str.3:                               ; @.str.3
	.asciz	"decrypt iov failed: %d"

l_.str.4:                               ; @.str.4
	.asciz	"length incorrect"

l_.str.5:                               ; @.str.5
	.asciz	"iov[1] incorrect"

	.no_dead_strip	_krb_enc_iov2
.subsections_via_symbols
