	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_gss_validate
_rpc_gss_validate:                      ## @rpc_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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_log_debug
	movq	%r14, %rdi
	callq	_AUTH_PRIVATE
	movq	%rax, %rbx
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_RPCSEC_GSS_CONTEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	addq	$32, %rbx
	cmpq	$0, 40(%r12)
	je	LBB0_3
## %bb.2:
	movq	_xdr_gss_buffer_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_xdr_free
LBB0_3:
	movl	(%r15), %edi
	callq	_mem_alloc
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	movl	24(%r12), %edi
	callq	_htonl
	movl	%eax, -36(%rbp)
	leaq	-36(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$4, -88(%rbp)
	movq	8(%r15), %rax
	movq	%rax, -64(%rbp)
	movl	(%r15), %eax
	movl	%eax, -72(%rbp)
	movl	20(%r12), %esi
	leaq	-48(%rbp), %rdi
	leaq	-88(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-56(%rbp), %r8
	callq	_gss_verify_mic
	movq	%rax, %rbx
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_9
## %bb.8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movl	16(%r12), %esi
	movq	-48(%rbp), %rcx
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rdx
	callq	_log_status
	movq	_GSS_S_CONTEXT_EXPIRED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_11
## %bb.10:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rpc_gss_destroy_context
LBB0_11:
	movq	_RPC_GSS_ER_SYSTEMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movq	_RPC_GSS_ER_SYSTEMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	callq	__rpc_gss_set_error
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in rpc_gss_validate()"

	.comm	_RPCSEC_GSS_CONTEXT,8,3         ## @RPCSEC_GSS_CONTEXT
	.comm	_xdr_gss_buffer_desc,8,3        ## @xdr_gss_buffer_desc
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"gss_validate: out of memory\n"

	.comm	_RPC_GSS_ER_SYSTEMERROR,4,2     ## @RPC_GSS_ER_SYSTEMERROR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
L_.str.2:                               ## @.str.2
	.asciz	"gss_verify_mic"

	.comm	_GSS_S_CONTEXT_EXPIRED,8,3      ## @GSS_S_CONTEXT_EXPIRED
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_rpc_gss_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_gss_validate
_rpc_gss_validate:                      ; @rpc_gss_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_debug
	mov	x0, x19
	bl	_AUTH_PRIVATE
	mov	x20, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _RPCSEC_GSS_CONTEXT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RPCSEC_GSS_CONTEXT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	add	x19, x20, #32
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _xdr_gss_buffer_desc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xdr_gss_buffer_desc@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_xdr_free
LBB0_3:
	ldr	w0, [x21]
	bl	_mem_alloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_11
; %bb.4:
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	bl	_memcpy
	ldr	w8, [x21]
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x20, #24]
	bl	_htonl
	stur	w0, [x29, #-44]
	sub	x8, x29, #44
	str	x8, [sp, #40]
	mov	w8, #4
	str	w8, [sp, #32]
	ldr	x8, [x21, #8]
	str	x8, [sp, #24]
	ldr	w8, [x21]
	str	w8, [sp, #16]
	ldr	w1, [x20, #20]
	add	x0, sp, #8
	add	x2, sp, #32
	add	x3, sp, #16
	sub	x4, x29, #40
	bl	_gss_verify_mic
	mov	x21, x0
Lloh8:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
	ldur	x8, [x29, #-40]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	ldr	w1, [x20, #16]
	ldr	x3, [sp, #8]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_log_status
Lloh15:
	adrp	x8, _GSS_S_CONTEXT_EXPIRED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GSS_S_CONTEXT_EXPIRED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rpc_gss_destroy_context
LBB0_10:
Lloh21:
	adrp	x8, _RPC_GSS_ER_SYSTEMERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RPC_GSS_ER_SYSTEMERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _EPERM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
Lloh31:
	adrp	x8, _RPC_GSS_ER_SYSTEMERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RPC_GSS_ER_SYSTEMERROR@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	bl	__rpc_gss_set_error
Lloh36:
	adrp	x8, _FALSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in rpc_gss_validate()"

	.comm	_RPCSEC_GSS_CONTEXT,8,3         ; @RPCSEC_GSS_CONTEXT
	.comm	_xdr_gss_buffer_desc,8,3        ; @xdr_gss_buffer_desc
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"gss_validate: out of memory\n"

	.comm	_RPC_GSS_ER_SYSTEMERROR,4,2     ; @RPC_GSS_ER_SYSTEMERROR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
l_.str.2:                               ; @.str.2
	.asciz	"gss_verify_mic"

	.comm	_GSS_S_CONTEXT_EXPIRED,8,3      ; @GSS_S_CONTEXT_EXPIRED
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_rpc_gss_validate
.subsections_via_symbols
