	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_querycap                  ## -- Begin function cx88_querycap
	.p2align	4, 0x90
_cx88_querycap:                         ## @cx88_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, %r14
	movq	%rsi, %rbx
	movl	4(%rdx), %edi
	movl	16(%rsi), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	_V4L2_CAP_READWRITE@GOTPCREL(%rip), %rcx
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_V4L2_CAP_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_V4L2_CAP_VBI_CAPTURE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_V4L2_CAP_DEVICE_CAPS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	(%rbx), %rcx
	movq	_UNSET@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	_V4L2_CAP_TUNER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_2:
	movq	8(%rbx), %rcx
	movq	_CX88_RADIO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_V4L2_CAP_RADIO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CAP_READWRITE,4,2         ## @V4L2_CAP_READWRITE
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ## @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_VBI_CAPTURE,4,2       ## @V4L2_CAP_VBI_CAPTURE
	.comm	_V4L2_CAP_DEVICE_CAPS,4,2       ## @V4L2_CAP_DEVICE_CAPS
	.comm	_UNSET,8,3                      ## @UNSET
	.comm	_V4L2_CAP_TUNER,4,2             ## @V4L2_CAP_TUNER
	.comm	_CX88_RADIO,8,3                 ## @CX88_RADIO
	.comm	_V4L2_CAP_RADIO,4,2             ## @V4L2_CAP_RADIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_querycap                  ; -- Begin function cx88_querycap
	.p2align	2
_cx88_querycap:                         ; @cx88_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
	mov	x20, x1
	ldr	w0, [x2, #4]
	ldr	w1, [x1, #16]
	mov	w2, #4
	bl	_strscpy
Lloh0:
	adrp	x8, _V4L2_CAP_READWRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CAP_READWRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_CAP_STREAMING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CAP_STREAMING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _V4L2_CAP_VBI_CAPTURE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_CAP_VBI_CAPTURE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _V4L2_CAP_DEVICE_CAPS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_CAP_DEVICE_CAPS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x9, [x20]
Lloh15:
	adrp	x10, _UNSET@GOTPAGE
Lloh16:
	ldr	x10, [x10, _UNSET@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.1:
Lloh18:
	adrp	x9, _V4L2_CAP_TUNER@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V4L2_CAP_TUNER@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	ldr	x9, [x20, #8]
Lloh21:
	adrp	x10, _CX88_RADIO@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CX88_RADIO@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh24:
	adrp	x9, _V4L2_CAP_RADIO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_CAP_RADIO@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CAP_READWRITE,4,2         ; @V4L2_CAP_READWRITE
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ; @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_VBI_CAPTURE,4,2       ; @V4L2_CAP_VBI_CAPTURE
	.comm	_V4L2_CAP_DEVICE_CAPS,4,2       ; @V4L2_CAP_DEVICE_CAPS
	.comm	_UNSET,8,3                      ; @UNSET
	.comm	_V4L2_CAP_TUNER,4,2             ; @V4L2_CAP_TUNER
	.comm	_CX88_RADIO,8,3                 ; @CX88_RADIO
	.comm	_V4L2_CAP_RADIO,4,2             ; @V4L2_CAP_RADIO
.subsections_via_symbols
