	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpia2_querycap
_cpia2_querycap:                        ## @cpia2_querycap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	cmpl	$337, 8(%r14)                   ## imm = 0x151
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	12(%r14), %eax
	cmpl	$128, %eax
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rcx, %rdx
	cmpl	$129, %eax
	leaq	L_.str.3(%rip), %rsi
	cmovneq	%rdx, %rsi
	movl	4(%rbx), %edi
	callq	_strcat
	movl	$-130, %eax
	addl	4(%r14), %eax
	cmpl	$4, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_reltable.cpia2_querycap(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.11(%rip), %rsi
LBB0_3:
	movl	4(%rbx), %edi
	callq	_strcat
	movl	(%r14), %edi
	movl	(%rbx), %esi
	movl	$4, %edx
	callq	_usb_make_path
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpia2"

L_.str.1:                               ## @.str.1
	.asciz	"QX5 Microscope"

L_.str.2:                               ## @.str.2
	.asciz	"CPiA2 Camera"

L_.str.3:                               ## @.str.3
	.asciz	" (672/"

L_.str.4:                               ## @.str.4
	.asciz	" (676/"

L_.str.5:                               ## @.str.5
	.asciz	" (XXX/"

L_.str.6:                               ## @.str.6
	.asciz	"404)"

L_.str.7:                               ## @.str.7
	.asciz	"407)"

L_.str.8:                               ## @.str.8
	.asciz	"409)"

L_.str.9:                               ## @.str.9
	.asciz	"410)"

L_.str.10:                              ## @.str.10
	.asciz	"500)"

L_.str.11:                              ## @.str.11
	.asciz	"XXX)"

	.no_dead_strip	_cpia2_querycap
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.cpia2_querycap
l_reltable.cpia2_querycap:
	.long	L_.str.10-l_reltable.cpia2_querycap
	.long	L_.str.9-l_reltable.cpia2_querycap
	.long	L_.str.8-l_reltable.cpia2_querycap
	.long	L_.str.7-l_reltable.cpia2_querycap
	.long	L_.str.6-l_reltable.cpia2_querycap

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpia2_querycap
_cpia2_querycap:                        ; @cpia2_querycap
	.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
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	w8, [x20, #8]
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #337
	csel	x1, x10, x9, eq
	mov	w2, #4
	bl	_strscpy
	ldr	w8, [x20, #12]
Lloh6:
	adrp	x9, l_.str.5@PAGE
Lloh7:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh8:
	adrp	x10, l_.str.4@PAGE
Lloh9:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w8, #128
	csel	x9, x10, x9, eq
Lloh10:
	adrp	x10, l_.str.3@PAGE
Lloh11:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, #129
	csel	x1, x10, x9, eq
	ldr	w0, [x19, #4]
	bl	_strcat
	ldr	w8, [x20, #4]
	sub	w8, w8, #130
	cmp	w8, #4
	b.hi	LBB0_2
; %bb.1:
Lloh12:
	adrp	x9, l_switch.table.cpia2_querycap@PAGE
Lloh13:
	add	x9, x9, l_switch.table.cpia2_querycap@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x1, l_.str.11@PAGE
Lloh15:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_strcat
	ldr	w0, [x20]
	ldr	w1, [x19]
	mov	w2, #4
	bl	_usb_make_path
	tbz	x0, #63, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpia2"

l_.str.1:                               ; @.str.1
	.asciz	"QX5 Microscope"

l_.str.2:                               ; @.str.2
	.asciz	"CPiA2 Camera"

l_.str.3:                               ; @.str.3
	.asciz	" (672/"

l_.str.4:                               ; @.str.4
	.asciz	" (676/"

l_.str.5:                               ; @.str.5
	.asciz	" (XXX/"

l_.str.6:                               ; @.str.6
	.asciz	"404)"

l_.str.7:                               ; @.str.7
	.asciz	"407)"

l_.str.8:                               ; @.str.8
	.asciz	"409)"

l_.str.9:                               ; @.str.9
	.asciz	"410)"

l_.str.10:                              ; @.str.10
	.asciz	"500)"

l_.str.11:                              ; @.str.11
	.asciz	"XXX)"

	.no_dead_strip	_cpia2_querycap
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cpia2_querycap
l_switch.table.cpia2_querycap:
	.quad	l_.str.10
	.quad	l_.str.9
	.quad	l_.str.8
	.quad	l_.str.7
	.quad	l_.str.6

.subsections_via_symbols
