	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbtv_probe
_usbtv_probe:                           ## @usbtv_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, (%rdi)
	jne	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	cmpl	$4, 24(%rax)
	jne	LBB0_1
## %bb.4:
	movq	16(%rax), %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_maxp
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_usb_endpoint_maxp_mult
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	leaq	16(%r15), %r12
	imull	%r13d, %ebx
	movq	%r12, 16(%rax)
	movq	%r15, %rdi
	callq	_interface_to_usbdev
	movl	%eax, %edi
	callq	_usb_get_dev
	movl	%eax, 4(%r14)
	movl	%ebx, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_usb_set_intfdata
	movq	%r14, %rdi
	callq	_usbtv_video_init
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_usbtv_audio_init
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_v4l2_device_get
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_usb_get_dev
	movq	%r14, %rdi
	callq	_usbtv_video_free
LBB0_11:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	movl	4(%r14), %edi
	callq	_usb_put_dev
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fushicai USBTV007 Audio-Video Grabber\n"

	.no_dead_strip	_usbtv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbtv_probe
_usbtv_probe:                           ; @usbtv_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	w8, [x20], #16
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #24]
	cmp	w9, #4
	b.ne	LBB0_6
; %bb.2:
	ldr	x21, [x8, #16]
	mov	x0, x21
	bl	_usb_endpoint_maxp
	mov	x22, x0
	mov	x0, x21
	bl	_usb_endpoint_maxp_mult
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	mul	w22, w23, w22
	str	x20, [x0, #16]
	mov	x0, x19
	bl	_interface_to_usbdev
	bl	_usb_get_dev
	stp	w22, w0, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_usb_set_intfdata
	mov	x0, x21
	bl	_usbtv_video_init
	tbnz	w0, #31, LBB0_10
; %bb.4:
	mov	x0, x21
	bl	_usbtv_audio_init
	tbnz	w0, #31, LBB0_11
; %bb.5:
	add	x0, x21, #8
	bl	_v4l2_device_get
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w22, #0
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	mov	x22, x0
	b	LBB0_12
LBB0_11:
	mov	x22, x0
	ldr	w0, [x21, #4]
	bl	_usb_get_dev
	mov	x0, x21
	bl	_usbtv_video_free
LBB0_12:
	mov	x0, x19
	mov	x1, #0
	bl	_usb_set_intfdata
	ldr	w0, [x21, #4]
	bl	_usb_put_dev
	mov	x0, x21
	bl	_kfree
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fushicai USBTV007 Audio-Video Grabber\n"

	.no_dead_strip	_usbtv_probe
.subsections_via_symbols
