	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function authsspi_validate
_authsspi_validate:                     ## @authsspi_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movslq	%edx, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_log_debug
	movq	%r14, %rdi
	callq	_AUTH_PRIVATE
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_FALSE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r15), %edi
	callq	_mem_alloc
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movl	(%r15), %eax
	movl	%eax, 32(%r12)
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_11
LBB0_3:
	movq	16(%r12), %rax
	movq	_RPCSEC_SSPI_DESTROY@GOTPCREL(%rip), %rcx
	movq	_TRUE@GOTPCREL(%rip), %r13
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.4:
	movq	_RPCSEC_SSPI_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.5:
	movq	_RPCSEC_SSPI_CONTINUE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.6:
	cmpl	$-1, %ebx
	jne	LBB0_8
## %bb.7:
	movl	24(%r12), %ebx
LBB0_8:
	movl	%ebx, %edi
	callq	_htonl
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$4, -72(%rbp)
	movq	8(%r15), %rax
	movq	%rax, -64(%rbp)
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	%r12, %rdi
	addq	$12, %rdi
	leaq	-80(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%ebx, %esi
	callq	_sspi_verify_mic
	movq	%rax, %rbx
	movq	_SEC_E_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_11
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_log_debug
	movq	_SEC_E_NO_AUTHENTICATING_AUTHORITY@GOTPCREL(%rip), %rax
	movq	_FALSE@GOTPCREL(%rip), %r13
	cmpq	(%rax), %rbx
	jne	LBB0_11
## %bb.10:
	movq	_FALSE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, (%r12)
	movq	%r14, %rdi
	callq	_authsspi_destroy_context
LBB0_11:
	movq	(%r13), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	8(%r12), %edi
	callq	_htonl
	ud2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in authgss_validate(for seq=%d)"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_RPCSEC_SSPI_DESTROY,8,3        ## @RPCSEC_SSPI_DESTROY
	.comm	_RPCSEC_SSPI_INIT,8,3           ## @RPCSEC_SSPI_INIT
	.comm	_RPCSEC_SSPI_CONTINUE_INIT,8,3  ## @RPCSEC_SSPI_CONTINUE_INIT
	.comm	_SEC_E_OK,8,3                   ## @SEC_E_OK
L_.str.1:                               ## @.str.1
	.asciz	"authsspi_validate: VerifySignature failed with %x"

	.comm	_SEC_E_NO_AUTHENTICATING_AUTHORITY,8,3 ## @SEC_E_NO_AUTHENTICATING_AUTHORITY
	.comm	_min_stat,4,2                   ## @min_stat
	.no_dead_strip	_authsspi_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function authsspi_validate
_authsspi_validate:                     ; @authsspi_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	sxtw	x1, w22
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_debug
	mov	x0, x20
	bl	_AUTH_PRIVATE
	mov	x19, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _FALSE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x21]
	bl	_mem_alloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_9
; %bb.2:
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	bl	_memcpy
	ldr	w8, [x21]
	str	w8, [x19, #32]
	b	LBB0_8
LBB0_3:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _RPCSEC_SSPI_DESTROY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RPCSEC_SSPI_DESTROY@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.4:
Lloh8:
	adrp	x9, _RPCSEC_SSPI_INIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RPCSEC_SSPI_INIT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _RPCSEC_SSPI_CONTINUE_INIT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RPCSEC_SSPI_CONTINUE_INIT@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_13
; %bb.5:
	cmn	w22, #1
	b.ne	LBB0_7
; %bb.6:
	ldr	w22, [x19, #24]
LBB0_7:
	mov	x0, x22
	bl	_htonl
	stur	w0, [x29, #-36]
	sub	x8, x29, #36
	str	x8, [sp, #24]
	mov	w8, #4
	str	w8, [sp, #32]
	ldr	x8, [x21, #8]
	str	x8, [sp, #8]
	ldr	w8, [x21]
	str	w8, [sp, #16]
	add	x0, x19, #12
	add	x2, sp, #24
	add	x3, sp, #8
	add	x4, sp, #40
	mov	x1, x22
	bl	_sspi_verify_mic
Lloh14:
	adrp	x8, _SEC_E_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEC_E_OK@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_8:
Lloh17:
	adrp	x22, _TRUE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh19:
	adrp	x22, _FALSE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	x21, x0
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_log_debug
Lloh23:
	adrp	x8, _SEC_E_NO_AUTHENTICATING_AUTHORITY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SEC_E_NO_AUTHENTICATING_AUTHORITY@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x22, _FALSE@GOTPAGE
Lloh27:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	cmp	x21, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x22]
	str	x8, [x19]
	mov	x0, x20
	bl	_authsspi_destroy_context
LBB0_12:
	ldr	x0, [x22]
	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
	add	sp, sp, #96
	ret
LBB0_13:
	ldr	w0, [x19, #8]
	bl	_htonl
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in authgss_validate(for seq=%d)"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_RPCSEC_SSPI_DESTROY,8,3        ; @RPCSEC_SSPI_DESTROY
	.comm	_RPCSEC_SSPI_INIT,8,3           ; @RPCSEC_SSPI_INIT
	.comm	_RPCSEC_SSPI_CONTINUE_INIT,8,3  ; @RPCSEC_SSPI_CONTINUE_INIT
	.comm	_SEC_E_OK,8,3                   ; @SEC_E_OK
l_.str.1:                               ; @.str.1
	.asciz	"authsspi_validate: VerifySignature failed with %x"

	.comm	_SEC_E_NO_AUTHENTICATING_AUTHORITY,8,3 ; @SEC_E_NO_AUTHENTICATING_AUTHORITY
	.comm	_min_stat,4,2                   ; @min_stat
	.no_dead_strip	_authsspi_validate
.subsections_via_symbols
