	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_pwc_disconnect
_usb_pwc_disconnect:                    ## @usb_pwc_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	%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	_usb_get_intfdata
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	24(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_interface_to_usbdev
	cmpq	%rax, %r12
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_PWC_ERROR
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_PWC_ERROR
	jmp	LBB0_12
LBB0_7:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	_PWC_INFO
	movq	_EPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_9:
	leaq	16(%rbx), %rdi
	callq	_wake_up_interruptible
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.10:
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_pwc_iso_stop
	jmp	LBB0_24
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	callq	_PWC_DEBUG_PROBE
	movq	%rbx, %rdi
	callq	_pwc_cleanup
LBB0_12:
	movq	_MAX_DEV_HINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.13:
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.14:
	xorl	%ecx, %ecx
LBB0_21:
	testb	$1, %al
	je	LBB0_24
## %bb.22:
	movq	_device_hint@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, (%rax,%rcx,8)
	jne	LBB0_24
## %bb.23:
	movq	$0, (%rax,%rcx,8)
LBB0_24:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_15:
	movl	%eax, %edx
	andl	$-2, %edx
	xorl	%ecx, %ecx
	movq	_device_hint@GOTPCREL(%rip), %rsi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_21
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rdi
	cmpq	%rbx, (%rdi,%rcx,8)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	$0, (%rdi,%rcx,8)
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rsi), %rdi
	cmpq	%rbx, 8(%rdi,%rcx,8)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	$0, 8(%rdi,%rcx,8)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pwc_disconnect() Called without private pointer.\n"

L_.str.1:                               ## @.str.1
	.asciz	"pwc_disconnect() already called for %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"pwc_disconnect() Woops: pointer mismatch udev/pdev.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Disconnected while webcam is in use!\n"

	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.4:                               ## @.str.4
	.asciz	"Unregistering video device in disconnect().\n"

	.comm	_MAX_DEV_HINTS,4,2              ## @MAX_DEV_HINTS
	.comm	_device_hint,8,3                ## @device_hint
	.no_dead_strip	_usb_pwc_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_pwc_disconnect
_usb_pwc_disconnect:                    ; @usb_pwc_disconnect
	.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	_usb_get_intfdata
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, #0
	bl	_usb_set_intfdata
	cbz	x20, LBB0_4
; %bb.1:
	ldr	x22, [x20, #24]
	cbz	x22, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_interface_to_usbdev
	cmp	x22, x0
	b.eq	LBB0_6
; %bb.3:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_PWC_ERROR
	b	LBB0_11
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PWC_ERROR
	b	LBB0_11
LBB0_5:
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_PWC_ERROR
	b	LBB0_11
LBB0_6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_PWC_INFO
Lloh8:
	adrp	x8, _EPIPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #20]
LBB0_8:
	add	x0, x20, #16
	bl	_wake_up_interruptible
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x20
	bl	_pwc_iso_stop
	b	LBB0_16
LBB0_10:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_PWC_DEBUG_PROBE
	mov	x0, x20
	bl	_pwc_cleanup
LBB0_11:
Lloh13:
	adrp	x8, _MAX_DEV_HINTS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_DEV_HINTS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.12:
	mov	x8, #0
	lsl	x9, x9, #3
Lloh16:
	adrp	x10, _device_hint@GOTPAGE
Lloh17:
	ldr	x10, [x10, _device_hint@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #8
	cmp	x9, x8
	b.eq	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x11, x8]
	cmp	x12, x20
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	str	xzr, [x11, x8]
	b	LBB0_13
LBB0_16:
	mov	x0, x19
	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
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pwc_disconnect() Called without private pointer.\n"

l_.str.1:                               ; @.str.1
	.asciz	"pwc_disconnect() already called for %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"pwc_disconnect() Woops: pointer mismatch udev/pdev.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Disconnected while webcam is in use!\n"

	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.4:                               ; @.str.4
	.asciz	"Unregistering video device in disconnect().\n"

	.comm	_MAX_DEV_HINTS,4,2              ; @MAX_DEV_HINTS
	.comm	_device_hint,8,3                ; @device_hint
	.no_dead_strip	_usb_pwc_disconnect
.subsections_via_symbols
