	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si470x_vidioc_queryctrl
_si470x_vidioc_queryctrl:               ## @si470x_vidioc_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
	callq	_video_drvdata
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rbx), %edx
	movq	_V4L2_CID_BASE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jge	LBB0_1
LBB0_8:
	movl	%ecx, %ebx
	negl	%ebx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.9:
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	cmpl	$129, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$15, %edx
	movl	$1, %ecx
	movl	$15, %r8d
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$1, %r8d
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_v4l2_ctrl_query_fill           ## TAILCALL
LBB0_6:
	movq	_V4L2_CID_LASTP1@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jge	LBB0_8
## %bb.7:
	movq	_V4L2_CTRL_FLAG_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CID_BASE,4,2              ## @V4L2_CID_BASE
	.comm	_V4L2_CID_LASTP1,4,2            ## @V4L2_CID_LASTP1
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ## @V4L2_CTRL_FLAG_DISABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query controls failed with %d\n"

	.no_dead_strip	_si470x_vidioc_queryctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si470x_vidioc_queryctrl
_si470x_vidioc_queryctrl:               ; @si470x_vidioc_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
	bl	_video_drvdata
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
Lloh3:
	adrp	x10, _V4L2_CID_BASE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_CID_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_4
LBB0_1:
	neg	w20, w8
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	x0, [x0]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	cmp	w9, #129
	b.eq	LBB0_7
; %bb.5:
	cmp	w9, #128
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #15
	mov	w3, #1
	mov	w4, #15
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	mov	w4, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_ctrl_query_fill
LBB0_9:
Lloh8:
	adrp	x10, _V4L2_CID_LASTP1@GOTPAGE
Lloh9:
	ldr	x10, [x10, _V4L2_CID_LASTP1@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_1
; %bb.10:
	mov	w20, #0
Lloh11:
	adrp	x8, _V4L2_CTRL_FLAG_DISABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_DISABLED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CID_BASE,4,2              ; @V4L2_CID_BASE
	.comm	_V4L2_CID_LASTP1,4,2            ; @V4L2_CID_LASTP1
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ; @V4L2_CTRL_FLAG_DISABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query controls failed with %d\n"

	.no_dead_strip	_si470x_vidioc_queryctrl
.subsections_via_symbols
