	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si470x_fops_release
_si470x_fops_release:                   ## @si470x_fops_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_video_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%r15d, %r15d
	decq	(%rbx)
	jne	LBB0_9
## %bb.3:
	cmpq	$0, 64(%rbx)
	je	LBB0_6
## %bb.4:
	movq	$0, 64(%rbx)
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_usb_kill_urb
LBB0_6:
	cmpq	$0, 48(%rbx)
	je	LBB0_8
## %bb.7:
	movl	40(%rbx), %edi
	callq	_video_unregister_device
	movq	32(%rbx), %rdi
	callq	_kfree
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_wake_up_interruptible
	movq	%rbx, %rdi
	callq	_si470x_stop
	movl	%eax, %r15d
	movl	12(%rbx), %edi
	callq	_usb_autopm_put_interface
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_si470x_fops_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si470x_fops_release
_si470x_fops_release:                   ; @si470x_fops_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
	bl	_video_drvdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.eq	LBB0_4
; %bb.2:
	mov	w21, #0
	b	LBB0_10
LBB0_3:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_4:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_7
; %bb.5:
	str	xzr, [x20, #64]
	ldr	x0, [x20, #56]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_usb_kill_urb
LBB0_7:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x20, #40]
	bl	_video_unregister_device
	ldr	x0, [x20, #32]
	bl	_kfree
	ldr	x0, [x20, #24]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	w21, #0
	b	LBB0_10
LBB0_9:
	add	x0, x20, #16
	bl	_wake_up_interruptible
	mov	x0, x20
	bl	_si470x_stop
	mov	x21, x0
	ldr	w0, [x20, #12]
	bl	_usb_autopm_put_interface
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_si470x_fops_release
.subsections_via_symbols
