	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sanitize_control_message       ## -- Begin function sanitize_control_message
	.p2align	4, 0x90
_sanitize_control_message:              ## @sanitize_control_message
	.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, %r15
	movq	%rdi, %rbx
	callq	_strlen
	leaq	1(%rax), %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_gc_malloc
	movq	%rax, %r13
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	decl	%r15d
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	%r14b, (%r13)
	incq	%r13
	incq	%rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %r14d
	cmpb	$83, %r14b
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$101, %r14b
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%r14b, %r14b
	jne	LBB0_4
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$8, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$7, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_D_SHOW_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_check_debug_level
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$97, %r14b
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$11, %edx
	callq	_strncmp
	testl	%eax, %eax
	movl	$1, %eax
	cmovel	%eax, %r12d
	movl	$10, %eax
	cmovel	%eax, %r15d
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$4, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r12d
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$44, %r14b
	movl	$0, %eax
	cmovel	%eax, %r12d
	cmovel	%eax, %r15d
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	jg	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	incq	%rbx
	jmp	LBB0_1
LBB0_18:
	movb	$0, (%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SESS_ID_"

L_.str.1:                               ## @.str.1
	.asciz	"echo "

	.comm	_D_SHOW_KEYS,4,2                ## @D_SHOW_KEYS
L_.str.2:                               ## @.str.2
	.asciz	"auth-token "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sanitize_control_message       ; -- Begin function sanitize_control_message
	.p2align	2
_sanitize_control_message:              ; @sanitize_control_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_strlen
	add	x0, x0, #1
	mov	w1, #0
	mov	x2, x20
	bl	_gc_malloc
	mov	w25, #0
	mov	w26, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x24, _D_SHOW_KEYS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _D_SHOW_KEYS@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	w27, #10
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x28, x0
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	strb	w20, [x28], #1
	add	x19, x19, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w20, [x19]
	cmp	w20, #83
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #101
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w20, LBB0_8
	b	LBB0_16
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #8
	bl	_strncmp
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #7
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	w2, #5
	bl	_strncmp
	cbz	w0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_check_debug_level
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #97
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	w2, #11
	bl	_strncmp
	cmp	w0, #0
	csel	w26, w27, w26, eq
	csinc	w25, w25, wzr, ne
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #4
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #1
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #44
	csel	w25, wzr, w25, eq
	csel	w26, wzr, w26, eq
	cbz	w25, LBB0_1
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	subs	w26, w26, #1
	b.ge	LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
	add	x19, x19, #1
	b	LBB0_2
LBB0_16:
	strb	wzr, [x28]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SESS_ID_"

l_.str.1:                               ; @.str.1
	.asciz	"echo "

	.comm	_D_SHOW_KEYS,4,2                ; @D_SHOW_KEYS
l_.str.2:                               ; @.str.2
	.asciz	"auth-token "

.subsections_via_symbols
