	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw68_s_std
_tw68_s_std:                            ## @tw68_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_TVNORMS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	movl	$0, %edx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movq	_tvnorms@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rsi,%rdx,4)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_3
	jmp	LBB0_9
LBB0_7:
	cmpl	%ecx, %edx
	cmovnel	%edx, %eax
	jne	LBB0_12
## %bb.8:
	testl	%ecx, %ecx
	je	LBB0_12
LBB0_9:
	movq	_tvnorms@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, (%rdx,%rax,4)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_10
	jmp	LBB0_13
LBB0_12:
	cmpl	%ecx, %eax
	jne	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	_tvnorms@GOTPCREL(%rip), %rcx
	movl	%eax, %esi
	shlq	$2, %rsi
	addq	(%rcx), %rsi
	movq	%r14, %rdi
	callq	_set_tvnorm
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TVNORMS,4,2                    ## @TVNORMS
	.comm	_tvnorms,8,3                    ## @tvnorms
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tw68_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw68_s_std
_tw68_s_std:                            ; @tw68_s_std
	.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
	mov	x19, x0
	bl	_vb2_is_busy
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
Lloh2:
	adrp	x8, _TVNORMS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TVNORMS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	adrp	x8, _tvnorms@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tvnorms@GOTPAGEOFF]
	cbz	w9, LBB0_6
; %bb.3:
	mov	x10, #0
	ldr	x11, [x8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10, lsl #2]
	cmp	w12, w20
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_4
	b	LBB0_9
LBB0_6:
	mov	w10, #0
LBB0_7:
	cmp	w10, w9
	csel	w10, w10, wzr, ne
	b.ne	LBB0_12
; %bb.8:
	cbz	w9, LBB0_12
LBB0_9:
	mov	x10, #0
	ldr	x11, [x8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10, lsl #2]
	tst	w12, w20
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_10
	b	LBB0_13
LBB0_12:
	cmp	w10, w9
	b.ne	LBB0_16
LBB0_13:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x8, [x8]
	add	x1, x8, w10, uxtw #2
	mov	x0, x19
	bl	_set_tvnorm
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TVNORMS,4,2                    ; @TVNORMS
	.comm	_tvnorms,8,3                    ; @tvnorms
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tw68_s_std
.subsections_via_symbols
