	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_state_from_str           ## -- Begin function event_state_from_str
	.p2align	4, 0x90
_event_state_from_str:                  ## @event_state_from_str
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	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, %r14
	leaq	L_.str(%rip), %rsi
	callq	_strstr
	xorl	%r15d, %r15d
	movl	$0, %r12d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_XCB_KEY_BUT_MASK_MOD_1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	movl	$0, %r13d
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_XCB_KEY_BUT_MASK_MOD_2@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_XCB_KEY_BUT_MASK_MOD_3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	orl	%r12d, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_XCB_KEY_BUT_MASK_MOD_4@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_10:
	orl	%ecx, %ebx
	orl	%ebx, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_XCB_KEY_BUT_MASK_MOD_5@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	orl	%r15d, %r13d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	movq	_XCB_KEY_BUT_MASK_CONTROL@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_15:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	xorl	%r15d, %r15d
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_XCB_KEY_BUT_MASK_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	movq	_I3_XKB_GROUP_MASK_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$16, %ecx
	testq	%rax, %rax
	cmovel	%r15d, %ecx
	orl	%ecx, %r13d
	orl	%ebx, %r13d
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	movq	_I3_XKB_GROUP_MASK_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	orl	%eax, %r13d
LBB0_20:
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	movq	_I3_XKB_GROUP_MASK_3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	shll	$16, %ebx
	xorl	%r15d, %r15d
	testq	%rax, %rax
	cmovel	%r15d, %ebx
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	movq	%rax, %rcx
	movq	_I3_XKB_GROUP_MASK_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	testq	%rcx, %rcx
	cmovel	%r15d, %eax
	orl	%r13d, %eax
	orl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mod1"

	.comm	_XCB_KEY_BUT_MASK_MOD_1,4,2     ## @XCB_KEY_BUT_MASK_MOD_1
L_.str.1:                               ## @.str.1
	.asciz	"Mod2"

	.comm	_XCB_KEY_BUT_MASK_MOD_2,4,2     ## @XCB_KEY_BUT_MASK_MOD_2
L_.str.2:                               ## @.str.2
	.asciz	"Mod3"

	.comm	_XCB_KEY_BUT_MASK_MOD_3,4,2     ## @XCB_KEY_BUT_MASK_MOD_3
L_.str.3:                               ## @.str.3
	.asciz	"Mod4"

	.comm	_XCB_KEY_BUT_MASK_MOD_4,4,2     ## @XCB_KEY_BUT_MASK_MOD_4
L_.str.4:                               ## @.str.4
	.asciz	"Mod5"

	.comm	_XCB_KEY_BUT_MASK_MOD_5,4,2     ## @XCB_KEY_BUT_MASK_MOD_5
L_.str.5:                               ## @.str.5
	.asciz	"Control"

L_.str.6:                               ## @.str.6
	.asciz	"Ctrl"

	.comm	_XCB_KEY_BUT_MASK_CONTROL,4,2   ## @XCB_KEY_BUT_MASK_CONTROL
L_.str.7:                               ## @.str.7
	.asciz	"Shift"

	.comm	_XCB_KEY_BUT_MASK_SHIFT,4,2     ## @XCB_KEY_BUT_MASK_SHIFT
L_.str.8:                               ## @.str.8
	.asciz	"Group1"

	.comm	_I3_XKB_GROUP_MASK_1,4,2        ## @I3_XKB_GROUP_MASK_1
L_.str.9:                               ## @.str.9
	.asciz	"Group2"

L_.str.10:                              ## @.str.10
	.asciz	"Mode_switch"

	.comm	_I3_XKB_GROUP_MASK_2,4,2        ## @I3_XKB_GROUP_MASK_2
L_.str.11:                              ## @.str.11
	.asciz	"Group3"

	.comm	_I3_XKB_GROUP_MASK_3,4,2        ## @I3_XKB_GROUP_MASK_3
L_.str.12:                              ## @.str.12
	.asciz	"Group4"

	.comm	_I3_XKB_GROUP_MASK_4,4,2        ## @I3_XKB_GROUP_MASK_4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_state_from_str           ; -- Begin function event_state_from_str
	.p2align	2
_event_state_from_str:                  ; @event_state_from_str
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_8
; %bb.1:
	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, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strstr
