	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_ctrl
_vidioc_s_ctrl:                         ## @vidioc_s_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	%rdi, %r8
	movq	(%rsi), %r9
	movq	8(%r9), %rdi
	movq	_MAXCONTROLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mxb_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, %edx
	jle	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-8(%rax,%rdx,8), %rcx
	decq	%rdx
	cmpq	(%rbx), %rcx
	jne	LBB0_1
## %bb.3:
	movq	_V4L2_CID_AUDIO_MUTE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.4:
	movq	8(%rbx), %rax
	movq	%rax, 8(%rdi)
	movl	$6, %esi
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_video_audio_connect@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %esi
LBB0_6:
	callq	_tea6420_route_line
	movq	8(%rbx), %rdi
	callq	_DEB_EE
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	(%r9), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%r8, %rdi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXCONTROLS,4,2                ## @MAXCONTROLS
	.comm	_mxb_controls,8,3               ## @mxb_controls
	.comm	_V4L2_CID_AUDIO_MUTE,8,3        ## @V4L2_CID_AUDIO_MUTE
	.comm	_video_audio_connect,8,3        ## @video_audio_connect
	.no_dead_strip	_vidioc_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_ctrl
_vidioc_s_ctrl:                         ; @vidioc_s_ctrl
	.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
	mov	x8, x0
	ldr	x9, [x1]
Lloh0:
	adrp	x10, _MAXCONTROLS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAXCONTROLS@GOTPAGEOFF]
	ldr	x0, [x9, #8]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _mxb_controls@GOTPAGE
Lloh4:
	ldr	x11, [x11, _mxb_controls@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	sub	x11, x11, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x12, [x11, x10, lsl #3]
	sub	x10, x10, #1
	ldr	x13, [x19]
	cmp	x12, x13
	b.ne	LBB0_1
; %bb.3:
Lloh6:
	adrp	x8, _V4L2_CID_AUDIO_MUTE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CID_AUDIO_MUTE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x12, x8
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x19, #8]
	str	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	w1, #6
	b	LBB0_8
LBB0_6:
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x3, [x9]
	mov	x0, x8
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x3
LBB0_7:
Lloh9:
	adrp	x8, _video_audio_connect@GOTPAGE
Lloh10:
	ldr	x8, [x8, _video_audio_connect@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w1, [x8, x9, lsl #2]
LBB0_8:
	bl	_tea6420_route_line
	ldr	x0, [x19, #8]
	bl	_DEB_EE
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXCONTROLS,4,2                ; @MAXCONTROLS
	.comm	_mxb_controls,8,3               ; @mxb_controls
	.comm	_V4L2_CID_AUDIO_MUTE,8,3        ; @V4L2_CID_AUDIO_MUTE
	.comm	_video_audio_connect,8,3        ; @video_audio_connect
	.no_dead_strip	_vidioc_s_ctrl
.subsections_via_symbols
