	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hiddev_release
_hiddev_release:                        ## @hiddev_release
	.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	(%rsi), %rbx
	movq	(%rbx), %rdi
	addq	$28, %rdi
	callq	_spin_lock_irqsave
	leaq	32(%rbx), %rdi
	callq	_list_del
	movq	(%rbx), %rdi
	addq	$28, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%rbx), %rdi
	decl	24(%rdi)
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.2:
	movl	8(%rdi), %edi
	callq	_usbhid_close
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_usbhid_put_power
	jmp	LBB0_4
LBB0_3:
	callq	_kfree
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hiddev_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hiddev_release
_hiddev_release:                        ; @hiddev_release
	.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	x19, [x1]
	ldr	x8, [x19]
	add	x0, x8, #28
	bl	_spin_lock_irqsave
	add	x0, x19, #32
	bl	_list_del
	ldr	x8, [x19]
	add	x0, x8, #28
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19]
	ldr	w8, [x0, #24]
	subs	w8, w8, #1
	str	w8, [x0, #24]
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x0, #8]
	bl	_usbhid_close
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_usbhid_put_power
	b	LBB0_4
LBB0_3:
	bl	_kfree
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hiddev_release
.subsections_via_symbols
