	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_queryctrl              ## -- Begin function saa7134_queryctrl
	.p2align	4, 0x90
_saa7134_queryctrl:                     ## @saa7134_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	(%rdx), %rdi
	movq	_V4L2_CID_BASE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jl	LBB0_2
## %bb.1:
	movq	_V4L2_CID_LASTP1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jl	LBB0_5
LBB0_2:
	movq	_V4L2_CID_PRIVATE_BASE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jl	LBB0_4
## %bb.3:
	movq	_V4L2_CID_PRIVATE_LASTP1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_4
LBB0_5:
	callq	_ctrl_by_id
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_no_ctrl@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	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	_no_ctrl,8,3                    ## @no_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_queryctrl              ; -- Begin function saa7134_queryctrl
	.p2align	2
_saa7134_queryctrl:                     ; @saa7134_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	x0, [x2]
Lloh0:
	adrp	x8, _V4L2_CID_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _V4L2_CID_LASTP1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CID_LASTP1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #0, ge
	b.lt	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _V4L2_CID_PRIVATE_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CID_PRIVATE_BASE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _V4L2_CID_PRIVATE_LASTP1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_CID_PRIVATE_LASTP1@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #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_7
LBB0_3:
	bl	_ctrl_by_id
	cbz	x0, LBB0_5
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _no_ctrl@GOTPAGE
Lloh16:
	ldr	x8, [x8, _no_ctrl@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	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 AdrpLdrGot	Lloh15, Lloh16
	.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	_no_ctrl,8,3                    ; @no_ctrl
.subsections_via_symbols
