	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isst_if_cdev_unregister        ## -- Begin function isst_if_cdev_unregister
	.p2align	4, 0x90
_isst_if_cdev_unregister:               ## @isst_if_cdev_unregister
	.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
	movl	%edi, %ebx
	movq	_punit_misc_dev_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_misc_usage_count@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	decl	%eax
	movl	%eax, (%r14)
	movq	_punit_callbacks@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movq	$0, (%rcx,%rdx,8)
	movq	_ISST_IF_DEV_MBOX@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_isst_delete_hash
	movl	(%r14), %eax
LBB0_2:
	movq	_misc_device_ret@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_isst_if_char_driver@GOTPCREL(%rip), %rdi
	callq	_misc_deregister
	xorl	%eax, %eax
	callq	_isst_if_cpu_info_exit
LBB0_4:
	movq	_punit_misc_dev_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_punit_misc_dev_lock,4,2        ## @punit_misc_dev_lock
	.comm	_misc_usage_count,4,2           ## @misc_usage_count
	.comm	_punit_callbacks,8,3            ## @punit_callbacks
	.comm	_ISST_IF_DEV_MBOX,4,2           ## @ISST_IF_DEV_MBOX
	.comm	_misc_device_ret,4,2            ## @misc_device_ret
	.comm	_isst_if_char_driver,4,2        ## @isst_if_char_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isst_if_cdev_unregister        ; -- Begin function isst_if_cdev_unregister
	.p2align	2
_isst_if_cdev_unregister:               ; @isst_if_cdev_unregister
	.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
Lloh0:
	adrp	x0, _punit_misc_dev_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _punit_misc_dev_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x20, _misc_usage_count@GOTPAGE
Lloh3:
	ldr	x20, [x20, _misc_usage_count@GOTPAGEOFF]
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
Lloh4:
	adrp	x9, _punit_callbacks@GOTPAGE
Lloh5:
	ldr	x9, [x9, _punit_callbacks@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	str	xzr, [x9, w19, sxtw #3]
Lloh7:
	adrp	x9, _ISST_IF_DEV_MBOX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ISST_IF_DEV_MBOX@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ne	LBB0_2
; %bb.1:
	bl	_isst_delete_hash
	ldr	w8, [x20]
LBB0_2:
Lloh10:
	adrp	x9, _misc_device_ret@GOTPAGE
Lloh11:
	ldr	x9, [x9, _misc_device_ret@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cbnz	w8, LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, _isst_if_char_driver@GOTPAGE
Lloh14:
	ldr	x0, [x0, _isst_if_char_driver@GOTPAGEOFF]
	bl	_misc_deregister
	bl	_isst_if_cpu_info_exit
LBB0_4:
Lloh15:
	adrp	x0, _punit_misc_dev_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _punit_misc_dev_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_punit_misc_dev_lock,4,2        ; @punit_misc_dev_lock
	.comm	_misc_usage_count,4,2           ; @misc_usage_count
	.comm	_punit_callbacks,8,3            ; @punit_callbacks
	.comm	_ISST_IF_DEV_MBOX,4,2           ; @ISST_IF_DEV_MBOX
	.comm	_misc_device_ret,4,2            ; @misc_device_ret
	.comm	_isst_if_char_driver,4,2        ; @isst_if_char_driver
.subsections_via_symbols
