	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dinput_create_rumble_effects
LCPI0_0:
	.long	24                              ## 0x18
	.long	5000                            ## 0x1388
	.long	250000                          ## 0x3d090
	.long	250000                          ## 0x3d090
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dinput_create_rumble_effects:          ## @dinput_create_rumble_effects
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -32(%rbp)
	movq	_DIJOFS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -48(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [24,5000,250000,250000]
	movaps	%xmm0, -64(%rbp)
	leaq	8(%rdi), %r14
	movl	$1, 8(%rdi)
	movq	_DIEB_NOTRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rdi)
	movq	$0, 80(%rdi)
	movl	$8, 12(%rdi)
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rdi)
	movq	_DIEFF_CARTESIAN@GOTPCREL(%rip), %rax
	movq	_DIEFF_OBJECTOFFSETS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 16(%rdi)
	movl	$4, 20(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rdi)
	leaq	-64(%rbp), %rax
	movq	%rax, 48(%rdi)
	leaq	-40(%rbp), %rax
	movq	%rax, 40(%rdi)
	leaq	-28(%rbp), %rax
	movq	%rax, 32(%rdi)
	leaq	-32(%rbp), %rax
	movq	%rax, 24(%rdi)
	movl	96(%rdi), %edi
	movq	(%rbx), %rcx
	movq	_GUID_ConstantForce@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_IDirectInputDevice8_CreateEffect
	movq	_DI_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_WARN
LBB0_2:
	movq	_DIJOFS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	96(%rbx), %edi
	movq	(%rbx), %rcx
	addq	$4, %rcx
	movq	_GUID_ConstantForce@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_IDirectInputDevice8_CreateEffect
	cmpq	(%r15), %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_WARN
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIJOFS_X,4,2                   ## @DIJOFS_X
	.comm	_DIEB_NOTRIGGER,4,2             ## @DIEB_NOTRIGGER
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_DIEFF_CARTESIAN,4,2            ## @DIEFF_CARTESIAN
	.comm	_DIEFF_OBJECTOFFSETS,4,2        ## @DIEFF_OBJECTOFFSETS
	.comm	_GUID_ConstantForce,8,3         ## @GUID_ConstantForce
	.comm	_DI_OK,8,3                      ## @DI_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DINPUT]: Strong rumble unavailable.\n"

	.comm	_DIJOFS_Y,4,2                   ## @DIJOFS_Y
L_.str.1:                               ## @.str.1
	.asciz	"[DINPUT]: Weak rumble unavailable.\n"

	.no_dead_strip	_dinput_create_rumble_effects
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dinput_create_rumble_effects
lCPI0_0:
	.long	24                              ; 0x18
	.long	5000                            ; 0x1388
lCPI0_1:
	.long	1                               ; 0x1
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dinput_create_rumble_effects:          ; @dinput_create_rumble_effects
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _DIJOFS_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIJOFS_X@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	mov	x8, #844437815230467
	movk	x8, #53392
	movk	x8, #53392, lsl #32
Lloh5:
	adrp	x9, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	mov	x20, x0
	str	d0, [x20, #8]!
Lloh7:
	adrp	x9, _DIEB_NOTRIGGER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DIEB_NOTRIGGER@GOTPAGEOFF]
	stp	x8, xzr, [sp, #32]
Lloh9:
	ldr	w8, [x9]
	str	w8, [x0, #88]
	str	xzr, [x0, #80]
Lloh10:
	adrp	x8, _INFINITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #72]
Lloh13:
	adrp	x8, _DIEFF_CARTESIAN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DIEFF_CARTESIAN@GOTPAGEOFF]
Lloh15:
	adrp	x9, _DIEFF_OBJECTOFFSETS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DIEFF_OBJECTOFFSETS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w9, #4
	stp	w8, w9, [x0, #16]
	stp	xzr, xzr, [x0, #56]
	add	x8, sp, #24
	add	x9, sp, #16
	stp	x9, x8, [x0, #40]
	add	x8, sp, #8
	add	x9, sp, #12
	stp	x9, x8, [x0, #24]
	ldr	w0, [x0, #96]
	ldr	x3, [x19]
Lloh19:
	adrp	x1, _GUID_ConstantForce@GOTPAGE
Lloh20:
	ldr	x1, [x1, _GUID_ConstantForce@GOTPAGEOFF]
	mov	x2, x20
	mov	x4, #0
	bl	_IDirectInputDevice8_CreateEffect
Lloh21:
	adrp	x21, _DI_OK@GOTPAGE
Lloh22:
	ldr	x21, [x21, _DI_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_WARN
LBB0_2:
Lloh25:
	adrp	x8, _DIJOFS_Y@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DIJOFS_Y@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x19, #96]
	ldr	x8, [x19]
	add	x3, x8, #4
Lloh28:
	adrp	x1, _GUID_ConstantForce@GOTPAGE
Lloh29:
	ldr	x1, [x1, _GUID_ConstantForce@GOTPAGEOFF]
	mov	x2, x20
	mov	x4, #0
	bl	_IDirectInputDevice8_CreateEffect
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_WARN
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DIJOFS_X,4,2                   ; @DIJOFS_X
	.comm	_DIEB_NOTRIGGER,4,2             ; @DIEB_NOTRIGGER
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_DIEFF_CARTESIAN,4,2            ; @DIEFF_CARTESIAN
	.comm	_DIEFF_OBJECTOFFSETS,4,2        ; @DIEFF_OBJECTOFFSETS
	.comm	_GUID_ConstantForce,8,3         ; @GUID_ConstantForce
	.comm	_DI_OK,8,3                      ; @DI_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DINPUT]: Strong rumble unavailable.\n"

	.comm	_DIJOFS_Y,4,2                   ; @DIJOFS_Y
l_.str.1:                               ; @.str.1
	.asciz	"[DINPUT]: Weak rumble unavailable.\n"

	.no_dead_strip	_dinput_create_rumble_effects
.subsections_via_symbols
