	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_hdw_remove_usb_stuff
_pvr2_hdw_remove_usb_stuff:             ## @pvr2_hdw_remove_usb_stuff
	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	_PVR2_TRACE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_pvr2_trace
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_usb_kill_urb
	movq	56(%rbx), %rdi
	callq	_usb_free_urb
	movq	$0, 56(%rbx)
LBB0_3:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_usb_kill_urb
	movq	48(%rbx), %rdi
	callq	_usb_free_urb
	movq	$0, 48(%rbx)
LBB0_5:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_kfree
	movq	$0, 40(%rbx)
LBB0_7:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_kfree
	movq	$0, 32(%rbx)
LBB0_9:
	movl	$1, (%rbx)
	leaq	24(%rbx), %rdi
	callq	_v4l2_device_disconnect
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pvr2_hdw_render_useless        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_INIT,4,2            ## @PVR2_TRACE_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pvr2_hdw_remove_usb_stuff: hdw=%p"

	.no_dead_strip	_pvr2_hdw_remove_usb_stuff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_hdw_remove_usb_stuff
_pvr2_hdw_remove_usb_stuff:             ; @pvr2_hdw_remove_usb_stuff
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x8, _PVR2_TRACE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVR2_TRACE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pvr2_trace
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_usb_kill_urb
	ldr	x0, [x19, #56]
	bl	_usb_free_urb
	str	xzr, [x19, #56]
LBB0_4:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_usb_kill_urb
	ldr	x0, [x19, #48]
	bl	_usb_free_urb
	str	xzr, [x19, #48]
LBB0_6:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_kfree
	str	xzr, [x19, #40]
LBB0_8:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_kfree
	str	xzr, [x19, #32]
LBB0_10:
	mov	w8, #1
	str	w8, [x19]
	add	x0, x19, #24
	bl	_v4l2_device_disconnect
	stp	xzr, xzr, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pvr2_hdw_render_useless
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_INIT,4,2            ; @PVR2_TRACE_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pvr2_hdw_remove_usb_stuff: hdw=%p"

	.no_dead_strip	_pvr2_hdw_remove_usb_stuff
.subsections_via_symbols
