	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gss_validate
_gss_validate:                          ## @gss_validate
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	8(%rax), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_gss_cred_get_ctx
	movq	%rax, %r15
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r14), %edi
	callq	_ntohl
	movq	%rax, %rbx
	movl	4(%r14), %edi
	callq	_ntohl
	movq	%rax, %r13
	movq	_RPC_MAX_AUTH_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jg	LBB0_6
## %bb.1:
	movq	_RPC_AUTH_GSS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
## %bb.2:
	addq	$8, %r14
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$4, -104(%rbp)
	leaq	-104(%rbp), %rdi
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_xdr_buf_from_iov
	movq	%r14, -80(%rbp)
	movq	%r13, -88(%rbp)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_gss_verify_mic
	movq	%rax, %r15
	movq	_GSS_S_CONTEXT_EXPIRED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_4
## %bb.3:
	movq	_RPCAUTH_CRED_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rsi
	callq	_clear_bit
LBB0_4:
	testq	%r15, %r15
	je	LBB0_8
## %bb.5:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dprintk
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_6:
	movq	%r15, %rdi
	callq	_gss_put_ctx
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
LBB0_7:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, %rdi
	callq	_XDR_QUADLEN
	addl	$2, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_gss_put_ctx
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r13, %rdi
	callq	_XDR_QUADLEN
	cltq
	leaq	(%r14,%rax,4), %rbx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RPC: %5u gss_validate\n"

	.comm	_RPC_MAX_AUTH_SIZE,8,3          ## @RPC_MAX_AUTH_SIZE
	.comm	_RPC_AUTH_GSS,8,3               ## @RPC_AUTH_GSS
	.comm	_GSS_S_CONTEXT_EXPIRED,8,3      ## @GSS_S_CONTEXT_EXPIRED
	.comm	_RPCAUTH_CRED_UPTODATE,4,2      ## @RPCAUTH_CRED_UPTODATE
L_.str.1:                               ## @.str.1
	.asciz	"RPC: %5u gss_validate: gss_verify_mic returned error 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"RPC: %5u gss_validate: gss_verify_mic succeeded.\n"

L_.str.3:                               ## @.str.3
	.asciz	"RPC: %5u gss_validate failed.\n"

	.no_dead_strip	_gss_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gss_validate
_gss_validate:                          ; @gss_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #8]
	mov	x0, x21
	bl	_gss_cred_get_ctx
	mov	x20, x0
	ldr	w1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w0, [x23]
	bl	_ntohl
	mov	x24, x0
	ldr	w0, [x23, #4]
	bl	_ntohl
Lloh2:
	adrp	x8, _RPC_MAX_AUTH_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RPC_MAX_AUTH_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _RPC_AUTH_GSS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RPC_AUTH_GSS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x24, x9, #0, le
	b.ne	LBB0_5
; %bb.1:
	mov	x22, x0
	add	x24, x23, #8
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_htonl
	stur	w0, [x29, #-52]
	sub	x8, x29, #52
	str	x8, [sp, #48]
	mov	w8, #4
	str	w8, [sp, #40]
	add	x0, sp, #40
	add	x1, sp, #32
	bl	_xdr_buf_from_iov
	stp	x22, x24, [sp, #16]
	ldr	w0, [x20]
	add	x1, sp, #32
	add	x2, sp, #16
	bl	_gss_verify_mic
	mov	x23, x0
Lloh8:
	adrp	x8, _GSS_S_CONTEXT_EXPIRED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSS_S_CONTEXT_EXPIRED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _RPCAUTH_CRED_UPTODATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RPCAUTH_CRED_UPTODATE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x21, #8
	bl	_clear_bit
LBB0_3:
	cbz	x23, LBB0_6
; %bb.4:
	ldr	w1, [x19]
	str	x23, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
LBB0_5:
	mov	x0, x20
	bl	_gss_put_ctx
	ldr	w1, [x19]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
	mov	x0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_XDR_QUADLEN
	add	w8, w0, #2
	ldr	x9, [x21]
	str	w8, [x9]
	mov	x0, x20
	bl	_gss_put_ctx
	ldr	w1, [x19]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	mov	x0, x22
	bl	_XDR_QUADLEN
	add	x0, x24, w0, sxtw #2
LBB0_7:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RPC: %5u gss_validate\n"

	.comm	_RPC_MAX_AUTH_SIZE,8,3          ; @RPC_MAX_AUTH_SIZE
	.comm	_RPC_AUTH_GSS,8,3               ; @RPC_AUTH_GSS
	.comm	_GSS_S_CONTEXT_EXPIRED,8,3      ; @GSS_S_CONTEXT_EXPIRED
	.comm	_RPCAUTH_CRED_UPTODATE,4,2      ; @RPCAUTH_CRED_UPTODATE
l_.str.1:                               ; @.str.1
	.asciz	"RPC: %5u gss_validate: gss_verify_mic returned error 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"RPC: %5u gss_validate: gss_verify_mic succeeded.\n"

l_.str.3:                               ; @.str.3
	.asciz	"RPC: %5u gss_validate failed.\n"

	.no_dead_strip	_gss_validate
.subsections_via_symbols
