	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svcauth_gss_validate
_svcauth_gss_validate:                  ## @svcauth_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	$568, %rsp                      ## imm = 0x238
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_log_debug
	leaq	-560(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memset
	movq	56(%rbx), %rdi
	movq	_MAX_AUTH_BYTES@GOTPCREL(%rip), %rax
	movq	_FALSE@GOTPCREL(%rip), %r12
	cmpq	(%rax), %rdi
	jg	LBB0_7
## %bb.1:
	movq	_BYTES_PER_XDR_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_RNDUP
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r13,8), %eax
	cmpl	$512, %eax                      ## imm = 0x200
	ja	LBB0_7
## %bb.2:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_IXDR_PUT_LONG
	movl	72(%rbx), %esi
	movq	%r15, %rdi
	callq	_IXDR_PUT_ENUM
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_IXDR_PUT_LONG
	movq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	_IXDR_PUT_LONG
	movq	24(%rbx), %rsi
	movq	%r15, %rdi
	callq	_IXDR_PUT_LONG
	movq	32(%rbx), %rsi
	movq	%r15, %rdi
	callq	_IXDR_PUT_LONG
	movl	68(%rbx), %esi
	movq	%r15, %rdi
	callq	_IXDR_PUT_ENUM
	movq	56(%rbx), %rsi
	movq	%r15, %rdi
	callq	_IXDR_PUT_LONG
	movq	56(%rbx), %rdx
	movq	%r15, %rax
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	leaq	-560(%rbp), %rdi
	movl	64(%rbx), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_memcpy
	movq	56(%rbx), %rdi
	callq	_RNDUP
	cltq
	andq	$-4, %rax
	addq	%rbp, %rax
	addq	$-560, %rax                     ## imm = 0xFDD0
LBB0_4:
	movq	%r15, -592(%rbp)
	subq	%r15, %rax
	shrq	$2, %rax
	movl	%eax, -600(%rbp)
	movq	48(%rbx), %rax
	movq	%rax, -576(%rbp)
	movl	40(%rbx), %eax
	movl	%eax, -584(%rbp)
	movl	(%r14), %esi
	leaq	-568(%rbp), %rdi
	leaq	-600(%rbp), %rdx
	leaq	-584(%rbp), %rcx
	leaq	-608(%rbp), %r8
	callq	_gss_verify_mic
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_7
LBB0_6:
	movq	-568(%rbp), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_log_status
LBB0_7:
	movl	(%r12), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$568, %rsp                      ## imm = 0x238
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in svcauth_gss_validate()"

	.comm	_MAX_AUTH_BYTES,8,3             ## @MAX_AUTH_BYTES
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_BYTES_PER_XDR_UNIT,4,2         ## @BYTES_PER_XDR_UNIT
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
L_.str.1:                               ## @.str.1
	.asciz	"gss_verify_mic"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_svcauth_gss_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svcauth_gss_validate
_svcauth_gss_validate:                  ; @svcauth_gss_validate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #576
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_debug
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #512
	bl	_memset
	ldr	x0, [x20, #56]
Lloh5:
	adrp	x8, _MAX_AUTH_BYTES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_AUTH_BYTES@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_8
; %bb.1:
Lloh8:
	adrp	x8, _BYTES_PER_XDR_UNIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BYTES_PER_XDR_UNIT@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	bl	_RNDUP
	add	w8, w0, w21, lsl #3
	cmp	w8, #512
	b.hi	LBB0_8
; %bb.2:
	add	x21, sp, #56
	ldr	x1, [x20]
	add	x0, sp, #56
	bl	_IXDR_PUT_LONG
	ldr	w1, [x20, #72]
	add	x0, sp, #56
	bl	_IXDR_PUT_ENUM
	ldr	x1, [x20, #8]
	add	x0, sp, #56
	bl	_IXDR_PUT_LONG
	ldr	x1, [x20, #16]
	add	x0, sp, #56
	bl	_IXDR_PUT_LONG
	ldr	x1, [x20, #24]
	add	x0, sp, #56
	bl	_IXDR_PUT_LONG
	ldr	x1, [x20, #32]
	add	x0, sp, #56
	bl	_IXDR_PUT_LONG
	ldr	w1, [x20, #68]
	add	x0, sp, #56
	bl	_IXDR_PUT_ENUM
	ldr	x1, [x20, #56]
	add	x0, sp, #56
	bl	_IXDR_PUT_LONG
	ldr	x2, [x20, #56]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	w1, [x20, #64]
	add	x0, sp, #56
	bl	_memcpy
	ldr	x0, [x20, #56]
	bl	_RNDUP
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	and	x8, x8, #0xfffffffffffffffc
	add	x8, x21, x8
	b	LBB0_5
LBB0_4:
	add	x8, sp, #56
LBB0_5:
	str	x21, [sp, #48]
	sub	x8, x8, x21
	lsr	x8, x8, #2
	str	w8, [sp, #40]
	ldr	x8, [x20, #48]
	str	x8, [sp, #32]
	ldr	w8, [x20, #40]
	str	w8, [sp, #24]
	ldr	w1, [x19]
	add	x0, sp, #16
	add	x2, sp, #40
	add	x3, sp, #24
	add	x4, sp, #8
	bl	_gss_verify_mic
Lloh11:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x1, x0
	ldr	x2, [sp, #16]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_status
LBB0_8:
Lloh18:
	adrp	x8, _FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #576
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in svcauth_gss_validate()"

	.comm	_MAX_AUTH_BYTES,8,3             ; @MAX_AUTH_BYTES
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_BYTES_PER_XDR_UNIT,4,2         ; @BYTES_PER_XDR_UNIT
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
l_.str.1:                               ; @.str.1
	.asciz	"gss_verify_mic"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_svcauth_gss_validate
.subsections_via_symbols
