	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiproto_req_rumble            ## -- Begin function wiiproto_req_rumble
	.p2align	4, 0x90
_wiiproto_req_rumble:                   ## @wiiproto_req_rumble
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testl	%esi, %esi
	setne	%dl
	movl	(%rdi), %ecx
	movq	_WIIPROTO_FLAG_RUMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	sete	%bl
	xorb	%dl, %bl
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movl	%eax, %edx
	notl	%edx
	andl	%ecx, %edx
	orl	%ecx, %eax
	testl	%esi, %esi
	cmovel	%edx, %eax
	movl	%eax, (%rdi)
	movq	_WIIPROTO_REQ_RUMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-28(%rbp), %rsi
	movl	$0, -28(%rbp)
	callq	_wiiproto_keep_rumble
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_wiimote_queue
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIPROTO_FLAG_RUMBLE,4,2       ## @WIIPROTO_FLAG_RUMBLE
	.comm	_WIIPROTO_REQ_RUMBLE,4,2        ## @WIIPROTO_REQ_RUMBLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiproto_req_rumble            ; -- Begin function wiiproto_req_rumble
	.p2align	2
_wiiproto_req_rumble:                   ; @wiiproto_req_rumble
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cmp	w1, #0
	cset	w10, ne
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _WIIPROTO_FLAG_RUMBLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WIIPROTO_FLAG_RUMBLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w11, eq
	eor	w10, w10, w11
	tbnz	w10, #0, LBB0_2
; %bb.1:
	mov	x19, x0
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	w1, #0
	csel	w8, w8, w10, ne
Lloh6:
	adrp	x9, _WIIPROTO_REQ_RUMBLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WIIPROTO_REQ_RUMBLE@GOTPAGEOFF]
	str	w8, [x0]
Lloh8:
	ldr	w8, [x9]
	mov	x9, sp
	add	x1, x9, #4
	stp	w8, wzr, [sp]
	bl	_wiiproto_keep_rumble
	mov	x1, sp
	mov	x0, x19
	mov	w2, #8
	bl	_wiimote_queue
LBB0_2:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIPROTO_FLAG_RUMBLE,4,2       ; @WIIPROTO_FLAG_RUMBLE
	.comm	_WIIPROTO_REQ_RUMBLE,4,2        ; @WIIPROTO_REQ_RUMBLE
.subsections_via_symbols
