	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_state
_next_state:                            ## @next_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	movl	$4136, %eax                     ## imm = 0x1028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	___CALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_get_string
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_get_string
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_xkb_keymap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-4144(%rbp), %r8
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_xkb_keymap_key_get_syms_by_level
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	callq	_errx
LBB0_5:
	movq	-4144(%rbp), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_keysym_used_on_other_key
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
LBB0_6:
	movq	_xkb_keymap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-4152(%rbp), %r8
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_xkb_keymap_key_get_syms_by_level
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_printf
	jmp	LBB0_10
LBB0_18:
	movq	_state@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_statelist_idx@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	movl	%edx, %esi
	movq	_statelist@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	testq	%rdx, %rdx
	jle	LBB0_23
## %bb.19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rdi,%rbx,8)
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	cmpq	%rbx, %rsi
	jne	LBB0_20
LBB0_23:
	incl	%esi
	movl	%esi, (%rcx)
	movq	%rax, (%rdi,%rdx,8)
	jmp	LBB0_24
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	callq	_errx
LBB0_10:
	movq	-4152(%rbp), %rax
	movl	(%rax), %edi
	leaq	-4144(%rbp), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_xkb_keysym_get_name
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-4152(%rbp), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	callq	_errx
LBB0_12:
	leaq	L_.str.6(%rip), %rdi
	callq	_get_string
	movq	%rax, %r15
	leaq	L_.str.7(%rip), %r12
	testq	%r14, %r14
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	callq	_sstrdup
	movq	%rax, %r13
	movq	%rax, %rbx
	jmp	LBB0_16
LBB0_13:
	movq	%r12, %rdi
	callq	_sstrdup
	movq	%rax, %rbx
	movq	%r12, %r13
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	movb	$43, (%rax)
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_15
## %bb.17:
	testq	%r14, %r14
	leaq	L_.str.9(%rip), %r14
	cmoveq	%r12, %r14
	testq	%r15, %r15
	cmoveq	%r12, %r15
	leaq	L_.str.10(%rip), %rdi
	callq	_get_string
	movq	%rax, (%rsp)
	leaq	L_.str.8(%rip), %rsi
	leaq	-4160(%rbp), %rdi
	leaq	-4144(%rbp), %r8
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r15, %r9
	callq	_sasprintf
	xorl	%eax, %eax
	callq	_clear_stack
	movq	%rbx, %rdi
	callq	_free
	movq	-4160(%rbp), %rax
	jmp	LBB0_25
LBB0_21:
	incl	%ebx
	movl	%ebx, (%rcx)
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	___CALL,8,3                     ## @__CALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"modifiers"

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

L_.str.2:                               ## @.str.2
	.asciz	"Shift"

	.comm	_xkb_keymap,4,2                 ## @xkb_keymap
L_.str.3:                               ## @.str.3
	.asciz	"xkb_keymap_key_get_syms_by_level returned no symbols for keycode %d"

L_.str.4:                               ## @.str.4
	.asciz	"xkb_keymap_key_get_syms_by_level (keycode = %d) returned %d symbolsinstead of 1, using only the first one.\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.5:                               ## @.str.5
	.asciz	"xkb_keysym_get_name(%u) failed"

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

L_.str.7:                               ## @.str.7
	.space	1

L_.str.8:                               ## @.str.8
	.asciz	"bindsym %s%s%s %s%s\n"

L_.str.9:                               ## @.str.9
	.asciz	"+"

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

	.comm	_state,8,3                      ## @state
	.comm	_statelist_idx,4,2              ## @statelist_idx
	.comm	_statelist,8,3                  ## @statelist
	.no_dead_strip	_next_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_state
_next_state:                            ; @next_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0]
Lloh5:
	adrp	x9, ___CALL@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___CALL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_get_string
	mov	x19, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_get_string
	bl	_atoi
	mov	x20, x0
Lloh12:
	adrp	x21, _xkb_keymap@GOTPAGE
Lloh13:
	ldr	x21, [x21, _xkb_keymap@GOTPAGEOFF]
	cbz	x19, LBB0_11
; %bb.2:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w0, [x21]
	add	x4, sp, #24
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_xkb_keymap_key_get_syms_by_level
	cbnz	w0, LBB0_5
; %bb.4:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_errx
LBB0_5:
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_keysym_used_on_other_key
	cmp	w0, #0
	cset	w3, ne
	b	LBB0_12
LBB0_6:
Lloh18:
	adrp	x10, _state@GOTPAGE
