	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_s_std_enc                 ## -- Begin function ivtv_s_std_enc
	.p2align	4, 0x90
_ivtv_s_std_enc:                        ## @ivtv_s_std_enc
	.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	%rdi, %rbx
	movl	%esi, (%rdi)
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	andl	(%rcx), %esi
	sete	%al
	setne	%dl
	movl	%edx, 4(%rdi)
	movl	%eax, 8(%rdi)
	addq	$40, %rdi
	movl	%eax, %esi
	callq	_cx2341x_handler_set_50hz
	movl	$720, 40(%rbx)                  ## imm = 0x2D0
	xorl	%eax, %eax
	cmpl	$0, 8(%rbx)
	movl	$480, %ecx                      ## imm = 0x1E0
	movl	$576, %edx                      ## imm = 0x240
	cmovel	%ecx, %edx
	movl	$12, %ecx
	movl	$18, %esi
	cmovel	%ecx, %esi
	sete	%al
	movl	%edx, 44(%rbx)
	movl	%esi, 16(%rbx)
	leal	6(,%rax,4), %eax
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	cmpl	$0, 8(%rbx)
	movl	$273, %eax                      ## imm = 0x111
	movl	$318, %edx                      ## imm = 0x13E
	cmovel	%eax, %edx
	movl	%edx, 4(%rcx)
	movq	_IVTV_HW_CX25840@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rbx)
	movl	$284, %eax                      ## imm = 0x11C
	movl	$272, %ecx                      ## imm = 0x110
	cmovel	%eax, %ecx
	movl	%ecx, 32(%rbx)
LBB0_2:
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ivtv_call_all                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_IVTV_HW_CX25840,4,2            ## @IVTV_HW_CX25840
	.comm	_video,4,2                      ## @video
	.comm	_s_std,4,2                      ## @s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_s_std_enc                 ; -- Begin function ivtv_s_std_enc
	.p2align	2
_ivtv_s_std_enc:                        ; @ivtv_s_std_enc
	.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, x0
	str	w1, [x0]
Lloh0:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	cset	w1, eq
	cset	w8, ne
	stp	w8, w1, [x0, #4]
	add	x0, x0, #40
	bl	_cx2341x_handler_set_50hz
	mov	w8, #720
	ldr	w9, [x19, #8]
	mov	w10, #576
	mov	w11, #480
	cmp	w9, #0
	csel	w9, w11, w10, eq
	stp	w8, w9, [x19, #40]
	mov	w8, #18
	mov	w9, #12
	csel	w8, w9, w8, eq
	str	w8, [x19, #16]
	mov	w8, #6
	mov	w9, #10
	csel	w8, w9, w8, eq
	ldr	x9, [x19, #24]
	str	w8, [x9]
	ldr	w8, [x19, #8]
	mov	w10, #318
	mov	w11, #273
	cmp	w8, #0
	csel	w8, w11, w10, eq
	str	w8, [x9, #4]
	ldr	w8, [x19, #12]
Lloh3:
	adrp	x9, _IVTV_HW_CX25840@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IVTV_HW_CX25840@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	mov	w9, #272
	mov	w10, #284
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x19, #32]
LBB0_2:
Lloh6:
	adrp	x8, _video@GOTPAGE
Lloh7:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _s_std@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ivtv_call_all
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_IVTV_HW_CX25840,4,2            ; @IVTV_HW_CX25840
	.comm	_video,4,2                      ; @video
	.comm	_s_std,4,2                      ; @s_std
.subsections_via_symbols
