	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unwrap_priv_data
_unwrap_priv_data:                      ## @unwrap_priv_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	$0, 8(%rdi)
	movq	8(%rsi), %rdi
	callq	_svc_getnl
	cmpq	$0, (%rbx)
	je	LBB0_1
LBB0_5:
	movq	8(%r13), %rdi
	callq	_svc_getnl
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_total_buf_len
	subl	%r15d, %eax
	jl	LBB0_6
## %bb.2:
	subl	%eax, (%r13)
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_fix_priv_head
	movl	(%r13), %ebx
	movl	%r15d, (%r13)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_gss_unwrap
	movl	%eax, %r12d
	subl	(%r13), %r15d
	subl	%r15d, %ebx
	movl	%ebx, (%r13)
	movq	8(%r13), %rax
	movl	(%rax), %esi
	leal	3(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	andl	$-4, %eax
	subl	%eax, %esi
	je	LBB0_4
## %bb.3:
	movq	_RPCSVC_MAXPAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_xdr_shift_buf
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_fix_priv_head
LBB0_4:
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RPCSVC_MAXPAYLOAD,4,2          ## @RPCSVC_MAXPAYLOAD
	.comm	_GSS_S_COMPLETE,4,2             ## @GSS_S_COMPLETE
	.no_dead_strip	_unwrap_priv_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unwrap_priv_data
_unwrap_priv_data:                      ; @unwrap_priv_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	str	xzr, [x0, #8]
	ldr	x0, [x1, #8]
	bl	_svc_getnl
	ldr	x8, [x23]
	cbz	x8, LBB0_3
LBB0_1:
	ldr	x0, [x20, #8]
	bl	_svc_getnl
	cmp	w0, w19
	b.ne	LBB0_7
; %bb.2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	mov	x22, x0
	mov	x0, x20
	bl	_total_buf_len
	subs	w1, w0, w22
	b.lt	LBB0_7
; %bb.4:
	ldr	w8, [x20]
	sub	w8, w8, w1
	str	w8, [x20]
	mov	x0, x20
	bl	_fix_priv_head
	ldr	w23, [x20]
	str	w22, [x20]
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	bl	_gss_unwrap
	mov	x21, x0
	ldr	w8, [x20]
	sub	w22, w22, w8
	sub	w8, w23, w22
	str	w8, [x20]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	negs	w9, w8
	and	w9, w9, #0x3
	and	w8, w8, #0x3
	csneg	w1, w8, w9, mi
	cbz	w1, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _RPCSVC_MAXPAYLOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPCSVC_MAXPAYLOAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x20
	bl	_xdr_shift_buf
	mov	x0, x20
	mov	x1, x22
	bl	_fix_priv_head
LBB0_6:
Lloh3:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_1
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RPCSVC_MAXPAYLOAD,4,2          ; @RPCSVC_MAXPAYLOAD
	.comm	_GSS_S_COMPLETE,4,2             ; @GSS_S_COMPLETE
	.no_dead_strip	_unwrap_priv_data
.subsections_via_symbols
