	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiimod_pro_remove
_wiimod_pro_remove:                     ## @wiimod_pro_remove
	.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	24(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	callq	_input_unregister_device
	movq	$0, 24(%rbx)
	leaq	16(%rbx), %rdi
	callq	_cancel_work_sync
	movq	8(%rbx), %rdi
	movq	_dev_attr_pro_calib@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wiiproto_req_rumble
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_pro_calib,4,2         ## @dev_attr_pro_calib
	.no_dead_strip	_wiimod_pro_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiimod_pro_remove
_wiimod_pro_remove:                     ; @wiimod_pro_remove
	.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
	ldr	x0, [x1, #24]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x1
	bl	_input_unregister_device
	str	xzr, [x19, #24]
	add	x0, x19, #16
	bl	_cancel_work_sync
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, _dev_attr_pro_calib@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_pro_calib@GOTPAGEOFF]
	bl	_device_remove_file
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #0
	bl	_wiiproto_req_rumble
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_pro_calib,4,2         ; @dev_attr_pro_calib
	.no_dead_strip	_wiimod_pro_remove
.subsections_via_symbols
