	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svcauth_gss_wrap_resp_priv
_svcauth_gss_wrap_resp_priv:            ## @svcauth_gss_wrap_resp_priv
	.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	%rdi, %r13
	movq	32(%rdi), %r12
	movq	%r12, %rsi
	callq	_svcauth_gss_prepare_to_wrap
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %r14
	addq	$8, %r14
	movq	16(%r13), %rax
	subq	8(%rax), %r14
	movl	8(%r12), %edi
	callq	_htonl
	movq	%rax, 8(%r15)
	movq	8(%r13), %rax
	movq	24(%r13), %rcx
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.3:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	shlq	$2, %rdx
	addq	8(%rax), %rdx
	xorl	%edi, %edi
	cmpq	%rdx, %rsi
	setae	%dil
	callq	_BUG_ON
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	8(%rax), %rax
	xorl	%edi, %edi
	cmpq	8(%rcx), %rax
	setb	%dil
	callq	_BUG_ON
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movl	(%rax), %edx
	movl	(%rcx), %esi
	addl	%edx, %esi
	movq	_RPC_MAX_AUTH_SIZE@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	leal	(%rsi,%rcx,2), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	jg	LBB0_4
## %bb.5:
	movq	8(%rax), %rsi
	leaq	(%rsi,%rcx,4), %rdi
	callq	_memmove
	movslq	(%rbx), %rcx
	movq	8(%r13), %rax
	movq	8(%rax), %rdx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, 8(%rax)
	testq	%rdx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_8
LBB0_6:
	movq	16(%r13), %r8
	movslq	(%r8), %rdx
	movq	_RPC_MAX_AUTH_SIZE@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	leal	(%rdx,%rsi,2), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %edi
	jg	LBB0_4
## %bb.7:
	shlq	$2, %rdx
	addq	8(%r8), %rdx
	leaq	(%rdx,%rsi,4), %rdx
	movq	%rdx, 8(%rax)
	movl	$0, (%rax)
LBB0_8:
	shrq	$2, %r14
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_gss_wrap
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movl	(%r13), %edi
	subl	%r14d, %edi
	callq	_htonl
	movq	%rax, (%r15)
	notl	%r14d
	addl	(%r13), %r14d
	notl	%r14d
	andl	$3, %r14d
	movq	8(%r13), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%rax), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	8(%r13), %rax
	addl	%r14d, (%rax)
	addl	%r14d, (%r13)
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_RPC_MAX_AUTH_SIZE,4,2          ## @RPC_MAX_AUTH_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_svcauth_gss_wrap_resp_priv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svcauth_gss_wrap_resp_priv
_svcauth_gss_wrap_resp_priv:            ; @svcauth_gss_wrap_resp_priv
	.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
	mov	x19, x0
	ldr	x21, [x0, #32]
	mov	x1, x21
	bl	_svcauth_gss_prepare_to_wrap
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x23, [x8, #8]
	ldr	w0, [x21, #8]
	bl	_htonl
	mov	x24, x20
	str	x0, [x24, #8]!
	ldr	x22, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x26, _RPC_MAX_AUTH_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RPC_MAX_AUTH_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldrsw	x10, [x25]
	add	x8, x8, x10, lsl #2
	cmp	x9, x8
	cset	w0, hs
	bl	_BUG_ON
	ldp	x8, x9, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x9, [x9, #8]
	cmp	x8, x9
	cset	w0, lo
	bl	_BUG_ON
	ldp	x8, x9, [x19, #8]
	ldr	w2, [x8]
	ldr	w9, [x9]
	add	w10, w9, w2
	ldrsw	x9, [x26]
	add	w10, w10, w9, lsl #1
	ldr	w11, [x25]
	cmp	w10, w11
	b.gt	LBB0_7
; %bb.3:
	ldr	x1, [x8, #8]
	add	x0, x1, x9, lsl #2
	bl	_memmove
	ldrsw	x9, [x26]
	ldr	x8, [x19, #8]
	ldr	x10, [x8, #8]
	add	x9, x10, x9, lsl #2
	str	x9, [x8, #8]
	cbnz	x10, LBB0_6
LBB0_4:
	ldr	x9, [x19, #16]
	ldrsw	x10, [x9]
	ldrsw	x11, [x26]
	add	w12, w10, w11, lsl #1
	ldr	w13, [x25]
	cmp	w12, w13
	b.gt	LBB0_7
; %bb.5:
	ldr	x9, [x9, #8]
	add	x9, x9, x10, lsl #2
	add	x9, x9, x11, lsl #2
	str	x9, [x8, #8]
	str	wzr, [x8]
LBB0_6:
	sub	x8, x24, x23
	lsr	x23, x8, #2
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, x23
	mov	x2, x19
	mov	x3, x22
	bl	_gss_wrap
	cbz	x0, LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	ldr	w8, [x19]
	sub	w0, w8, w23
	bl	_htonl
	str	x0, [x20]
	ldr	w8, [x19]
	mvn	w9, w23
	add	w8, w8, w9
	mvn	w8, w8
	and	w20, w8, #0x3
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	add	x0, x9, x8, lsl #2
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	mov	w0, #0
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, w20
	str	w9, [x8]
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_RPC_MAX_AUTH_SIZE,4,2          ; @RPC_MAX_AUTH_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_svcauth_gss_wrap_resp_priv
.subsections_via_symbols
