	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et61x251_usb_disconnect
_et61x251_usb_disconnect:               ## @et61x251_usb_disconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_et61x251_dev_lock@GOTPCREL(%rip), %rdi
	callq	_down_write
	movq	%rbx, %rdi
	callq	_usb_get_intfdata
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_DBG
	cmpq	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_DBG
	movq	_DEV_MISCONFIGURED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_et61x251_stop_transfer
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	leaq	16(%rbx), %rdi
	callq	_wake_up_interruptible
	leaq	12(%rbx), %rdi
	callq	_wake_up
	jmp	LBB0_3
LBB0_2:
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_3:
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_wake_up_interruptible_all
	movq	_et61x251_release_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
	movq	_et61x251_dev_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_up_write                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_et61x251_dev_lock,4,2          ## @et61x251_dev_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disconnecting %s..."

L_.str.1:                               ## @.str.1
	.asciz	"Device /dev/video%d is open! Deregistration and memory deallocation are deferred."

	.comm	_DEV_MISCONFIGURED,4,2          ## @DEV_MISCONFIGURED
	.comm	_DEV_DISCONNECTED,4,2           ## @DEV_DISCONNECTED
	.comm	_et61x251_release_resources,4,2 ## @et61x251_release_resources
	.no_dead_strip	_et61x251_usb_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et61x251_usb_disconnect
_et61x251_usb_disconnect:               ; @et61x251_usb_disconnect
	.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, _et61x251_dev_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _et61x251_dev_lock@GOTPAGEOFF]
	bl	_down_write
	mov	x0, x19
	bl	_usb_get_intfdata
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w2, [x8, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_DBG
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_DBG
Lloh6:
	adrp	x8, _DEV_MISCONFIGURED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEV_MISCONFIGURED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_et61x251_stop_transfer
Lloh9:
	adrp	x8, _DEV_DISCONNECTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEV_DISCONNECTED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	add	x0, x19, #16
	bl	_wake_up_interruptible
	add	x0, x19, #12
	bl	_wake_up
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _DEV_DISCONNECTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEV_DISCONNECTED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_3:
	add	x0, x19, #4
	bl	_wake_up_interruptible_all
Lloh15:
	adrp	x8, _et61x251_release_resources@GOTPAGE
Lloh16:
	ldr	x8, [x8, _et61x251_release_resources@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kref_put
Lloh18:
	adrp	x0, _et61x251_dev_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _et61x251_dev_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_up_write
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_et61x251_dev_lock,4,2          ; @et61x251_dev_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disconnecting %s..."

l_.str.1:                               ; @.str.1
	.asciz	"Device /dev/video%d is open! Deregistration and memory deallocation are deferred."

	.comm	_DEV_MISCONFIGURED,4,2          ; @DEV_MISCONFIGURED
	.comm	_DEV_DISCONNECTED,4,2           ; @DEV_DISCONNECTED
	.comm	_et61x251_release_resources,4,2 ; @et61x251_release_resources
	.no_dead_strip	_et61x251_usb_disconnect
.subsections_via_symbols
