	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svcauth_gss_wrap_resp_integ
_svcauth_gss_wrap_resp_integ:           ## @svcauth_gss_wrap_resp_integ
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	24(%rdi), %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rsi
	callq	_svcauth_gss_prepare_to_wrap
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %r13
	addq	$4, %r13
	movq	16(%r12), %rax
	subq	8(%rax), %r13
	shrq	$2, %r13
	movl	(%r12), %ebx
	subl	%r13d, %ebx
	leal	3(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	andl	$-4, %eax
	movl	%ebx, %edi
	subl	%eax, %edi
	callq	_BUG_ON
	movl	%ebx, %edi
	callq	_htonl
	movl	%eax, (%r15)
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_htonl
	movl	%eax, 4(%r15)
	leaq	-96(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_xdr_buf_subsegment
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_BUG
LBB0_3:
	movq	8(%r12), %r15
	movq	8(%r15), %rax
	testq	%rax, %rax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movslq	(%r15), %rcx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_7
LBB0_5:
	movq	16(%r12), %rcx
	movq	(%rcx), %rax
	movq	_RPC_MAX_AUTH_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	%rax, %rdx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jg	LBB0_9
## %bb.6:
	shlq	$2, %rax
	addq	8(%rcx), %rax
	movq	%rax, 8(%r15)
	movl	$0, (%r15)
	xorl	%ecx, %ecx
LBB0_7:
	leaq	(%rax,%rcx,4), %rax
	addq	$16, %rax
	movq	%rax, -56(%rbp)
	movq	(%rdi), %rax
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_gss_get_mic
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	-64(%rbp), %esi
	movq	%r15, %rdi
	callq	_svc_putnl
	movslq	-64(%rbp), %rdi
	movq	%rdi, %rbx
	shlq	$2, %rbx
	addq	-56(%rbp), %rbx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_round_up_to_quad
	subl	-64(%rbp), %eax
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movl	-64(%rbp), %edi
	callq	_XDR_QUADLEN
	shll	$2, %eax
	addl	%eax, (%r15)
	movl	-64(%rbp), %edi
	callq	_XDR_QUADLEN
	shll	$2, %eax
	addl	%eax, (%r12)
	movslq	(%r15), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	%rax, (%rcx)
	setl	%dil
	callq	_BUG_ON
LBB0_9:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RPC_MAX_AUTH_SIZE,8,3          ## @RPC_MAX_AUTH_SIZE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_svcauth_gss_wrap_resp_integ
.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_integ
_svcauth_gss_wrap_resp_integ:           ; @svcauth_gss_wrap_resp_integ
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	x21, [x0, #24]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x1, x21
	bl	_svcauth_gss_prepare_to_wrap
	cbz	x0, LBB0_9
; %bb.1:
	mov	x22, x0
	neg	w20, w20
	add	x8, x0, #4
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #8]
	sub	x8, x8, x9
	lsr	x23, x8, #2
	ldr	w8, [x19]
	sub	w24, w8, w23
	negs	w8, w24
	and	w9, w24, #0x3
	and	w8, w8, #0x3
	csneg	w0, w9, w8, mi
	bl	_BUG_ON
	mov	x0, x24
	bl	_htonl
	str	w0, [x22]
	ldr	w0, [x21, #8]
	bl	_htonl
	str	w0, [x22, #4]
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x23
	mov	x3, x24
	bl	_xdr_buf_subsegment
	cbz	x0, LBB0_3
; %bb.2:
	bl	_BUG
LBB0_3:
	ldr	x22, [x19, #8]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldrsw	x9, [x22]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x10, [x8]
Lloh3:
	adrp	x9, _RPC_MAX_AUTH_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RPC_MAX_AUTH_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x11, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	add	x9, x9, x10
	cmp	x9, x11
	b.gt	LBB0_10
; %bb.6:
	mov	x9, #0
	ldr	x8, [x8, #8]
	add	x8, x8, x10, lsl #2
	str	x8, [x22, #8]
	str	wzr, [x22]
LBB0_7:
	add	x8, x8, x9, lsl #2
	add	x8, x8, #16
	str	x8, [sp, #16]
	ldr	x8, [x21]
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #8
	bl	_gss_get_mic
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	w1, [sp, #8]
	mov	x0, x22
	bl	_svc_putnl
	ldr	x8, [sp, #16]
	ldrsw	x0, [sp, #8]
	add	x20, x8, x0, lsl #2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_round_up_to_quad
	ldr	w8, [sp, #8]
	sub	w2, w0, w8
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w0, [sp, #8]
	bl	_XDR_QUADLEN
	ldr	w8, [x22]
	add	w8, w8, w0, lsl #2
	str	w8, [x22]
	ldr	w0, [sp, #8]
	bl	_XDR_QUADLEN
	ldr	w8, [x19]
	add	w8, w8, w0, lsl #2
	str	w8, [x19]
	ldrsw	x8, [x22]
Lloh9:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	cset	w0, lt
	bl	_BUG_ON
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RPC_MAX_AUTH_SIZE,8,3          ; @RPC_MAX_AUTH_SIZE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_svcauth_gss_wrap_resp_integ
.subsections_via_symbols
