	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_v4l2_close
_em28xx_v4l2_close:                     ## @em28xx_v4l2_close
	.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	%rdi, %r15
	callq	_video_drvdata
	movq	%rax, %r14
	movq	8(%rax), %rdi
	movq	32(%rax), %rbx
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_em28xx_videodbg
	movq	%r15, %rdi
	callq	_vb2_fop_release
	movq	%r14, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpl	$1, (%rbx)
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 24(%r14)
	jne	LBB0_4
## %bb.2:
	leaq	8(%rbx), %rdi
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_standby@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_v4l2_device_call_all
	movq	_EM28XX_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_em28xx_set_mode
	movq	$0, 16(%r14)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_em28xx_videodbg
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_usb_set_interface
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_4:
	decl	(%rbx)
	addq	$4, %rbx
	movq	_em28xx_free_v4l2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_em28xx_free_device@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kref_put
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"users=%d\n"

	.comm	_tuner,4,2                      ## @tuner
	.comm	_standby,4,2                    ## @standby
	.comm	_EM28XX_SUSPEND,4,2             ## @EM28XX_SUSPEND
L_.str.1:                               ## @.str.1
	.asciz	"setting alternate 0\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot change alternate number to 0 (error=%i)\n"

	.comm	_em28xx_free_v4l2,4,2           ## @em28xx_free_v4l2
	.comm	_em28xx_free_device,4,2         ## @em28xx_free_device
	.no_dead_strip	_em28xx_v4l2_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_v4l2_close
_em28xx_v4l2_close:                     ; @em28xx_v4l2_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	bl	_video_drvdata
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	x0, [x0, #8]
	bl	_interface_to_usbdev
	mov	x22, x0
	ldr	w8, [x20]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_em28xx_videodbg
	mov	x0, x21
	bl	_vb2_fop_release
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_4
; %bb.2:
	add	x0, x20, #8
Lloh2:
	adrp	x8, _tuner@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _standby@GOTPAGE
Lloh6:
	ldr	x8, [x8, _standby@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	w1, #0
	bl	_v4l2_device_call_all
Lloh8:
	adrp	x8, _EM28XX_SUSPEND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EM28XX_SUSPEND@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_em28xx_set_mode
	str	xzr, [x19, #16]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_em28xx_videodbg
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_usb_set_interface
	tbz	w0, #31, LBB0_4
; %bb.3:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_4:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20], #4
Lloh15:
	adrp	x8, _em28xx_free_v4l2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _em28xx_free_v4l2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kref_put
	mov	x0, x21
	bl	_mutex_unlock
Lloh18:
	adrp	x8, _em28xx_free_device@GOTPAGE
Lloh19:
	ldr	x8, [x8, _em28xx_free_device@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kref_put
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"users=%d\n"

	.comm	_tuner,4,2                      ; @tuner
	.comm	_standby,4,2                    ; @standby
	.comm	_EM28XX_SUSPEND,4,2             ; @EM28XX_SUSPEND
l_.str.1:                               ; @.str.1
	.asciz	"setting alternate 0\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot change alternate number to 0 (error=%i)\n"

	.comm	_em28xx_free_v4l2,4,2           ; @em28xx_free_v4l2
	.comm	_em28xx_free_device,4,2         ; @em28xx_free_device
	.no_dead_strip	_em28xx_v4l2_close
.subsections_via_symbols
