	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_v4l2_release
_uvc_v4l2_release:                      ## @uvc_v4l2_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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %r15
	movq	_UVC_TRACE_CALLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_uvc_trace
	movq	%rbx, %rdi
	callq	_uvc_has_privileges
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_uvc_video_enable
	leaq	8(%r15), %rdi
	callq	_uvc_free_buffers
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_uvc_printk
LBB0_3:
	movq	%rbx, %rdi
	callq	_uvc_dismiss_privileges
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r14)
	movq	(%r15), %rdi
	addq	$4, %rdi
	callq	_atomic_dec_return
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	callq	_uvc_status_stop
LBB0_5:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_usb_autopm_put_interface
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_TRACE_CALLS,4,2            ## @UVC_TRACE_CALLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uvc_v4l2_release\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.1:                               ## @.str.1
	.asciz	"uvc_v4l2_release: Unable to free buffers.\n"

	.no_dead_strip	_uvc_v4l2_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_v4l2_release
_uvc_v4l2_release:                      ; @uvc_v4l2_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	x20, x0
	ldr	x21, [x0]
	ldr	x19, [x21]
Lloh0:
	adrp	x8, _UVC_TRACE_CALLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UVC_TRACE_CALLS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_uvc_trace
	mov	x0, x21
	bl	_uvc_has_privileges
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_uvc_video_enable
	add	x0, x19, #8
	bl	_uvc_free_buffers
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_uvc_printk
LBB0_3:
	mov	x0, x21
	bl	_uvc_dismiss_privileges
	mov	x0, x21
	bl	_kfree
	str	xzr, [x20]
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_atomic_dec_return
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	bl	_uvc_status_stop
LBB0_5:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_usb_autopm_put_interface
	mov	w0, #0
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_TRACE_CALLS,4,2            ; @UVC_TRACE_CALLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uvc_v4l2_release\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.1:                               ; @.str.1
	.asciz	"uvc_v4l2_release: Unable to free buffers.\n"

	.no_dead_strip	_uvc_v4l2_release
.subsections_via_symbols