Lloh2:
	adrp	x8, _XCB_KEY_BUT_MASK_MOD_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XCB_KEY_BUT_MASK_MOD_1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, wzr, w8, eq
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strstr
Lloh7:
	adrp	x8, _XCB_KEY_BUT_MASK_MOD_2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XCB_KEY_BUT_MASK_MOD_2@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w20
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strstr
Lloh12:
	adrp	x8, _XCB_KEY_BUT_MASK_MOD_3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XCB_KEY_BUT_MASK_MOD_3@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w20, w8
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strstr
Lloh17:
	adrp	x8, _XCB_KEY_BUT_MASK_MOD_4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XCB_KEY_BUT_MASK_MOD_4@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w20, w8
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strstr
Lloh22:
	adrp	x8, _XCB_KEY_BUT_MASK_MOD_5@GOTPAGE
Lloh23:
	ldr	x8, [x8, _XCB_KEY_BUT_MASK_MOD_5@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w20, w8
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_3
; %bb.2:
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_4
LBB0_3:
Lloh29:
	adrp	x8, _XCB_KEY_BUT_MASK_CONTROL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XCB_KEY_BUT_MASK_CONTROL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_4:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_strstr
Lloh34:
	adrp	x8, _XCB_KEY_BUT_MASK_SHIFT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _XCB_KEY_BUT_MASK_SHIFT@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w20
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_strstr
Lloh39:
	adrp	x8, _I3_XKB_GROUP_MASK_1@GOTPAGE
Lloh40:
	ldr	x8, [x8, _I3_XKB_GROUP_MASK_1@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w20, w8
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_6
; %bb.5:
Lloh44:
	adrp	x1, l_.str.10@PAGE
Lloh45:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_7
LBB0_6:
Lloh46:
	adrp	x8, _I3_XKB_GROUP_MASK_2@GOTPAGE
Lloh47:
	ldr	x8, [x8, _I3_XKB_GROUP_MASK_2@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	orr	w20, w20, w8, lsl #16
LBB0_7:
Lloh49:
	adrp	x1, l_.str.11@PAGE
Lloh50:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_strstr
Lloh51:
	adrp	x8, _I3_XKB_GROUP_MASK_3@GOTPAGE
Lloh52:
	ldr	x8, [x8, _I3_XKB_GROUP_MASK_3@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w20
Lloh54:
	adrp	x1, l_.str.12@PAGE
Lloh55:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_strstr
Lloh56:
	adrp	x8, _I3_XKB_GROUP_MASK_4@GOTPAGE
Lloh57:
	ldr	x8, [x8, _I3_XKB_GROUP_MASK_4@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w0, w20, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mod1"

	.comm	_XCB_KEY_BUT_MASK_MOD_1,4,2     ; @XCB_KEY_BUT_MASK_MOD_1
l_.str.1:                               ; @.str.1
	.asciz	"Mod2"

	.comm	_XCB_KEY_BUT_MASK_MOD_2,4,2     ; @XCB_KEY_BUT_MASK_MOD_2
l_.str.2:                               ; @.str.2
	.asciz	"Mod3"

	.comm	_XCB_KEY_BUT_MASK_MOD_3,4,2     ; @XCB_KEY_BUT_MASK_MOD_3
l_.str.3:                               ; @.str.3
	.asciz	"Mod4"

	.comm	_XCB_KEY_BUT_MASK_MOD_4,4,2     ; @XCB_KEY_BUT_MASK_MOD_4
l_.str.4:                               ; @.str.4
	.asciz	"Mod5"

	.comm	_XCB_KEY_BUT_MASK_MOD_5,4,2     ; @XCB_KEY_BUT_MASK_MOD_5
l_.str.5:                               ; @.str.5
	.asciz	"Control"

l_.str.6:                               ; @.str.6
	.asciz	"Ctrl"

	.comm	_XCB_KEY_BUT_MASK_CONTROL,4,2   ; @XCB_KEY_BUT_MASK_CONTROL
l_.str.7:                               ; @.str.7
	.asciz	"Shift"

	.comm	_XCB_KEY_BUT_MASK_SHIFT,4,2     ; @XCB_KEY_BUT_MASK_SHIFT
l_.str.8:                               ; @.str.8
	.asciz	"Group1"

	.comm	_I3_XKB_GROUP_MASK_1,4,2        ; @I3_XKB_GROUP_MASK_1
l_.str.9:                               ; @.str.9
	.asciz	"Group2"

l_.str.10:                              ; @.str.10
	.asciz	"Mode_switch"

	.comm	_I3_XKB_GROUP_MASK_2,4,2        ; @I3_XKB_GROUP_MASK_2
l_.str.11:                              ; @.str.11
	.asciz	"Group3"

	.comm	_I3_XKB_GROUP_MASK_3,4,2        ; @I3_XKB_GROUP_MASK_3
l_.str.12:                              ; @.str.12
	.asciz	"Group4"

	.comm	_I3_XKB_GROUP_MASK_4,4,2        ; @I3_XKB_GROUP_MASK_4
.subsections_via_symbols
