	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_hotplug
_handle_hotplug:                        ## @handle_hotplug
	.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	_pad_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	movq	%rsi, (%rax,%rcx,8)
	movq	_WPAD_EXP_NOCONTROLLER@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	%edi, %ebx
	callq	_gx_joypad_name
	movq	_gx_joypad@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_input_autoconfigure_connect    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pad_type,8,3                   ## @pad_type
	.comm	_WPAD_EXP_NOCONTROLLER,8,3      ## @WPAD_EXP_NOCONTROLLER
	.comm	_gx_joypad,4,2                  ## @gx_joypad
	.no_dead_strip	_handle_hotplug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_hotplug
_handle_hotplug:                        ; @handle_hotplug
	.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
Lloh0:
	adrp	x8, _pad_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pad_type@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x1, [x8, w0, uxtw #3]
Lloh3:
	adrp	x8, _WPAD_EXP_NOCONTROLLER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPAD_EXP_NOCONTROLLER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	bl	_gx_joypad_name
Lloh6:
	adrp	x8, _gx_joypad@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gx_joypad@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, x19
	mov	w4, #0
	mov	w5, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_autoconfigure_connect
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pad_type,8,3                   ; @pad_type
	.comm	_WPAD_EXP_NOCONTROLLER,8,3      ; @WPAD_EXP_NOCONTROLLER
	.comm	_gx_joypad,4,2                  ; @gx_joypad
	.no_dead_strip	_handle_hotplug
.subsections_via_symbols
