	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_target_laser_start             ## -- Begin function target_laser_start
	.p2align	4, 0x90
_target_laser_start:                    ## @target_laser_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ET_BEAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdi)
	cmpq	$0, 40(%rdi)
	je	LBB0_4
## %bb.1:
	movq	_targetname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FOFS
	movq	40(%rbx), %rdx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_G_Find
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	24(%rbx), %edi
	movl	48(%rbx), %r15d
	callq	_vtos
	movq	40(%rbx), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_G_Printf
LBB0_3:
	movq	%r14, 32(%rbx)
	jmp	LBB0_5
LBB0_4:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_G_SetMovedir
LBB0_5:
	movq	_target_laser_use@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_target_laser_think@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.7:
	testb	$1, 4(%rbx)
	jne	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_target_laser_off               ## TAILCALL
LBB0_6:
	movl	$1, (%rbx)
	testb	$1, 4(%rbx)
	je	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_target_laser_on                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ET_BEAM,4,2                    ## @ET_BEAM
	.comm	_targetname,4,2                 ## @targetname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s at %s: %s is a bad target\n"

	.comm	_target_laser_use,4,2           ## @target_laser_use
	.comm	_target_laser_think,4,2         ## @target_laser_think
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_target_laser_start             ; -- Begin function target_laser_start
	.p2align	2
_target_laser_start:                    ; @target_laser_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _ET_BEAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ET_BEAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #28]
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _targetname@GOTPAGE
Lloh4:
	ldr	x8, [x8, _targetname@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FOFS
	mov	x1, x0
	ldr	x2, [x19, #40]
	mov	x0, #0
	bl	_G_Find
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w21, [x19, #48]
	ldr	w0, [x19, #24]
	bl	_vtos
	mov	x2, x0
	ldr	x3, [x19, #40]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_G_Printf
LBB0_3:
	str	x20, [x19, #32]
	b	LBB0_5
LBB0_4:
	ldp	w1, w0, [x19, #16]
	bl	_G_SetMovedir
LBB0_5:
Lloh8:
	adrp	x8, _target_laser_use@GOTPAGE
Lloh9:
	ldr	x8, [x8, _target_laser_use@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _target_laser_think@GOTPAGE
Lloh12:
	ldr	x9, [x9, _target_laser_think@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.6:
	ldrb	w8, [x19, #4]
	tbnz	w8, #0, LBB0_9
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_target_laser_off
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
	ldrb	w8, [x19, #4]
	tbz	w8, #0, LBB0_7
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_target_laser_on
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ET_BEAM,4,2                    ; @ET_BEAM
	.comm	_targetname,4,2                 ; @targetname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s at %s: %s is a bad target\n"

	.comm	_target_laser_use,4,2           ; @target_laser_use
	.comm	_target_laser_think,4,2         ; @target_laser_think
.subsections_via_symbols
