	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hiddev_disconnect              ## -- Begin function hiddev_disconnect
	.p2align	4, 0x90
_hiddev_disconnect:                     ## @hiddev_disconnect
	.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	(%rdi), %r15
	movq	8(%rdi), %rbx
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	$0, 32(%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_hiddev_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_HIDDEV_MINOR_BASE@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	movq	$0, (%rax,%rcx,8)
	movl	(%r15), %edi
	movq	_hiddev_class@GOTPCREL(%rip), %rsi
	callq	_usb_deregister_dev
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_usbhid_close
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hiddev_table,8,3               ## @hiddev_table
	.comm	_HIDDEV_MINOR_BASE,8,3          ## @HIDDEV_MINOR_BASE
	.comm	_hiddev_class,4,2               ## @hiddev_class
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hiddev_disconnect              ; -- Begin function hiddev_disconnect
	.p2align	2
_hiddev_disconnect:                     ; @hiddev_disconnect
	.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
	ldp	x21, x19, [x0]
	add	x20, x19, #24
	mov	x0, x20
	bl	_mutex_lock
	str	xzr, [x19, #32]
	mov	x0, x20
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _hiddev_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hiddev_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _HIDDEV_MINOR_BASE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HIDDEV_MINOR_BASE@GOTPAGEOFF]
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
	sub	x9, x9, x10
	str	xzr, [x8, x9, lsl #3]
	ldr	w0, [x21]
Lloh6:
	adrp	x1, _hiddev_class@GOTPAGE
Lloh7:
	ldr	x1, [x1, _hiddev_class@GOTPAGEOFF]
	bl	_usb_deregister_dev
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_usbhid_close
	mov	x0, x19
	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
	b	_wake_up_interruptible
LBB0_2:
	mov	x0, x19
	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
	b	_kfree
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hiddev_table,8,3               ; @hiddev_table
	.comm	_HIDDEV_MINOR_BASE,8,3          ; @HIDDEV_MINOR_BASE
	.comm	_hiddev_class,4,2               ; @hiddev_class
.subsections_via_symbols
