	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radio_queryctrl
_radio_queryctrl:                       ## @radio_queryctrl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdx), %rax
	movq	_V4L2_CID_BASE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.1:
	movq	_V4L2_CID_LASTP1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.2:
	movq	%rdx, %r15
	movq	_ac97_qctrl@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%rsi, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %r12
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%r14), %rsi
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%rsi,%r12), %rax
	jne	LBB0_7
## %bb.6:
	addq	%r12, %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CID_BASE,8,3              ## @V4L2_CID_BASE
	.comm	_V4L2_CID_LASTP1,8,3            ## @V4L2_CID_LASTP1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ac97_qctrl,8,3                 ## @ac97_qctrl
	.no_dead_strip	_radio_queryctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radio_queryctrl
_radio_queryctrl:                       ; @radio_queryctrl
	.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
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _V4L2_CID_BASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CID_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_CID_LASTP1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_CID_LASTP1@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.ge	LBB0_7
; %bb.1:
	mov	x19, x2
Lloh6:
	adrp	x20, _ac97_qctrl@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ac97_qctrl@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x20]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x0, x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.6:
	add	x1, x0, x21
	mov	x0, x19
	mov	w2, #8
	bl	_memcpy
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_BASE,8,3              ; @V4L2_CID_BASE
	.comm	_V4L2_CID_LASTP1,8,3            ; @V4L2_CID_LASTP1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ac97_qctrl,8,3                 ; @ac97_qctrl
	.no_dead_strip	_radio_queryctrl
.subsections_via_symbols
