	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movl	(%rax), %edi
	movq	_hiddev_class@GOTPCREL(%rip), %rsi
	callq	_usb_deregister_dev
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	$0, 24(%rbx)
	movq	16(%rbx), %r14
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_hid_hw_close
	addq	$4, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	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
	ldp	x8, x19, [x0]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, _hiddev_class@GOTPAGE
Lloh1:
	ldr	x1, [x1, _hiddev_class@GOTPAGEOFF]
	bl	_usb_deregister_dev
	mov	x0, x19
	bl	_mutex_lock
	str	xzr, [x19, #24]
	ldr	x20, [x19, #16]
	mov	x0, x19
	bl	_mutex_unlock
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_hid_hw_close
	add	x0, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up_interruptible
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hiddev_class,4,2               ; @hiddev_class
.subsections_via_symbols
