	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gc_n64_play_effect
_gc_n64_play_effect:                    ## @gc_n64_play_effect
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_input_get_drvdata
	movq	%rax, %r15
	movb	(%rbx), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movq	(%r14), %rax
	movq	_FF_RUMBLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	_GC_N64_CMD_01@GOTPCREL(%rip), %rax
	cmpq	$0, 16(%r14)
	jne	LBB0_5
## %bb.2:
	cmpq	$0, 8(%r14)
	jne	LBB0_3
## %bb.4:
	movq	_GC_N64_CMD_00@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_GC_N64_CMD_01@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r14d
	callq	_local_irq_save
	movq	_GC_N64_CMD_03@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %r13d
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_gc_n64_send_command
	movq	_GC_N64_CMD_80@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_gc_n64_send_command
	movq	_GC_N64_CMD_01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_gc_n64_send_command
	movl	$32, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_gc_n64_send_command
	decl	%ebx
	jne	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_gc_n64_send_stop_bit
	movq	_GC_N64_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	movq	_GC_N64_CMD_03@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_gc_n64_send_command
	movq	_GC_N64_CMD_c0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_gc_n64_send_command
	movq	_GC_N64_CMD_1b@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_gc_n64_send_command
	movl	$32, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_gc_n64_send_command
	decl	%ebx
	jne	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_gc_n64_send_stop_bit
	callq	_local_irq_restore
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_RUMBLE,8,3                  ## @FF_RUMBLE
	.comm	_GC_N64_CMD_01,4,2              ## @GC_N64_CMD_01
	.comm	_GC_N64_CMD_00,4,2              ## @GC_N64_CMD_00
	.comm	_GC_N64_CMD_03,4,2              ## @GC_N64_CMD_03
	.comm	_GC_N64_CMD_80,4,2              ## @GC_N64_CMD_80
	.comm	_GC_N64_DELAY,4,2               ## @GC_N64_DELAY
	.comm	_GC_N64_CMD_c0,4,2              ## @GC_N64_CMD_c0
	.comm	_GC_N64_CMD_1b,4,2              ## @GC_N64_CMD_1b
	.no_dead_strip	_gc_n64_play_effect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gc_n64_play_effect
_gc_n64_play_effect:                    ; @gc_n64_play_effect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	bl	_input_get_drvdata
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FF_RUMBLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FF_RUMBLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x21]
	mov	w9, #1
	lsl	w22, w9, w8
	ldr	x9, [x20, #16]
Lloh3:
	adrp	x24, _GC_N64_CMD_01@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GC_N64_CMD_01@GOTPAGEOFF]
	mov	x8, x24
	cbnz	x9, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _GC_N64_CMD_00@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GC_N64_CMD_00@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x24, eq
LBB0_3:
	ldr	w20, [x8]
	bl	_local_irq_save
Lloh7:
	adrp	x23, _GC_N64_CMD_03@GOTPAGE
Lloh8:
	ldr	x23, [x23, _GC_N64_CMD_03@GOTPAGEOFF]
	ldr	w1, [x23]
	and	w21, w22, #0xff
	mov	x0, x19
	mov	x2, x21
	bl	_gc_n64_send_command
Lloh9:
	adrp	x25, _GC_N64_CMD_80@GOTPAGE
Lloh10:
	ldr	x25, [x25, _GC_N64_CMD_80@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x21
	bl	_gc_n64_send_command
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_gc_n64_send_command
	mov	w24, #32
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x21
	bl	_gc_n64_send_command
	subs	w24, w24, #1
	b.ne	LBB0_4
; %bb.5:
	and	w21, w22, #0xff
	mov	x0, x19
	mov	x1, x21
	bl	_gc_n64_send_stop_bit
Lloh11:
	adrp	x8, _GC_N64_DELAY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GC_N64_DELAY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_gc_n64_send_command
Lloh14:
	adrp	x8, _GC_N64_CMD_c0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GC_N64_CMD_c0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_gc_n64_send_command
Lloh17:
	adrp	x8, _GC_N64_CMD_1b@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GC_N64_CMD_1b@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_gc_n64_send_command
	mov	w23, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_gc_n64_send_command
	subs	w23, w23, #1
	b.ne	LBB0_6
; %bb.7:
	and	w1, w22, #0xff
	mov	x0, x19
	bl	_gc_n64_send_stop_bit
	bl	_local_irq_restore
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_RUMBLE,8,3                  ; @FF_RUMBLE
	.comm	_GC_N64_CMD_01,4,2              ; @GC_N64_CMD_01
	.comm	_GC_N64_CMD_00,4,2              ; @GC_N64_CMD_00
	.comm	_GC_N64_CMD_03,4,2              ; @GC_N64_CMD_03
	.comm	_GC_N64_CMD_80,4,2              ; @GC_N64_CMD_80
	.comm	_GC_N64_DELAY,4,2               ; @GC_N64_DELAY
	.comm	_GC_N64_CMD_c0,4,2              ; @GC_N64_CMD_c0
	.comm	_GC_N64_CMD_1b,4,2              ; @GC_N64_CMD_1b
	.no_dead_strip	_gc_n64_play_effect
.subsections_via_symbols
