	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function watch_joy
_watch_joy:                             ## @watch_joy
	.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
	subq	$120, %rsp
	.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	_is_watching@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.2:
	movq	_PERCore@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpl	$0, 20(%rax)
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r15
	movq	_PERSF_KEY@GOTPCREL(%rip), %rcx
	movq	_PERSF_BUTTON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_PERSF_HAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-160(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_sprintf
	movq	_keyfile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movl	16(%rax), %esi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_g_key_file_set_integer
	movq	(%r13), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$100, %edx
	callq	*8(%rax)
	movq	_entry_hack@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_gtk_entry_set_text
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_6
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_is_watching,8,3                ## @is_watching
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_PERCore,8,3                    ## @PERCore
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_PERSF_KEY,4,2                  ## @PERSF_KEY
	.comm	_PERSF_BUTTON,4,2               ## @PERSF_BUTTON
	.comm	_PERSF_HAT,4,2                  ## @PERSF_HAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pad.%s.1"

	.comm	_keyfile,4,2                    ## @keyfile
	.comm	_entry_hack,4,2                 ## @entry_hack
	.no_dead_strip	_watch_joy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function watch_joy
_watch_joy:                             ; @watch_joy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _is_watching@GOTPAGE
Lloh4:
	ldr	x21, [x21, _is_watching@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.1:
Lloh5:
	adrp	x22, _PERCore@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PERCore@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w9, [x8, #20]
	cbz	w9, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _PERSF_KEY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PERSF_KEY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _PERSF_BUTTON@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PERSF_BUTTON@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh13:
	adrp	x10, _PERSF_HAT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PERSF_HAT@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w0, w9, w10
	blr	x8
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #4
	mov	x2, x19
	bl	_sprintf
Lloh18:
	adrp	x8, _keyfile@GOTPAGE
Lloh19:
	ldr	x8, [x8, _keyfile@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x8, [x22]
	ldr	w1, [x8, #16]
	add	x2, sp, #4
	mov	x3, x20
	bl	_g_key_file_set_integer
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	add	x1, sp, #4
	mov	x0, x20
	mov	w2, #100
	blr	x8
Lloh21:
	adrp	x8, _entry_hack@GOTPAGE
Lloh22:
	ldr	x8, [x8, _entry_hack@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	add	x1, sp, #4
	bl	_gtk_entry_set_text
Lloh24:
	adrp	x8, _FALSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	str	x0, [x21]
	b	LBB0_6
LBB0_4:
Lloh27:
	adrp	x8, _FALSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_5:
Lloh30:
	adrp	x8, _TRUE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh32:
	ldr	x0, [x8]
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_is_watching,8,3                ; @is_watching
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_PERCore,8,3                    ; @PERCore
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_PERSF_KEY,4,2                  ; @PERSF_KEY
	.comm	_PERSF_BUTTON,4,2               ; @PERSF_BUTTON
	.comm	_PERSF_HAT,4,2                  ; @PERSF_HAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pad.%s.1"

	.comm	_keyfile,4,2                    ; @keyfile
	.comm	_entry_hack,4,2                 ; @entry_hack
	.no_dead_strip	_watch_joy
.subsections_via_symbols
