	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_stream_new
_uvc_stream_new:                        ## @uvc_stream_new
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r15, 16(%rbx)
	movq	%r14, %rdi
	callq	_usb_get_intf
	movl	%eax, 8(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_WQ_UNBOUND@GOTPCREL(%rip), %rax
	movq	_WQ_HIGHPRI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_uvc_stream_delete
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uvcvideo"

	.comm	_WQ_UNBOUND,4,2                 ## @WQ_UNBOUND
	.comm	_WQ_HIGHPRI,4,2                 ## @WQ_HIGHPRI
	.no_dead_strip	_uvc_stream_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_stream_new
_uvc_stream_new:                        ; @uvc_stream_new
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x19, #24
	bl	_mutex_init
	str	x21, [x19, #16]
	mov	x0, x20
	bl	_usb_get_intf
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WQ_UNBOUND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WQ_UNBOUND@GOTPAGEOFF]
	stp	w8, w0, [x19, #4]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _WQ_HIGHPRI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WQ_HIGHPRI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x19]
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_uvc_stream_delete
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uvcvideo"

	.comm	_WQ_UNBOUND,4,2                 ; @WQ_UNBOUND
	.comm	_WQ_HIGHPRI,4,2                 ; @WQ_HIGHPRI
	.no_dead_strip	_uvc_stream_new
.subsections_via_symbols
