	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drop_ref
_drop_ref:                              ## @drop_ref
	.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, %rbx
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movq	$0, 16(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	callq	_hid_hw_close
	leaq	32(%rbx), %rdi
	callq	_wake_up_interruptible
LBB0_3:
	movq	_hidraw_class@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_hidraw_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_MKDEV
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_device_destroy
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	24(%rbx), %rax
	decq	%rax
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_8
LBB0_6:
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.7:
	movl	8(%rbx), %edi
	callq	_hid_hw_close
	movl	8(%rbx), %edi
	movq	_PM_HINT_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hid_hw_power                   ## TAILCALL
LBB0_9:
	movq	_hidraw_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hidraw_class,4,2               ## @hidraw_class
	.comm	_hidraw_major,4,2               ## @hidraw_major
	.comm	_hidraw_table,8,3               ## @hidraw_table
	.comm	_PM_HINT_NORMAL,4,2             ## @PM_HINT_NORMAL
	.no_dead_strip	_drop_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drop_ref
_drop_ref:                              ; @drop_ref
	.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
	mov	x19, x0
	cbz	w1, LBB0_5
; %bb.1:
	str	xzr, [x19, #16]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_hid_hw_close
	add	x0, x19, #32
	bl	_wake_up_interruptible
LBB0_3:
Lloh0:
	adrp	x8, _hidraw_class@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hidraw_class@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _hidraw_major@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hidraw_major@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x20
	bl	_device_destroy
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19, #24]
	sub	x8, x8, #1
	str	x8, [x19, #24]
	cbnz	x8, LBB0_4
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19, #8]
	bl	_hid_hw_close
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _PM_HINT_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PM_HINT_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hid_hw_power
LBB0_8:
Lloh9:
	adrp	x8, _hidraw_table@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hidraw_table@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_hidraw_class,4,2               ; @hidraw_class
	.comm	_hidraw_major,4,2               ; @hidraw_major
	.comm	_hidraw_table,8,3               ; @hidraw_table
	.comm	_PM_HINT_NORMAL,4,2             ; @PM_HINT_NORMAL
	.no_dead_strip	_drop_ref
.subsections_via_symbols
