	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_s_output                ## -- Begin function vidioc_s_output
	.p2align	4, 0x90
_vidioc_s_output:                       ## @vidioc_s_output
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	callq	_video_drvdata
	cmpl	%r15d, (%rax)
	jbe	LBB0_1
## %bb.3:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	cmpl	%r15d, 4(%rax)
	je	LBB0_12
## %bb.4:
	leaq	60(%r14), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	addq	$56, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r15d, 4(%r14)
	movq	$0, 48(%r14)
	movq	8(%r14), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	_SVID@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	movq	%rax, 32(%r14)
	movq	%rax, 40(%r14)
	movq	%r14, %rdi
	callq	_vivid_update_format_out
	movl	24(%r14), %r15d
	movq	%r14, %rdi
	callq	_vivid_is_hdmi_out
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_v4l2_ctrl_activate
	movq	%r14, %rdi
	callq	_vivid_is_hdmi_out
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	24(%r14), %edi
	movq	16(%r14), %rax
	movl	4(%r14), %ecx
	movl	(%rax,%rcx,4), %esi
	callq	_v4l2_ctrl_s_ctrl
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SVID,8,3                       ## @SVID
	.comm	_V4L2_STD_ALL,8,3               ## @V4L2_STD_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_s_output                ; -- Begin function vidioc_s_output
	.p2align	2
_vidioc_s_output:                       ; @vidioc_s_output
	.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	x20, x2
	bl	_video_drvdata
	ldr	w8, [x0]
	cmp	w8, w20
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, w20
	b.ne	LBB0_4
LBB0_2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	add	x0, x19, #60
	bl	_vb2_is_busy
	cbnz	x0, LBB0_6
; %bb.5:
	add	x0, x19, #56
	bl	_vb2_is_busy
	cbz	x0, LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	str	w20, [x19, #4]
	str	xzr, [x19, #48]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, w20, uxtw #3]
Lloh4:
	adrp	x9, _SVID@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SVID@GOTPAGEOFF]
Lloh6:
	adrp	x10, _V4L2_STD_ALL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x8, x10, xzr, eq
	stp	x8, x8, [x19, #32]
	mov	x0, x19
	bl	_vivid_update_format_out
	ldr	w20, [x19, #24]
	mov	x0, x19
	bl	_vivid_is_hdmi_out
	mov	x1, x0
	mov	x0, x20
	bl	_v4l2_ctrl_activate
	mov	x0, x19
	bl	_vivid_is_hdmi_out
	cbz	x0, LBB0_8
; %bb.10:
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #4]
	ldr	w1, [x8, x9, lsl #2]
	bl	_v4l2_ctrl_s_ctrl
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SVID,8,3                       ; @SVID
	.comm	_V4L2_STD_ALL,8,3               ; @V4L2_STD_ALL
.subsections_via_symbols
