	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_gss_destroy_context
_rpc_gss_destroy_context:               ## @rpc_gss_destroy_context
	.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	$24, %rsp
	.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, %r15
	leaq	L_.str(%rip), %rdi
	callq	_rpc_gss_log_debug
	movq	%r15, %rdi
	callq	_AUTH_PRIVATE
	movq	%rax, %r12
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	(%r12), %rax
	movq	_RPCSEC_GSS_ESTABLISHED@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.6:
	movq	_RPCSEC_GSS_DESTROYING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	%r14, %rdi
	callq	_mtx_unlock
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movq	_RPCSEC_GSS_DESTROY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	%r15, -48(%rbp)
	movl	44(%r12), %edi
	movq	_NULLPROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_xdr_void@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AUTH_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-48(%rbp), %rsi
	xorl	%r8d, %r8d
	movl	%ecx, %r9d
	pushq	%rax
	pushq	$0
	callq	_CLNT_CALL_EXT
	addq	$16, %rsp
LBB0_8:
	leaq	40(%r12), %r15
	movq	%r15, %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	movq	_pr_link@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_mem_free
	movq	%r15, %rdi
	callq	_LIST_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:
	movq	_xdr_gss_buffer_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r12), %rsi
	callq	_xdr_free
	movq	$0, 24(%r12)
	movq	8(%r12), %rax
	movq	_GSS_C_NO_CONTEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movq	%r12, %rsi
	addq	$8, %rsi
	leaq	-52(%rbp), %rdi
	xorl	%edx, %edx
	callq	_gss_delete_sec_context
LBB0_13:
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_RPCSEC_GSS_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_wakeup
	movq	%r14, %rdi
	callq	_mtx_unlock
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_RPCSEC_GSS_START@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_msleep
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r13), %rax
	jne	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in rpc_gss_destroy_context()"

	.comm	_RPCSEC_GSS_ESTABLISHED,8,3     ## @RPCSEC_GSS_ESTABLISHED
	.comm	_RPCSEC_GSS_START,8,3           ## @RPCSEC_GSS_START
L_.str.1:                               ## @.str.1
	.asciz	"gssstate"

	.comm	_RPCSEC_GSS_DESTROYING,8,3      ## @RPCSEC_GSS_DESTROYING
	.comm	_RPCSEC_GSS_DESTROY,4,2         ## @RPCSEC_GSS_DESTROY
	.comm	_NULLPROC,4,2                   ## @NULLPROC
	.comm	_xdr_void,8,3                   ## @xdr_void
	.comm	_AUTH_TIMEOUT,4,2               ## @AUTH_TIMEOUT
	.comm	_pr_link,4,2                    ## @pr_link
	.comm	_xdr_gss_buffer_desc,8,3        ## @xdr_gss_buffer_desc
	.comm	_GSS_C_NO_CONTEXT,8,3           ## @GSS_C_NO_CONTEXT
	.no_dead_strip	_rpc_gss_destroy_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_gss_destroy_context
_rpc_gss_destroy_context:               ; @rpc_gss_destroy_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rpc_gss_log_debug
	mov	x0, x21
	bl	_AUTH_PRIVATE
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mtx_lock
	ldr	x8, [x20]
Lloh2:
	adrp	x23, _RPCSEC_GSS_ESTABLISHED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RPCSEC_GSS_ESTABLISHED@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
Lloh4:
	adrp	x8, _RPCSEC_GSS_DESTROYING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RPCSEC_GSS_DESTROYING@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	x0, x19
	bl	_mtx_unlock
	cbz	x22, LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _RPCSEC_GSS_DESTROY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RPCSEC_GSS_DESTROY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	str	x21, [sp]
	ldr	w0, [x20, #44]
Lloh10:
	adrp	x8, _NULLPROC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NULLPROC@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _xdr_void@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xdr_void@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x8, _AUTH_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AUTH_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	w7, [x8]
	mov	x1, sp
	mov	x4, #0
	mov	x5, x3
	mov	x6, #0
	bl	_CLNT_CALL_EXT
LBB0_3:
	add	x21, x20, #40
	mov	x0, x21
	bl	_LIST_FIRST
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
Lloh19:
	adrp	x23, _pr_link@GOTPAGE
Lloh20:
	ldr	x23, [x23, _pr_link@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x22
	bl	_LIST_REMOVE
	mov	x0, x22
	mov	w1, #4
	bl	_mem_free
	mov	x0, x21
	bl	_LIST_FIRST
	mov	x22, x0
	cbnz	x0, LBB0_5
LBB0_6:
Lloh21:
	adrp	x8, _xdr_gss_buffer_desc@GOTPAGE
Lloh22:
	ldr	x8, [x8, _xdr_gss_buffer_desc@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_xdr_free
	str	xzr, [x20, #24]
	mov	x1, x20
	ldr	x8, [x1, #8]!
Lloh24:
	adrp	x9, _GSS_C_NO_CONTEXT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _GSS_C_NO_CONTEXT@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	add	x0, sp, #12
	mov	x2, #0
	bl	_gss_delete_sec_context
LBB0_8:
	mov	x0, x19
	bl	_mtx_lock
Lloh27:
	adrp	x8, _RPCSEC_GSS_START@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RPCSEC_GSS_START@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	x0, x20
	bl	_wakeup
	mov	x0, x19
	bl	_mtx_unlock
	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
	add	sp, sp, #80
	ret
LBB0_9:
Lloh30:
	adrp	x22, _RPCSEC_GSS_START@GOTPAGE
Lloh31:
	ldr	x22, [x22, _RPCSEC_GSS_START@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:
Lloh32:
	adrp	x21, l_.str.1@PAGE
Lloh33:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	x3, x21
	mov	w4, #0
	bl	_msleep
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_mtx_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in rpc_gss_destroy_context()"

	.comm	_RPCSEC_GSS_ESTABLISHED,8,3     ; @RPCSEC_GSS_ESTABLISHED
	.comm	_RPCSEC_GSS_START,8,3           ; @RPCSEC_GSS_START
l_.str.1:                               ; @.str.1
	.asciz	"gssstate"

	.comm	_RPCSEC_GSS_DESTROYING,8,3      ; @RPCSEC_GSS_DESTROYING
	.comm	_RPCSEC_GSS_DESTROY,4,2         ; @RPCSEC_GSS_DESTROY
	.comm	_NULLPROC,4,2                   ; @NULLPROC
	.comm	_xdr_void,8,3                   ; @xdr_void
	.comm	_AUTH_TIMEOUT,4,2               ; @AUTH_TIMEOUT
	.comm	_pr_link,4,2                    ; @pr_link
	.comm	_xdr_gss_buffer_desc,8,3        ; @xdr_gss_buffer_desc
	.comm	_GSS_C_NO_CONTEXT,8,3           ; @GSS_C_NO_CONTEXT
	.no_dead_strip	_rpc_gss_destroy_context
.subsections_via_symbols
