	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_right_click                 ## -- Begin function on_right_click
	.p2align	4, 0x90
_on_right_click:                        ## @on_right_click
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_g@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rbx
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	16(%rbx), %r8d
	movl	12(%rbx), %r9d
	subq	$8, %rsp
	leaq	-24(%rbp), %rax
	leaq	-20(%rbp), %r10
	leaq	-28(%rbp), %r11
	movl	$1, %edi
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_hit_test
	addq	$32, %rsp
	movl	-20(%rbp), %ecx
	decl	%ecx
	cmpl	$254, %ecx
	ja	LBB0_4
## %bb.1:
	movl	%eax, %edi
	callq	_is_obstacle
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	-28(%rbp), %r8d
	movl	-20(%rbp), %r9d
	movl	-24(%rbp), %eax
	subq	$8, %rsp
	movl	$2, %edi
	pushq	%rax
	callq	_player_intersects_block
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-28(%rbp), %edi
	movl	-20(%rbp), %esi
	movl	-24(%rbp), %edx
	movq	_items@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	callq	_set_block
	movl	-28(%rbp), %edi
	movl	-20(%rbp), %esi
	movl	-24(%rbp), %edx
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	callq	_record_block
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g,8,3                          ## @g
	.comm	_items,8,3                      ## @items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_right_click                 ; -- Begin function on_right_click
	.p2align	2
_on_right_click:                        ; @on_right_click
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x19, _g@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x20, [x8, #8]
	ldp	w3, w2, [x20]
	ldp	w5, w4, [x20, #12]
	ldr	w1, [x20, #8]
	add	x8, sp, #20
	str	x8, [sp]
	sub	x6, x29, #20
	add	x7, sp, #24
	mov	w0, #1
	bl	_hit_test
	ldr	w8, [sp, #24]
	sub	w8, w8, #1
	cmp	w8, #254
	b.hi	LBB0_4
; %bb.1:
	bl	_is_obstacle
	cbz	x0, LBB0_4
; %bb.2:
	ldp	w2, w1, [x20, #4]
	ldr	w3, [x20]
	ldur	w4, [x29, #-20]
	ldp	w6, w5, [sp, #20]
	mov	w0, #2
	bl	_player_intersects_block
	cbnz	w0, LBB0_4
; %bb.3:
	ldur	w0, [x29, #-20]
	ldp	w2, w1, [sp, #20]
Lloh2:
	adrp	x20, _items@GOTPAGE
Lloh3:
	ldr	x20, [x20, _items@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x9, [x9]
	ldr	w3, [x8, x9, lsl #2]
	bl	_set_block
	ldur	w0, [x29, #-20]
	ldp	w2, w1, [sp, #20]
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x9, [x9]
	ldr	w3, [x8, x9, lsl #2]
	bl	_record_block
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_g,8,3                          ; @g
	.comm	_items,8,3                      ; @items
.subsections_via_symbols
