	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidraw_disconnect              ## -- Begin function hidraw_disconnect
	.p2align	4, 0x90
_hidraw_disconnect:                     ## @hidraw_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, %r14
	movq	8(%rdi), %rbx
	movq	_minors_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	$0, 24(%rbx)
	movq	_hidraw_class@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_hidraw_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_MKDEV
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_device_destroy
	movq	_hidraw_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_3:
	movq	_minors_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_minors_lock,4,2                ## @minors_lock
	.comm	_hidraw_class,4,2               ## @hidraw_class
	.comm	_hidraw_major,4,2               ## @hidraw_major
	.comm	_hidraw_table,8,3               ## @hidraw_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidraw_disconnect              ; -- Begin function hidraw_disconnect
	.p2align	2
_hidraw_disconnect:                     ; @hidraw_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
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x0, _minors_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _minors_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _hidraw_class@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hidraw_class@GOTPAGEOFF]
	str	xzr, [x19, #24]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	adrp	x8, _hidraw_major@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hidraw_major@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x21
	bl	_device_destroy
Lloh8:
	adrp	x8, _hidraw_table@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hidraw_table@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	add	x0, x19, #8
	bl	_wake_up_interruptible
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_kfree
LBB0_3:
Lloh11:
	adrp	x0, _minors_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _minors_lock@GOTPAGEOFF]
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_minors_lock,4,2                ; @minors_lock
	.comm	_hidraw_class,4,2               ; @hidraw_class
	.comm	_hidraw_major,4,2               ; @hidraw_major
	.comm	_hidraw_table,8,3               ; @hidraw_table
.subsections_via_symbols
