	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l_g_ext_ctrls
_v4l_g_ext_ctrls:                       ## @v4l_g_ext_ctrls
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_video_devdata
	movq	%rax, %rbx
	movq	_V4L2_FL_USES_V4L2_FH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	movl	(%r13), %ecx
	movl	%ecx, 4(%r13)
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
LBB0_3:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
LBB0_9:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movq	%r13, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_g_ext_ctrls               ## TAILCALL
LBB0_4:
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_check_ext_ctrls
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	(%r12), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FL_USES_V4L2_FH,4,2       ## @V4L2_FL_USES_V4L2_FH
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_v4l_g_ext_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l_g_ext_ctrls
_v4l_g_ext_ctrls:                       ; @v4l_g_ext_ctrls
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_video_devdata
	mov	x23, x0
Lloh0:
	adrp	x8, _V4L2_FL_USES_V4L2_FH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_FL_USES_V4L2_FH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x23, #16
	bl	_test_bit
	ldr	w8, [x19]
	str	w8, [x19, #4]
	cbz	x20, LBB0_3
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x20]
	cbnz	x0, LBB0_4
LBB0_3:
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_5
LBB0_4:
	ldr	x8, [x23]
	ldr	w2, [x8]
	mov	x1, x23
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_v4l2_g_ext_ctrls
LBB0_5:
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_check_ext_ctrls
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x3, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
LBB0_8:
Lloh3:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FL_USES_V4L2_FH,4,2       ; @V4L2_FL_USES_V4L2_FH
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_v4l_g_ext_ctrls
.subsections_via_symbols
