	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function authsspi_marshal
_authsspi_marshal:                      ## @authsspi_marshal
	.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	%rdx, %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_AUTH_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debug
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_AUTH_PRIVATE
	movq	%rax, %r12
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	16(%r12), %rax
	incq	%rax
	movq	%rax, 16(%r12)
	movq	%rax, (%r15)
LBB0_2:
	movq	_XDR_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_xdrmem_create
	leaq	8(%r12), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xdr_rpc_sspi_cred
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_RPCSEC_GSS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	24(%r15), %r14
	movq	%rax, 40(%r15)
	movq	%r13, 24(%r15)
	leaq	-52(%rbp), %r13
	movq	%r13, %rdi
	callq	_XDR_GETPOS
	movq	%rax, 32(%r15)
	movq	%r13, %rdi
	callq	_XDR_DESTROY
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_xdr_opaque_auth
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rbx), %rax
	movq	_RPCSEC_SSPI_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_RPCSEC_SSPI_CONTINUE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_XDR_GETPOS
	addq	$-4, %rax
	movq	%rax, -104(%rbp)
	movq	%r15, %rdi
	callq	_xdrrec_getoutbase
	incq	%rax
	movq	%rax, -112(%rbp)
	movq	%r12, %rdi
	addq	$24, %rdi
	movq	16(%r12), %rdx
	leaq	-112(%rbp), %rcx
	leaq	-96(%rbp), %r8
	xorl	%esi, %esi
	callq	_sspi_get_mic
	movq	%rax, %rbx
	movq	_SEC_E_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
## %bb.13:
	movq	_RPCSEC_GSS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 16(%rsi)
	movq	-96(%rbp), %rax
	movq	%rax, (%rsi)
	movq	-88(%rbp), %rax
	movq	%rax, 8(%rsi)
	movq	%r15, %rdi
	callq	_xdr_opaque_auth
	movq	%rax, %rbx
	leaq	-96(%rbp), %rdi
	callq	_sspi_release_buffer
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debug
	leaq	-52(%rbp), %rdi
	callq	_XDR_DESTROY
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debug
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_14
LBB0_8:
	movq	__null_auth@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_xdr_opaque_auth
	movq	%rax, %rbx
LBB0_14:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_log_debug
	movq	_SEC_E_NO_AUTHENTICATING_AUTHORITY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_12
## %bb.11:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_authsspi_destroy_context
	jmp	LBB0_12
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_AUTH_BYTES,4,2             ## @MAX_AUTH_BYTES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in authgss_marshal()"

	.comm	_XDR_ENCODE,4,2                 ## @XDR_ENCODE
L_.str.1:                               ## @.str.1
	.asciz	"authsspi_marshal: xdr_rpc_sspi_cred failed"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_RPCSEC_GSS,8,3                 ## @RPCSEC_GSS
L_.str.2:                               ## @.str.2
	.asciz	"authsspi_marshal: failed to xdr GSS CRED"

	.comm	_RPCSEC_SSPI_INIT,8,3           ## @RPCSEC_SSPI_INIT
	.comm	_RPCSEC_SSPI_CONTINUE_INIT,8,3  ## @RPCSEC_SSPI_CONTINUE_INIT
	.comm	__null_auth,24,3                ## @_null_auth
	.comm	_SEC_E_OK,8,3                   ## @SEC_E_OK
L_.str.3:                               ## @.str.3
	.asciz	"authsspi_marshal: sspi_get_mic 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_marshal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function authsspi_marshal
