	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_state_gemini
_update_state_gemini:                   ## @update_state_gemini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	%edi, %rcx
	imulq	$-1840700269, %rcx, %rax        ## imm = 0x92492493
	shrq	$32, %rax
	addl	%ecx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	sarl	$2, %eax
	addl	%edx, %eax
	leal	(,%rax,8), %edx
	movl	%eax, %edi
	subl	%edx, %edi
	addl	%ecx, %edi
	movb	$6, %cl
	subb	%dil, %cl
	movl	$1, %edx
	shll	%cl, %edx
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_state@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	orl	%edx, (%rcx,%rax,4)
	movq	_chord@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%edx, (%rcx,%rax,4)
	jmp	LBB0_3
LBB0_2:
	notl	%edx
	movq	_state@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	andl	%edx, (%rcx,%rax,4)
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state,8,3                      ## @state
	.comm	_chord,8,3                      ## @chord
	.no_dead_strip	_update_state_gemini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_state_gemini
_update_state_gemini:                   ; @update_state_gemini
	.cfi_startproc
; %bb.0:
	mov	w8, #9363
	movk	w8, #37449, lsl #16
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #2
	add	w9, w9, w8, lsr #31
	lsl	w8, w9, #3
	sub	w8, w8, w9
	sub	w8, w8, w0
	add	w8, w8, #6
	mov	w10, #1
	lsl	w8, w10, w8
Lloh0:
	adrp	x10, _state@GOTPAGE
Lloh1:
	ldr	x10, [x10, _state@GOTPAGEOFF]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	x10, [x10]
	sbfiz	x9, x9, #2, #32
	ldr	w11, [x10, x9]
	orr	w11, w11, w8
	str	w11, [x10, x9]
Lloh2:
	adrp	x10, _chord@GOTPAGE
Lloh3:
	ldr	x10, [x10, _chord@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	w11, [x10, x9]
	orr	w8, w11, w8
	b	LBB0_3
LBB0_2:
	ldr	x10, [x10]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sbfiz	x9, x9, #2, #32
	ldr	w11, [x10, x9]
	bic	w8, w11, w8
LBB0_3:
	str	w8, [x10, x9]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_state,8,3                      ; @state
	.comm	_chord,8,3                      ; @chord
	.no_dead_strip	_update_state_gemini
.subsections_via_symbols
