	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gss_krb5_aes_decrypt           ## -- Begin function gss_krb5_aes_decrypt
	.p2align	4, 0x90
_gss_krb5_aes_decrypt:                  ## @gss_krb5_aes_decrypt
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GSS_KRB5_MAX_CKSUM_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, 56(%r13)
	je	LBB0_2
## %bb.1:
	leaq	48(%r13), %rax
	leaq	40(%r13), %rcx
	leaq	32(%r13), %rdx
	movq	_KG_USAGE_ACCEPTOR_SEAL@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	24(%r13), %rax
	leaq	16(%r13), %rcx
	leaq	8(%r13), %rdx
	movq	_KG_USAGE_INITIATOR_SEAL@GOTPCREL(%rip), %rsi
LBB0_3:
	movl	(%rsi), %esi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	(%rdx), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	(%rax), %rdi
	movq	(%rcx), %r14
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	callq	_crypto_blkcipher_blocksize
	movl	%eax, %r15d
	movq	_GSS_KRB5_TOK_HDR_LEN@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rcx
	movq	(%r13), %rax
	movq	(%rax), %rax
	addq	%r12, %rax
	subq	%rax, %rcx
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdx
	callq	_xdr_buf_subsegment
	movq	-56(%rbp), %rax
	movslq	%r15d, %rcx
	addq	%rcx, %rax
	decq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	cqto
	idivq	%rcx
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	leal	-2(%rax), %ebx
	imull	%r15d, %ebx
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	cmovll	%ecx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	$0, -184(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -168(%rbp)
	movq	%r14, -192(%rbp)
	movl	$4, %esi
	callq	_sg_init_table
	movq	_decryptor@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rdi
	leaq	-200(%rbp), %r8
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_xdr_process_buf
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	movl	-200(%rbp), %ecx
	leaq	-56(%rbp), %rsi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gss_krb5_cts_crypt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	shll	$2, %eax
	movl	%eax, -152(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -144(%rbp)
	leaq	-152(%rbp), %rax
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	pushq	%rax
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	callq	_make_checksum_v2
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %esi
	movq	(%r13), %rax
	movl	(%rax), %ecx
	subl	%ecx, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_read_bytes_from_xdr_buf
	testq	%rax, %rax
	je	LBB0_10
LBB0_12:
	movq	_GSS_S_BAD_SIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.13:
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_16:
	movq	-136(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r13), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movq	_GSS_S_BAD_SIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_11:
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_KRB5_MAX_CKSUM_LEN,4,2     ## @GSS_KRB5_MAX_CKSUM_LEN
	.comm	_KG_USAGE_ACCEPTOR_SEAL,4,2     ## @KG_USAGE_ACCEPTOR_SEAL
	.comm	_KG_USAGE_INITIATOR_SEAL,4,2    ## @KG_USAGE_INITIATOR_SEAL
	.comm	_GSS_KRB5_TOK_HDR_LEN,8,3       ## @GSS_KRB5_TOK_HDR_LEN
	.comm	_decryptor,4,2                  ## @decryptor
	.comm	_GSS_S_BAD_SIG,8,3              ## @GSS_S_BAD_SIG
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gss_krb5_aes_decrypt           ; -- Begin function gss_krb5_aes_decrypt
	.p2align	2
_gss_krb5_aes_decrypt:                  ; @gss_krb5_aes_decrypt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #112
	stp	x3, x4, [x29, #-192]            ; 16-byte Folded Spill
	mov	x22, x2
	mov	x28, x1
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-168]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _GSS_KRB5_MAX_CKSUM_LEN@GOTPAGE
Lloh4:
	ldr	x12, [x12, _GSS_KRB5_MAX_CKSUM_LEN@GOTPAGEOFF]
	ldr	w20, [x12]
	lsl	x8, x20, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	x8, [x0, #56]
	add	x9, x0, #24
	add	x10, x0, #16
	add	x11, x0, #8
Lloh9:
	adrp	x12, _KG_USAGE_INITIATOR_SEAL@GOTPAGE
Lloh10:
	ldr	x12, [x12, _KG_USAGE_INITIATOR_SEAL@GOTPAGEOFF]
	add	x13, x0, #48
	add	x14, x0, #40
	add	x15, x0, #32
Lloh11:
	adrp	x16, _KG_USAGE_ACCEPTOR_SEAL@GOTPAGE
Lloh12:
	ldr	x16, [x16, _KG_USAGE_ACCEPTOR_SEAL@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x14, eq
	csel	x9, x9, x13, eq
	csel	x10, x11, x15, eq
	csel	x11, x12, x16, eq
	ldr	w11, [x11]
	stur	w11, [x29, #-172]               ; 4-byte Folded Spill
	ldr	x26, [x10]
	ldr	x27, [x9]
	ldr	x25, [x8]
	mov	x0, x27
	bl	_crypto_blkcipher_blocksize
	mov	x19, x0
Lloh13:
	adrp	x8, _GSS_KRB5_TOK_HDR_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GSS_KRB5_TOK_HDR_LEN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x10, [x21]
	ldr	x10, [x10]
	add	x2, x8, x28
	add	x8, x2, x10
	sub	x3, x9, x8
	sub	x1, x29, #96
	mov	x0, x22
	bl	_xdr_buf_subsegment
	ldur	x8, [x29, #-96]
	sxtw	x9, w19
	add	x8, x9, x8
	sub	x8, x8, #1
	sdiv	x8, x8, x9
	subs	w8, w8, #2
	mul	w8, w8, w19
	csel	w28, w8, wzr, gt
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	stp	xzr, xzr, [x29, #-128]
	stp	x25, xzr, [x29, #-152]
	mov	w1, #4
	bl	_sg_init_table
Lloh16:
	adrp	x8, _decryptor@GOTPAGE
Lloh17:
	ldr	x8, [x8, _decryptor@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	sub	x0, x29, #96
	sub	x4, x29, #160
	mov	w1, #0
	mov	x2, x28
	bl	_xdr_process_buf
	cbnz	x0, LBB0_4
; %bb.1:
	ldur	w3, [x29, #-160]
	sub	x1, x29, #96
	mov	x0, x27
	mov	x2, x28
	mov	x4, #0
	mov	w5, #0
	bl	_gss_krb5_cts_crypt
	cbnz	x0, LBB0_4
; %bb.2:
	lsl	w8, w20, #2
	stur	w8, [x29, #-112]
	stur	x23, [x29, #-104]
	sub	x3, x29, #96
	sub	x7, x29, #112
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	w4, #0
	mov	x5, x26
	ldur	w6, [x29, #-172]                ; 4-byte Folded Reload
	bl	_make_checksum_v2
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x22]
	ldr	x9, [x21]
	ldr	w3, [x9]
	sub	w1, w8, w3
	mov	x0, x22
	mov	x2, x24
	bl	_read_bytes_from_xdr_buf
	cbz	x0, LBB0_7
LBB0_4:
Lloh19:
	adrp	x8, _GSS_S_BAD_SIG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GSS_S_BAD_SIG@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _GSS_S_FAILURE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x0, x0, x9, eq
LBB0_5:
	ldur	x8, [x29, #-168]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.6:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x21]
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x23
	bl	_memcmp
	cbz	x0, LBB0_9
; %bb.8:
Lloh28:
	adrp	x8, _GSS_S_BAD_SIG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GSS_S_BAD_SIG@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
	cbnz	x0, LBB0_5
	b	LBB0_10
LBB0_9:
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldur	x10, [x29, #-192]               ; 8-byte Folded Reload
	str	x9, [x10]
	ldr	x8, [x8]
	ldur	x9, [x29, #-184]                ; 8-byte Folded Reload
	str	x8, [x9]
LBB0_10:
	mov	x0, #0
	b	LBB0_5
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_KRB5_MAX_CKSUM_LEN,4,2     ; @GSS_KRB5_MAX_CKSUM_LEN
	.comm	_KG_USAGE_ACCEPTOR_SEAL,4,2     ; @KG_USAGE_ACCEPTOR_SEAL
	.comm	_KG_USAGE_INITIATOR_SEAL,4,2    ; @KG_USAGE_INITIATOR_SEAL
	.comm	_GSS_KRB5_TOK_HDR_LEN,8,3       ; @GSS_KRB5_TOK_HDR_LEN
	.comm	_decryptor,4,2                  ; @decryptor
	.comm	_GSS_S_BAD_SIG,8,3              ; @GSS_S_BAD_SIG
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
.subsections_via_symbols
