	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_queryctrl
_vidioc_queryctrl:                      ## @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	%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, %r14
	movq	(%rsi), %r15
	movl	(%rdx), %r12d
	movq	%r15, %rdi
	callq	_check_dev
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r12d, (%r14)
	movq	8(%r15), %rax
	movq	_EM28XX_NO_AC97@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_ac97_queryctrl
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_queryctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %r8
	callq	_v4l2_device_call_all
	cmpq	$0, 8(%r14)
	jne	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_NO_AC97,8,3             ## @EM28XX_NO_AC97
	.comm	_core,4,2                       ## @core
	.comm	_queryctrl,4,2                  ## @queryctrl
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_queryctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_queryctrl
_vidioc_queryctrl:                      ; @vidioc_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
	mov	x19, x2
	ldr	x20, [x1]
	ldr	w21, [x2]
	mov	x0, x20
	bl	_check_dev
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	w21, [x19]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _EM28XX_NO_AC97@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EM28XX_NO_AC97@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ac97_queryctrl
	cbz	w0, LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _core@GOTPAGE
Lloh4:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _queryctrl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _queryctrl@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x4, x19
	bl	_v4l2_device_call_all
	mov	w0, #0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_NO_AC97,8,3             ; @EM28XX_NO_AC97
	.comm	_core,4,2                       ; @core
	.comm	_queryctrl,4,2                  ; @queryctrl
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_queryctrl
.subsections_via_symbols
