	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_func_button                 ## -- Begin function SP_func_button
	.p2align	4, 0x90
_SP_func_button:                        ## @SP_func_button
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_G_SoundIndex
	movl	%eax, 64(%rbx)
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movl	$40, (%rbx)
LBB0_2:
	movl	4(%rbx), %eax
	movl	40(%rbx), %esi
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	testl	%eax, %eax
	movl	$1000, %eax                     ## imm = 0x3E8
	cmovnel	%ecx, %eax
	movl	%eax, 4(%rbx)
	movl	56(%rbx), %edi
	callq	_VectorCopy
	movl	60(%rbx), %esi
	movq	%rbx, %rdi
	callq	_trap_SetBrushModel
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-12(%rbp), %rdx
	callq	_G_SpawnFloat
	movl	52(%rbx), %edi
	movq	32(%rbx), %rsi
	callq	_G_SetMovedir
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	callq	_fabs
	ud2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sound/movers/switches/butn2.wav"

L_.str.1:                               ## @.str.1
	.asciz	"lip"

L_.str.2:                               ## @.str.2
	.asciz	"4"

	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_Touch_Button,4,2               ## @Touch_Button
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_func_button                 ; -- Begin function SP_func_button
	.p2align	2
_SP_func_button:                        ; @SP_func_button
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_G_SoundIndex
	str	w0, [x19, #64]
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	w8, #40
	str	w8, [x19]
LBB0_2:
	ldr	w8, [x19, #4]
	mov	w9, #1000
	mul	w10, w8, w9
	cmp	w8, #0
	csel	w8, w9, w10, eq
	str	w8, [x19, #4]
	ldr	w0, [x19, #56]
	ldr	w1, [x19, #40]
	bl	_VectorCopy
	ldr	w1, [x19, #60]
	mov	x0, x19
	bl	_trap_SetBrushModel
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	bl	_G_SpawnFloat
	ldr	w0, [x19, #52]
	ldr	x1, [x19, #32]
	bl	_G_SetMovedir
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_fabs
	brk	#0x1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sound/movers/switches/butn2.wav"

l_.str.1:                               ; @.str.1
	.asciz	"lip"

l_.str.2:                               ; @.str.2
	.asciz	"4"

	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_Touch_Button,4,2               ; @Touch_Button
.subsections_via_symbols
