	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rwebpad_gamepad_cb
_rwebpad_gamepad_cb:                    ## @rwebpad_gamepad_cb
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movl	8(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	movq	_EMSCRIPTEN_EVENT_GAMEPADCONNECTED@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_2
## %bb.1:
	xorl	%r8d, %r8d
	testq	%rax, %rax
	sete	%r8b
	movl	(%rbx), %ecx
	movl	4(%rbx), %edi
	movq	_rwebpad_joypad@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%r8d, %r9d
	callq	_input_autoconfigure_connect
	jmp	LBB0_4
LBB0_2:
	movq	_EMSCRIPTEN_EVENT_GAMEPADDISCONNECTED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movq	_rwebpad_joypad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_autoconfigure_disconnect
LBB0_4:
	movq	_EM_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"standard"

	.comm	_EMSCRIPTEN_EVENT_GAMEPADCONNECTED,4,2 ## @EMSCRIPTEN_EVENT_GAMEPADCONNECTED
	.comm	_rwebpad_joypad,4,2             ## @rwebpad_joypad
	.comm	_EMSCRIPTEN_EVENT_GAMEPADDISCONNECTED,4,2 ## @EMSCRIPTEN_EVENT_GAMEPADDISCONNECTED
	.comm	_EM_TRUE,4,2                    ## @EM_TRUE
	.no_dead_strip	_rwebpad_gamepad_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rwebpad_gamepad_cb
_rwebpad_gamepad_cb:                    ; @rwebpad_gamepad_cb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strncmp
Lloh2:
	adrp	x8, _EMSCRIPTEN_EVENT_GAMEPADCONNECTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMSCRIPTEN_EVENT_GAMEPADCONNECTED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	cmp	x0, #0
	cset	w4, eq
Lloh5:
	adrp	x8, _rwebpad_joypad@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rwebpad_joypad@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldp	w3, w0, [x19]
	mov	x1, #0
	mov	x5, x4
	bl	_input_autoconfigure_connect
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _EMSCRIPTEN_EVENT_GAMEPADDISCONNECTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EMSCRIPTEN_EVENT_GAMEPADDISCONNECTED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _rwebpad_joypad@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rwebpad_joypad@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_input_autoconfigure_disconnect
LBB0_4:
Lloh14:
	adrp	x8, _EM_TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EM_TRUE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"standard"

	.comm	_EMSCRIPTEN_EVENT_GAMEPADCONNECTED,4,2 ; @EMSCRIPTEN_EVENT_GAMEPADCONNECTED
	.comm	_rwebpad_joypad,4,2             ; @rwebpad_joypad
	.comm	_EMSCRIPTEN_EVENT_GAMEPADDISCONNECTED,4,2 ; @EMSCRIPTEN_EVENT_GAMEPADDISCONNECTED
	.comm	_EM_TRUE,4,2                    ; @EM_TRUE
	.no_dead_strip	_rwebpad_gamepad_cb
.subsections_via_symbols
