	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_name_state
_key_name_state:                        ## @key_name_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movb	(%rsi), %al
	cmpb	$9, %al
	je	LBB0_7
## %bb.1:
	cmpb	$32, %al
	je	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	movl	$93, %esi
	callq	_strrchrW
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movb	$0, (%rax)
	cmpb	$45, (%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_DELETE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_state
	incq	%rbx
	jmp	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_open_key
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_STRING_OPEN_KEY_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_output_message
LBB0_7:
	movq	_LINE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_state
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DELETE_KEY,4,2                 ## @DELETE_KEY
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_STRING_OPEN_KEY_FAILED,4,2     ## @STRING_OPEN_KEY_FAILED
	.comm	_LINE_START,4,2                 ## @LINE_START
	.no_dead_strip	_key_name_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_name_state
_key_name_state:                        ; @key_name_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldrb	w8, [x1]
	cmp	w8, #9
	b.eq	LBB0_7
; %bb.1:
	cmp	w8, #32
	b.eq	LBB0_7
; %bb.2:
	mov	x0, x19
	mov	w1, #93
	bl	_strrchrW
	cbz	x0, LBB0_7
; %bb.3:
	strb	wzr, [x0]
	ldrb	w8, [x19]
	cmp	w8, #45
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _DELETE_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DELETE_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_set_state
	add	x19, x19, #1
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_open_key
Lloh3:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _STRING_OPEN_KEY_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STRING_OPEN_KEY_FAILED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_output_message
LBB0_7:
Lloh9:
	adrp	x8, _LINE_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LINE_START@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_set_state
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DELETE_KEY,4,2                 ; @DELETE_KEY
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_STRING_OPEN_KEY_FAILED,4,2     ; @STRING_OPEN_KEY_FAILED
	.comm	_LINE_START,4,2                 ; @LINE_START
	.no_dead_strip	_key_name_state
.subsections_via_symbols
