	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kpad_deregister
_kpad_deregister:                       ## @kpad_deregister
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_channel_slot_map@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%edi, %r15d
	movl	(%rax,%r15,4), %ebx
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	movq	_kpad_driver@GOTPCREL(%rip), %rax
	movl	%ebx, %edi
	callq	*(%rax)
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_input_autoconfigure_disconnect
	movq	_WIIMOTE_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_wiimotes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	_hid_instance@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%rax,%rbx,4)
	movq	(%r14), %rax
	movl	$-1, (%rax,%r15,4)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_channel_slot_map,8,3           ## @channel_slot_map
	.comm	_kpad_driver,8,3                ## @kpad_driver
	.comm	_WIIMOTE_TYPE_NONE,4,2          ## @WIIMOTE_TYPE_NONE
	.comm	_wiimotes,8,3                   ## @wiimotes
	.comm	_hid_instance,8,3               ## @hid_instance
	.no_dead_strip	_kpad_deregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kpad_deregister
_kpad_deregister:                       ; @kpad_deregister
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _channel_slot_map@GOTPAGE
Lloh1:
	ldr	x20, [x20, _channel_slot_map@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w19, [x8, w0, uxtw #2]
	tbnz	w19, #31, LBB0_2
; %bb.1:
	mov	w21, w0
Lloh2:
	adrp	x8, _kpad_driver@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kpad_driver@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x1, x0
	mov	x0, x19
	bl	_input_autoconfigure_disconnect
Lloh5:
	adrp	x8, _WIIMOTE_TYPE_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WIIMOTE_TYPE_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _wiimotes@GOTPAGE
Lloh9:
	ldr	x9, [x9, _wiimotes@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	lsl	x10, x21, #2
	str	w8, [x9, x10]
Lloh11:
	adrp	x8, _hid_instance@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hid_instance@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	wzr, [x8, x19, lsl #2]
	ldr	x8, [x20]
	mov	w9, #-1
	str	w9, [x8, x10]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_channel_slot_map,8,3           ; @channel_slot_map
	.comm	_kpad_driver,8,3                ; @kpad_driver
	.comm	_WIIMOTE_TYPE_NONE,4,2          ; @WIIMOTE_TYPE_NONE
	.comm	_wiimotes,8,3                   ; @wiimotes
	.comm	_hid_instance,8,3               ; @hid_instance
	.no_dead_strip	_kpad_deregister
.subsections_via_symbols
