	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et61x251_release
_et61x251_release:                      ## @et61x251_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_et61x251_dev_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_down_write
	movq	%rbx, %rdi
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_et61x251_stop_transfer
	movq	%rbx, %rdi
	callq	_et61x251_release_buffers
	decl	20(%rbx)
	leaq	16(%rbx), %rdi
	movl	$1, %esi
	callq	_wake_up_interruptible_nr
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_DBG
	movq	_et61x251_release_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
	movq	%r14, %rdi
	callq	_up_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_et61x251_dev_lock,4,2          ## @et61x251_dev_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Video device /dev/video%d closed"

	.comm	_et61x251_release_resources,4,2 ## @et61x251_release_resources
	.no_dead_strip	_et61x251_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et61x251_release
_et61x251_release:                      ; @et61x251_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
	mov	x19, x0
Lloh0:
	adrp	x20, _et61x251_dev_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _et61x251_dev_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_down_write
	mov	x0, x19
	bl	_video_drvdata
	mov	x19, x0
	bl	_et61x251_stop_transfer
	mov	x0, x19
	bl	_et61x251_release_buffers
	ldr	w8, [x19, #20]
	sub	w8, w8, #1
	str	w8, [x19, #20]
	add	x0, x19, #16
	mov	w1, #1
	bl	_wake_up_interruptible_nr
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_DBG
Lloh4:
	adrp	x8, _et61x251_release_resources@GOTPAGE
Lloh5:
	ldr	x8, [x8, _et61x251_release_resources@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kref_put
	mov	x0, x20
	bl	_up_write
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_et61x251_dev_lock,4,2          ; @et61x251_dev_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Video device /dev/video%d closed"

	.comm	_et61x251_release_resources,4,2 ; @et61x251_release_resources
	.no_dead_strip	_et61x251_release
.subsections_via_symbols
