	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_set_ext_ctrl
_v4l2_set_ext_ctrl:                     ## @v4l2_set_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movl	$0, -32(%rbp)
	movq	_V4L2_CTRL_CLASS_MPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$1, -64(%rbp)
	movl	%edx, -40(%rbp)
	movl	%esi, -36(%rbp)
	movl	4(%rdi), %edi
	movq	_VIDIOC_S_EXT_CTRLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_ioctl
	movl	(%rbx), %ebx
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %edi
	movq	%r14, %rcx
	movl	%r15d, %r8d
	jmp	LBB0_3
LBB0_1:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r14, %rcx
	movl	%eax, %r8d
LBB0_3:
	callq	_av_log
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_CLASS_MPEG,4,2       ## @V4L2_CTRL_CLASS_MPEG
	.comm	_VIDIOC_S_EXT_CTRLS,4,2         ## @VIDIOC_S_EXT_CTRLS
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set %s: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Encoder: %s = %d\n"

	.no_dead_strip	_v4l2_set_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_set_ext_ctrl
_v4l2_set_ext_ctrl:                     ; @v4l2_set_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]
	stp	w1, wzr, [sp, #12]
	mov	w8, #1
	str	w8, [sp, #24]
	str	w2, [sp, #8]
	ldr	w0, [x0, #4]
Lloh3:
	adrp	x8, _VIDIOC_S_EXT_CTRLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDIOC_S_EXT_CTRLS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_ioctl
	ldr	w21, [x21]
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	mov	x4, x20
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
	mov	x4, x0
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
LBB0_3:
	bl	_av_log
	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
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_CLASS_MPEG,4,2       ; @V4L2_CTRL_CLASS_MPEG
	.comm	_VIDIOC_S_EXT_CTRLS,4,2         ; @VIDIOC_S_EXT_CTRLS
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set %s: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Encoder: %s = %d\n"

	.no_dead_strip	_v4l2_set_ext_ctrl
.subsections_via_symbols
