	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gss_encapsulate_token          ## -- Begin function gss_encapsulate_token
	.p2align	4, 0x90
_gss_encapsulate_token:                 ## @gss_encapsulate_token
	.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	%rsi, %r12
	movq	%rdi, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	__gss_buffer_zero
	movb	$1, %r13b
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$96, (%rbx)
	incq	%rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r12), %rcx
	cmpq	$127, %rcx
	jg	LBB0_25
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r15), %rax
	addq	%rcx, %rax
	addq	$2, %rax
	cmpl	$127, %eax
	ja	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movb	%al, (%rbx)
	incq	%rbx
	movl	$2, %r14d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$256, %eax                      ## imm = 0x100
	movl	$1, %edi
	sbbq	$-1, %rdi
	xorl	%edx, %edx
	cmpl	$65536, %eax                    ## imm = 0x10000
	setae	%dl
	leaq	(%rdi,%rdx), %rsi
	xorl	%r8d, %r8d
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	setae	%r8b
	addq	%r8, %rsi
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%esi, %ecx
	orb	$-128, %cl
	movb	%cl, (%rbx)
	incq	%rbx
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$2, %r14d
	jmp	LBB0_19
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	leal	32(,%rsi,8), %ecx
	negl	%ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rax
	leaq	(%rdi,%rdx), %r14
	addq	$2, %r14
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, %rcx
	shrq	$24, %rcx
	movb	%cl, (%rbx)
	incq	%rbx
	decq	%rsi
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	shlq	$8, %rax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	decq	%rsi
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	xorl	%ebx, %ebx
	shlq	$8, %rax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	%r8, %r14
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	$6, (%rbx)
	movb	(%r12), %al
	leaq	2(%rbx), %rdi
	movb	%al, 1(%rbx)
	movq	8(%r12), %rsi
	movl	(%r12), %edx
	callq	_memcpy
	movslq	(%r12), %rax
	leaq	(%rbx,%rax), %rdi
	addq	$2, %rdi
	leaq	(%r14,%rax), %rbx
	addq	$2, %rbx
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	callq	_memcpy
	testb	$1, %r13b
	jne	LBB0_24
	jmp	LBB0_23
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	%r8, %r14
	movl	(%r12), %ecx
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	%ecx, %rax
	leaq	(%r14,%rax), %rbx
	addq	$2, %rbx
	testb	$1, %r13b
	je	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r15), %rax
	addq	%rax, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%ebx, (%r14)
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_1
LBB0_25:
	movq	_GSS_S_DEFECTIVE_TOKEN@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_23:
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_DEFECTIVE_TOKEN,4,2      ## @GSS_S_DEFECTIVE_TOKEN
	.comm	_GSS_S_COMPLETE,4,2             ## @GSS_S_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gss_encapsulate_token          ; -- Begin function gss_encapsulate_token
	.p2align	2
_gss_encapsulate_token:                 ; @gss_encapsulate_token
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	__gss_buffer_zero
	mov	x0, #0
	mov	w24, #1
	mov	w26, #6
	mov	w27, #32
	mov	w28, #96
	mov	w25, #1
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	strb	w28, [x0], #1
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20]
	cmp	w8, #127
	b.gt	LBB0_21
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x9, w8
	ldrsw	x10, [x21]
	add	x9, x9, x10
	add	x10, x9, #2
	cmp	w10, #127
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	strb	w10, [x0], #1
	mov	w23, #2
	b	LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w10, #255
	cinc	x11, x24, hi
	tst	w10, #0xffff0000
	cset	w12, ne
	cinc	x9, x11, ne
	tst	w10, #0xff000000
	cset	w8, ne
	cinc	x9, x9, ne
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	orr	w13, w9, #0x80
	strb	w13, [x0], #1
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	x13, x27, x9, lsl #3
	lsl	x10, x10, x13
	add	x11, x11, x12
	add	x11, x11, #2
LBB0_10:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	lsr	x12, x10, #24
	strb	w12, [x0], #1
	subs	x9, x9, #1
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	lsl	x10, x10, #8
	b	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
	subs	x9, x9, #1
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, #0
	lsl	x10, x10, #8
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x23, x11, x8
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	strb	w26, [x0]
	ldr	w8, [x20]
	add	x22, x0, #2
	strb	w8, [x0, #1]
	ldr	x1, [x20, #8]
	ldr	w2, [x20]
	mov	x0, x22
	bl	_memcpy
	ldrsw	x8, [x20]
	add	x9, x23, x8
	add	x0, x22, x8
	add	x22, x9, #2
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	bl	_memcpy
	tbnz	w25, #0, LBB0_20
	b	LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w9, #2
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x11, x8
	ldr	w8, [x20]
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x9, w8, sxtw
	add	x22, x8, #2
	tbz	w25, #0, LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrsw	x8, [x21]
	add	x0, x22, x8
	str	w0, [x19]
	bl	_malloc
	mov	w25, #0
	str	x0, [x19, #8]
	cbnz	x0, LBB0_1
LBB0_21:
Lloh0:
	adrp	x8, _GSS_S_DEFECTIVE_TOKEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSS_S_DEFECTIVE_TOKEN@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
Lloh2:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_DEFECTIVE_TOKEN,4,2      ; @GSS_S_DEFECTIVE_TOKEN
	.comm	_GSS_S_COMPLETE,4,2             ; @GSS_S_COMPLETE
.subsections_via_symbols
