	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_std
_vidioc_s_std:                          ## @vidioc_s_std
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	(%rsi), %r14
	movq	8(%r14), %r12
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DEB_EE
	movl	(%r12), %eax
	movq	_STATUS_CAPTURE@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	notl	%edx
	testl	%edx, (%rcx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_DEB_D
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_2:
	movq	_STATUS_OVERLAY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	24(%r12), %rdi
	movq	%rdi, 16(%r12)
	callq	_saa7146_stop_preview
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_DEB_D
	jmp	LBB0_20
LBB0_5:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.11:
	movq	16(%rax), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	testl	%r15d, (%rsi,%rdx,8)
	jne	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
## %bb.14:
	movb	$1, %bl
	jmp	LBB0_15
LBB0_6:
	xorl	%edx, %edx
LBB0_7:
	movb	$1, %bl
	cmpl	%ecx, %edx
	je	LBB0_15
## %bb.8:
	movl	%edx, %esi
	shlq	$3, %rsi
	addq	16(%rax), %rsi
	movq	%rsi, 8(%r12)
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	*%rcx
LBB0_10:
	xorl	%ebx, %ebx
LBB0_15:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_saa7146_start_preview
	movq	$0, 16(%r12)
LBB0_17:
	testb	%bl, %bl
	je	LBB0_19
## %bb.18:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DEB_EE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_19:
	movq	8(%r12), %rax
	movl	4(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DEB_EE
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_S_STD\n"

	.comm	_STATUS_CAPTURE,4,2             ## @STATUS_CAPTURE
L_.str.1:                               ## @.str.1
	.asciz	"cannot change video standard while streaming capture is active\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_STATUS_OVERLAY,4,2             ## @STATUS_OVERLAY
L_.str.2:                               ## @.str.2
	.asciz	"suspending video failed. aborting\n"

L_.str.3:                               ## @.str.3
	.asciz	"VIDIOC_S_STD: standard not found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"VIDIOC_S_STD: set to standard to '%s'\n"

	.no_dead_strip	_vidioc_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_std
_vidioc_s_std:                          ; @vidioc_s_std
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	ldr	x19, [x1]
	ldr	x22, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEB_EE
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _STATUS_CAPTURE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STATUS_CAPTURE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DEB_D
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_15
LBB0_2:
Lloh9:
	adrp	x9, _STATUS_OVERLAY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STATUS_OVERLAY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x0, [x22, #24]
	str	x0, [x22, #16]
	bl	_saa7146_stop_preview
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DEB_D
	b	LBB0_16
LBB0_5:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x10, #0
	ldr	x11, [x8, #16]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	tst	w12, w20
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	add	x11, x11, #8
	cmp	x9, x10
	b.ne	LBB0_7
	b	LBB0_11
LBB0_9:
	mov	w10, #0
LBB0_10:
	cmp	w10, w9
	b.ne	LBB0_18
LBB0_11:
	mov	w19, #1
	ldr	x0, [x22, #16]
	cbz	x0, LBB0_13
LBB0_12:
	bl	_saa7146_start_preview
	str	xzr, [x22, #16]
LBB0_13:
	cbz	w19, LBB0_17
; %bb.14:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DEB_EE
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_17:
	ldr	x8, [x22, #8]
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DEB_EE
	mov	w21, #0
	b	LBB0_16
LBB0_18:
	ldp	x8, x9, [x8, #8]
	add	x1, x9, w10, uxtw #3
	str	x1, [x22, #8]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	blr	x8
LBB0_20:
	mov	w19, #0
	ldr	x0, [x22, #16]
	cbnz	x0, LBB0_12
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_S_STD\n"

	.comm	_STATUS_CAPTURE,4,2             ; @STATUS_CAPTURE
l_.str.1:                               ; @.str.1
	.asciz	"cannot change video standard while streaming capture is active\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_STATUS_OVERLAY,4,2             ; @STATUS_OVERLAY
l_.str.2:                               ; @.str.2
	.asciz	"suspending video failed. aborting\n"

l_.str.3:                               ; @.str.3
	.asciz	"VIDIOC_S_STD: standard not found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"VIDIOC_S_STD: set to standard to '%s'\n"

	.no_dead_strip	_vidioc_s_std
.subsections_via_symbols
