	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidraw_release
_hidraw_release:                        ## @hidraw_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_iminor
	movl	%eax, %r14d
	movq	(%rbx), %r15
	movq	_minors_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_hidraw_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	%r14d, %ebx
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_1
## %bb.2:
	leaq	16(%r15), %rdi
	callq	_list_del
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rbx
	decl	8(%rbx)
	jne	LBB0_8
## %bb.3:
	movq	(%r15), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.4:
	movq	(%rbx), %rdi
	movq	(%rdi), %rcx
	movq	8(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	_PM_HINT_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*%rdx
	movq	(%rbx), %rdi
	movq	(%rdi), %rcx
LBB0_6:
	callq	*(%rcx)
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	callq	_kfree
LBB0_8:
	movq	%r15, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
LBB0_9:
	movq	_minors_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_minors_lock,4,2                ## @minors_lock
	.comm	_hidraw_table,8,3               ## @hidraw_table
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PM_HINT_NORMAL,4,2             ## @PM_HINT_NORMAL
	.no_dead_strip	_hidraw_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidraw_release
_hidraw_release:                        ; @hidraw_release
	.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	x19, x1
	bl	_iminor
	mov	x20, x0
	ldr	x19, [x19]
Lloh0:
	adrp	x0, _minors_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _minors_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x21, _hidraw_table@GOTPAGE
Lloh3:
	ldr	x21, [x21, _hidraw_table@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, w20, uxtw #3]
	cbz	x8, LBB0_6
; %bb.1:
	mov	w20, w20
	add	x0, x19, #16
	bl	_list_del
	ldr	x8, [x21]
	ldr	x20, [x8, x20, lsl #3]
	ldr	w8, [x20, #8]
	subs	w8, w8, #1
	str	w8, [x20, #8]
	b.ne	LBB0_8
; %bb.2:
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _PM_HINT_NORMAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PM_HINT_NORMAL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	blr	x9
	ldr	x0, [x20]
	ldr	x8, [x0]
LBB0_5:
	ldr	x8, [x8]
	blr	x8
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_9
LBB0_7:
	bl	_kfree
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	w19, #0
LBB0_9:
Lloh10:
	adrp	x0, _minors_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _minors_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_minors_lock,4,2                ; @minors_lock
	.comm	_hidraw_table,8,3               ; @hidraw_table
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PM_HINT_NORMAL,4,2             ; @PM_HINT_NORMAL
	.no_dead_strip	_hidraw_release
.subsections_via_symbols