_authsspi_marshal:                      ; @authsspi_marshal
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #48
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_AUTH_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_AUTH_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_debug
	mov	x0, x19
	bl	_AUTH_PRIVATE
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21, #16]
	add	x8, x8, #1
	str	x8, [x21, #16]
	str	x8, [x24]
LBB0_2:
Lloh10:
	adrp	x8, _XDR_ENCODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XDR_ENCODE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	sub	x0, x29, #76
	mov	x1, x22
	mov	x2, x23
	bl	_xdrmem_create
	add	x23, x21, #8
	sub	x0, x29, #76
	mov	x1, x23
	bl	_xdr_rpc_sspi_cred
	cbz	w0, LBB0_6
; %bb.3:
Lloh13:
	adrp	x26, _RPCSEC_GSS@GOTPAGE
Lloh14:
	ldr	x26, [x26, _RPCSEC_GSS@GOTPAGEOFF]
	ldr	x8, [x26]
	mov	x24, x19
	str	x22, [x24, #24]!
	str	x8, [x24, #16]
	sub	x0, x29, #76
	bl	_XDR_GETPOS
	str	x0, [x24, #8]
	sub	x0, x29, #76
	bl	_XDR_DESTROY
	mov	x0, x20
	mov	x1, x24
	bl	_xdr_opaque_auth
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x23]
Lloh15:
	adrp	x9, _RPCSEC_SSPI_INIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RPCSEC_SSPI_INIT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _RPCSEC_SSPI_CONTINUE_INIT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RPCSEC_SSPI_CONTINUE_INIT@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.5:
Lloh21:
	adrp	x1, __null_auth@GOTPAGE
Lloh22:
	ldr	x1, [x1, __null_auth@GOTPAGEOFF]
	mov	x0, x20
	bl	_xdr_opaque_auth
	mov	x19, x0
	b	LBB0_9
LBB0_6:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_debug
	sub	x0, x29, #76
	bl	_XDR_DESTROY
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_debug
LBB0_8:
Lloh27:
	adrp	x8, _FALSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh29:
	ldr	x19, [x8]
LBB0_9:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.10:
	mov	x0, x19
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x20
	bl	_XDR_GETPOS
	sub	x8, x0, #4
	stur	x8, [x29, #-88]
	mov	x0, x20
	bl	_xdrrec_getoutbase
	add	x8, x0, #1
	stur	x8, [x29, #-96]
	add	x0, x21, #24
	ldr	x2, [x21, #16]
	sub	x3, x29, #96
	sub	x4, x29, #112
	mov	w1, #0
	bl	_sspi_get_mic
Lloh33:
	adrp	x8, _SEC_E_OK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SEC_E_OK@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	ldr	x10, [x26]
	ldp	x8, x9, [x29, #-112]
	str	x8, [x19]
	stp	x9, x10, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_xdr_opaque_auth
	mov	x19, x0
	sub	x0, x29, #112
	bl	_sspi_release_buffer
	b	LBB0_9
LBB0_13:
	mov	x22, x0
	str	x0, [sp, #-16]!
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_debug
	add	sp, sp, #16
Lloh38:
	adrp	x8, _SEC_E_NO_AUTHENTICATING_AUTHORITY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SEC_E_NO_AUTHENTICATING_AUTHORITY@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x20, _FALSE@GOTPAGE
Lloh42:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	cmp	x22, x8
	b.ne	LBB0_15
; %bb.14:
	ldr	x8, [x20]
	str	x8, [x21]
	mov	x0, x19
	bl	_authsspi_destroy_context
LBB0_15:
	ldr	x19, [x20]
	b	LBB0_9
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_AUTH_BYTES,4,2             ; @MAX_AUTH_BYTES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in authgss_marshal()"

	.comm	_XDR_ENCODE,4,2                 ; @XDR_ENCODE
l_.str.1:                               ; @.str.1
	.asciz	"authsspi_marshal: xdr_rpc_sspi_cred failed"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_RPCSEC_GSS,8,3                 ; @RPCSEC_GSS
l_.str.2:                               ; @.str.2
	.asciz	"authsspi_marshal: failed to xdr GSS CRED"

	.comm	_RPCSEC_SSPI_INIT,8,3           ; @RPCSEC_SSPI_INIT
	.comm	_RPCSEC_SSPI_CONTINUE_INIT,8,3  ; @RPCSEC_SSPI_CONTINUE_INIT
	.comm	__null_auth,24,3                ; @_null_auth
	.comm	_SEC_E_OK,8,3                   ; @SEC_E_OK
l_.str.3:                               ; @.str.3
	.asciz	"authsspi_marshal: sspi_get_mic 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_marshal
.subsections_via_symbols
