	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gspca_dev_probe2               ## -- Begin function gspca_dev_probe2
	.p2align	4, 0x90
_gspca_dev_probe2:                      ## @gspca_dev_probe2
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_PDEBUG
	cmpl	$97, %ebx
	movl	$96, %edi
	cmovael	%ebx, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r13
	movq	_USB_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kmalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%r12, 88(%r13)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r13)
	movl	16(%rcx), %eax
	movl	%eax, 80(%r13)
	movq	(%r12), %rcx
	movl	8(%rcx), %eax
	cmpl	$2, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jl	LBB0_9
## %bb.3:
	movq	(%rcx), %rcx
	movq	_USB_CLASS_AUDIO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rdx, (%rdi)
	jne	LBB0_4
## %bb.8:
	movl	$1, (%r13)
LBB0_9:
	movq	%rbx, 72(%r13)
	movabsq	$-4294967294, %rax              ## imm = 0xFFFFFFFF00000002
	movq	%rax, 4(%r13)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	*(%rbx)
	testl	%eax, %eax
	js	LBB0_19
## %bb.10:
	cmpq	$0, 64(%r13)
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_ctrls_init
LBB0_12:
	movq	%r13, %rdi
	callq	*8(%rbx)
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:
	movq	%r13, %rdi
	callq	_gspca_set_default_mode
	movq	%r13, %rdi
	callq	_gspca_input_connect
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.14:
	leaq	56(%r13), %rdi
	callq	_mutex_init
	leaq	52(%r13), %rdi
	callq	_mutex_init
	leaq	48(%r13), %rdi
	callq	_init_waitqueue_head
	movq	%r13, %r15
	addq	$32, %r15
	movq	_gspca_template@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 32(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r13)
	movl	$1, 12(%r13)
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	js	LBB0_20
## %bb.15:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_usb_set_intfdata
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_video_device_node_name
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	%r13, %rdi
	callq	_gspca_input_create_urb
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_19:
	movl	%eax, %r14d
	jmp	LBB0_21
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_21:
	movq	16(%r13), %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
LBB0_22:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probing %04x:%04x"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"couldn't kzalloc gspca struct"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_USB_BUF_SZ,4,2                 ## @USB_BUF_SZ
L_.str.2:                               ## @.str.2
	.asciz	"out of memory"

	.comm	_USB_CLASS_AUDIO,8,3            ## @USB_CLASS_AUDIO
	.comm	_gspca_template,4,2             ## @gspca_template
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.3:                               ## @.str.3
	.asciz	"video_register_device err %d"

L_.str.4:                               ## @.str.4
	.asciz	"%s created"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function gspca_dev_probe2
lCPI0_0:
	.long	2                               ; 0x2
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gspca_dev_probe2
	.p2align	2
_gspca_dev_probe2:                      ; @gspca_dev_probe2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_interface_to_usbdev
	mov	x24, x0
Lloh0:
	adrp	x25, _D_PROBE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _D_PROBE@GOTPAGEOFF]
	ldr	w0, [x25]
	ldp	w8, w2, [x23]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	mov	w8, #96
	cmp	w19, #96
	csel	w0, w19, w8, hi
Lloh4:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _USB_BUF_SZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_BUF_SZ@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x26]
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.2:
	str	x24, [x19, #88]
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	stp	w9, w8, [x19, #80]
	ldr	x9, [x24]
	ldr	w8, [x9, #8]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.3:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _USB_CLASS_AUDIO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _USB_CLASS_AUDIO@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x11, #8]
	cbz	x11, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x11]
	cmp	x11, x10
	b.ne	LBB0_4
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	str	x22, [x19, #72]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	ldr	x8, [x22]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	tbnz	w0, #31, LBB0_17
; %bb.10:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_ctrls_init
LBB0_12:
	ldr	x8, [x22, #8]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_gspca_set_default_mode
	mov	x0, x19
	bl	_gspca_input_connect
	mov	x23, x0
	cbnz	w0, LBB0_19
; %bb.14:
	add	x0, x19, #56
	bl	_mutex_init
	add	x0, x19, #52
	bl	_mutex_init
	add	x0, x19, #48
	bl	_init_waitqueue_head
	add	x22, x19, #32
Lloh14:
	adrp	x1, _gspca_template@GOTPAGE
Lloh15:
	ldr	x1, [x1, _gspca_template@GOTPAGEOFF]
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
	stp	x20, x21, [x19, #32]
	mov	w8, #1
	str	w8, [x19, #12]
Lloh16:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #-1
	bl	_video_register_device
	tbnz	w0, #31, LBB0_21
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	bl	_usb_set_intfdata
	ldr	w20, [x25]
	mov	x0, x22
	bl	_video_device_node_name
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_PDEBUG
	mov	x0, x19
	bl	_gspca_input_create_urb
	mov	w23, #0
	b	LBB0_20
LBB0_16:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_20
LBB0_17:
	mov	x23, x0
	b	LBB0_19
LBB0_18:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_err
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_19:
	ldr	x0, [x19, #16]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
	mov	x23, x0
	str	x23, [sp]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_err
	b	LBB0_19
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probing %04x:%04x"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"couldn't kzalloc gspca struct"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_USB_BUF_SZ,4,2                 ; @USB_BUF_SZ
l_.str.2:                               ; @.str.2
	.asciz	"out of memory"

	.comm	_USB_CLASS_AUDIO,8,3            ; @USB_CLASS_AUDIO
	.comm	_gspca_template,4,2             ; @gspca_template
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.3:                               ; @.str.3
	.asciz	"video_register_device err %d"

l_.str.4:                               ; @.str.4
	.asciz	"%s created"

.subsections_via_symbols
