	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_queryctrl
_bttv_queryctrl:                        ## @bttv_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	(%rsi), %rax
	movq	(%rdx), %rdi
	movq	_V4L2_CID_BASE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jl	LBB0_2
## %bb.1:
	movq	_V4L2_CID_LASTP1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jl	LBB0_5
LBB0_2:
	movq	_V4L2_CID_PRIVATE_BASE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jl	LBB0_4
## %bb.3:
	movq	_V4L2_CID_PRIVATE_LASTP1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jge	LBB0_4
LBB0_5:
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_V4L2_CID_AUDIO_VOLUME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_8
LBB0_7:
	callq	_ctrl_by_id
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	movq	_no_ctl@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	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	_V4L2_CID_PRIVATE_BASE,8,3      ## @V4L2_CID_PRIVATE_BASE
	.comm	_V4L2_CID_PRIVATE_LASTP1,8,3    ## @V4L2_CID_PRIVATE_LASTP1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CID_AUDIO_VOLUME,8,3      ## @V4L2_CID_AUDIO_VOLUME
	.comm	_no_ctl,8,3                     ## @no_ctl
	.no_dead_strip	_bttv_queryctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_queryctrl
_bttv_queryctrl:                        ; @bttv_queryctrl
	.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
	ldr	x8, [x1]
	ldr	x0, [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	x0, x9
	ccmp	x0, x10, #0, ge
	b.lt	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, _V4L2_CID_PRIVATE_BASE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_CID_PRIVATE_BASE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _V4L2_CID_PRIVATE_LASTP1@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V4L2_CID_PRIVATE_LASTP1@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x0, x9
	ccmp	x0, x10, #0, ge
	b.lt	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_3:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _V4L2_CID_AUDIO_VOLUME@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_CID_AUDIO_VOLUME@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x0, x9, #0, eq
	b.eq	LBB0_6
; %bb.4:
	bl	_ctrl_by_id
	cbz	x0, LBB0_7
; %bb.5:
	mov	x8, x0
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
Lloh18:
	adrp	x8, _no_ctl@GOTPAGE
Lloh19:
	ldr	x8, [x8, _no_ctl@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_BASE,8,3              ; @V4L2_CID_BASE
	.comm	_V4L2_CID_LASTP1,8,3            ; @V4L2_CID_LASTP1
	.comm	_V4L2_CID_PRIVATE_BASE,8,3      ; @V4L2_CID_PRIVATE_BASE
	.comm	_V4L2_CID_PRIVATE_LASTP1,8,3    ; @V4L2_CID_PRIVATE_LASTP1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CID_AUDIO_VOLUME,8,3      ; @V4L2_CID_AUDIO_VOLUME
	.comm	_no_ctl,8,3                     ; @no_ctl
	.no_dead_strip	_bttv_queryctrl
.subsections_via_symbols
