	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_light                       ## -- Begin function on_light
	.p2align	4, 0x90
_on_light:                              ## @on_light
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	16(%rax), %esi
	movl	12(%rax), %edx
	movl	8(%rax), %ecx
	movl	(%rax), %r9d
	movl	4(%rax), %r8d
	subq	$8, %rsp
	leaq	-8(%rbp), %rax
	leaq	-4(%rbp), %r10
	leaq	-12(%rbp), %r11
	xorl	%edi, %edi
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_hit_test
	addq	$32, %rsp
	movl	-4(%rbp), %ecx
	decl	%ecx
	cmpl	$254, %ecx
	ja	LBB0_3
## %bb.1:
	movl	%eax, %edi
	callq	_is_destructable
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-12(%rbp), %edi
	movl	-4(%rbp), %esi
	movl	-8(%rbp), %edx
	callq	_toggle_light
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g,8,3                          ## @g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_light                       ; -- Begin function on_light
	.p2align	2
_on_light:                              ; @on_light
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _g@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	w2, w1, [x8, #12]
	ldp	w4, w3, [x8, #4]
	ldr	w5, [x8]
	sub	x8, x29, #12
	str	x8, [sp]
	sub	x6, x29, #4
	sub	x7, x29, #8
	mov	w0, #0
	bl	_hit_test
	ldur	w8, [x29, #-8]
	sub	w8, w8, #1
	cmp	w8, #254
	b.hi	LBB0_3
; %bb.1:
	bl	_is_destructable
	cbz	x0, LBB0_3
; %bb.2:
	ldp	w1, w0, [x29, #-8]
	ldur	w2, [x29, #-12]
	bl	_toggle_light
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_g,8,3                          ; @g
.subsections_via_symbols