Lloh19:
	ldr	x10, [x10, _state@GOTPAGEOFF]
Lloh20:
	adrp	x9, _statelist_idx@GOTPAGE
Lloh21:
	ldr	x9, [x9, _statelist_idx@GOTPAGEOFF]
Lloh22:
	str	x8, [x10]
	ldr	w10, [x9]
Lloh23:
	adrp	x11, _statelist@GOTPAGE
Lloh24:
	ldr	x11, [x11, _statelist@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x12, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11, x12, lsl #3]
	cmp	x13, x8
	b.eq	LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x12, x12, #1
	cmp	x10, x12
	b.ne	LBB0_8
LBB0_10:
	mov	x0, #0
	sxtw	x12, w10
	add	w10, w10, #1
	str	w10, [x9]
	str	x8, [x11, x12, lsl #3]
	b	LBB0_26
LBB0_11:
	mov	w3, #0
LBB0_12:
	ldr	w0, [x21]
	add	x4, sp, #16
	mov	x1, x20
	mov	w2, #0
	bl	_xkb_keymap_key_get_syms_by_level
	cbz	w0, LBB0_15
; %bb.13:
	mov	x2, x0
	cmp	w0, #2
	b.lt	LBB0_16
; %bb.14:
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_printf
	b	LBB0_16
LBB0_15:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_errx
LBB0_16:
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	add	x1, sp, #24
	mov	w2, #4096
	bl	_xkb_keysym_get_name
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.17:
Lloh30:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	x8, [sp, #16]
	ldr	w2, [x8]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_errx
LBB0_18:
Lloh35:
	adrp	x0, l_.str.6@PAGE
Lloh36:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_get_string
	mov	x22, x0
	cbz	x19, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_sstrdup
	mov	x21, x0
	b	LBB0_21
LBB0_20:
Lloh37:
	adrp	x21, l_.str.7@PAGE
Lloh38:
	add	x21, x21, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_sstrdup
LBB0_21:
	mov	x20, x0
	mov	w1, #44
	bl	_strchr
	cbz	x0, LBB0_24
; %bb.22:
	mov	w23, #43
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	strb	w23, [x0]
	mov	x0, x20
	mov	w1, #44
	bl	_strchr
	cbnz	x0, LBB0_23
LBB0_24:
Lloh39:
	adrp	x8, l_.str.9@PAGE
Lloh40:
	add	x8, x8, l_.str.9@PAGEOFF
Lloh41:
	adrp	x9, l_.str.7@PAGE
Lloh42:
	add	x9, x9, l_.str.7@PAGEOFF
	cmp	x19, #0
	csel	x19, x9, x8, eq
	cmp	x22, #0
	csel	x22, x9, x22, eq
Lloh43:
	adrp	x0, l_.str.10@PAGE
Lloh44:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_get_string
	mov	x6, x0
Lloh45:
	adrp	x1, l_.str.8@PAGE
Lloh46:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x0, sp, #8
	add	x4, sp, #24
	mov	x2, x21
	mov	x3, x19
	mov	x5, x22
	bl	_sasprintf
	bl	_clear_stack
	mov	x0, x20
	bl	_free
	ldr	x0, [sp, #8]
	b	LBB0_26
LBB0_25:
	mov	x0, #0
	add	w8, w12, #1
	str	w8, [x9]
LBB0_26:
	ldur	x8, [x29, #-56]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	___CALL,8,3                     ; @__CALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"modifiers"

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

l_.str.2:                               ; @.str.2
	.asciz	"Shift"

	.comm	_xkb_keymap,4,2                 ; @xkb_keymap
l_.str.3:                               ; @.str.3
	.asciz	"xkb_keymap_key_get_syms_by_level returned no symbols for keycode %d"

l_.str.4:                               ; @.str.4
	.asciz	"xkb_keymap_key_get_syms_by_level (keycode = %d) returned %d symbolsinstead of 1, using only the first one.\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.5:                               ; @.str.5
	.asciz	"xkb_keysym_get_name(%u) failed"

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

l_.str.7:                               ; @.str.7
	.space	1

l_.str.8:                               ; @.str.8
	.asciz	"bindsym %s%s%s %s%s\n"

l_.str.9:                               ; @.str.9
	.asciz	"+"

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

	.comm	_state,8,3                      ; @state
	.comm	_statelist_idx,4,2              ; @statelist_idx
	.comm	_statelist,8,3                  ; @statelist
	.no_dead_strip	_next_state
.subsections_via_symbols
