	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_get_ext_ctrl
_v4l2_get_ext_ctrl:                     ## @v4l2_get_ext_ctrl
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -44(%rbp)
	movq	_V4L2_CTRL_CLASS_MPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$1, -80(%rbp)
	movl	%esi, -48(%rbp)
	movl	4(%rdi), %edi
	movq	_VIDIOC_G_EXT_CTRLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-44(%rbp), %eax
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	movl	(%r12), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rcx
	callq	_av_log
LBB0_3:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_CLASS_MPEG,4,2       ## @V4L2_CTRL_CLASS_MPEG
	.comm	_VIDIOC_G_EXT_CTRLS,4,2         ## @VIDIOC_G_EXT_CTRLS
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set %s\n"

	.no_dead_strip	_v4l2_get_ext_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_get_ext_ctrl
_v4l2_get_ext_ctrl:                     ; @v4l2_get_ext_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x20, x2
	mov	x21, x0
	add	x8, sp, #8
	stp	xzr, xzr, [sp, #32]
Lloh0:
	adrp	x9, _V4L2_CTRL_CLASS_MPEG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_CLASS_MPEG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #40]
	stp	xzr, x8, [sp, #24]
	stur	xzr, [sp, #12]
	mov	w8, #1
	str	w8, [sp, #24]
	str	w1, [sp, #8]
	ldr	w0, [x0, #4]
Lloh3:
	adrp	x8, _VIDIOC_G_EXT_CTRLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDIOC_G_EXT_CTRLS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_ioctl
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w22, #0
	ldr	w8, [sp, #12]
	str	w8, [x20]
	b	LBB0_3
LBB0_2:
	mov	x22, x0
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_av_log
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_CLASS_MPEG,4,2       ; @V4L2_CTRL_CLASS_MPEG
	.comm	_VIDIOC_G_EXT_CTRLS,4,2         ; @VIDIOC_G_EXT_CTRLS
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set %s\n"

	.no_dead_strip	_v4l2_get_ext_ctrl
.subsections_via_symbols
