	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_overlay_risc              ## -- Begin function bttv_overlay_risc
	.p2align	4, 0x90
_bttv_overlay_risc:                     ## @bttv_overlay_risc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movq	_v4l2_field_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %ecx
	movl	16(%r13), %r9d
	movl	20(%r13), %r8d
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	leaq	28(%r14), %rbx
	movl	20(%r13), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	movl	16(%r13), %r12d
	callq	_V4L2_FIELD_HAS_BOTH
	movq	_bttv_tvnorms@GOTPCREL(%rip), %rcx
	movq	8(%r13), %r9
	shlq	$2, %r9
	addq	(%rcx), %r9
	leaq	24(%r14), %rcx
	movq	%rcx, (%rsp)
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_bttv_calc_geo
	movl	(%r13), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$128, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_8
## %bb.3:
	leaq	20(%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_6:
	leaq	16(%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_4:
	movq	%r15, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	jmp	LBB0_5
LBB0_7:
	leaq	20(%r14), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_bttv_risc_overlay
	leaq	16(%r14), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	$1, %r8d
LBB0_5:
	xorl	%r9d, %r9d
	callq	_bttv_risc_overlay
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	callq	_BUG
LBB0_9:
	movl	4(%r15), %eax
	movl	%eax, 12(%r14)
	movl	(%r15), %eax
	movl	%eax, 8(%r14)
	movslq	(%r13), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: overlay fields: %s format: 0x%08x  size: %dx%d\n"

	.comm	_v4l2_field_names,8,3           ## @v4l2_field_names
	.comm	_bttv_tvnorms,8,3               ## @bttv_tvnorms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_overlay_risc              ; -- Begin function bttv_overlay_risc
	.p2align	2
_bttv_overlay_risc:                     ; @bttv_overlay_risc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _v4l2_field_names@GOTPAGE
Lloh1:
	ldr	x8, [x8, _v4l2_field_names@GOTPAGEOFF]
	mov	x23, x3
	ldr	x9, [x23], #24
Lloh2:
	ldr	x8, [x8]
	ldr	w2, [x8, x9, lsl #2]
	ldr	w3, [x21, #8]
	ldp	w5, w4, [x20, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	add	x24, x19, #28
	ldp	w26, w25, [x20, #16]
	ldr	w0, [x20]
	bl	_V4L2_FIELD_HAS_BOTH
	mov	x4, x0
Lloh5:
	adrp	x8, _bttv_tvnorms@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bttv_tvnorms@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	add	x5, x8, x9, lsl #2
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	x6, x23
	bl	_bttv_calc_geo
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
	add	x1, x19, #20
	b	LBB0_5
LBB0_4:
	add	x1, x19, #16
LBB0_5:
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	b	LBB0_7
LBB0_6:
	add	x1, x19, #20
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	mov	w5, #1
	bl	_bttv_risc_overlay
	add	x1, x19, #16
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	w4, #1
LBB0_7:
	mov	w5, #0
	bl	_bttv_risc_overlay
	b	LBB0_9
LBB0_8:
	bl	_BUG
LBB0_9:
	ldr	d0, [x21]
	str	d0, [x19, #8]
	ldrsw	x8, [x20]
	str	x8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: overlay fields: %s format: 0x%08x  size: %dx%d\n"

	.comm	_v4l2_field_names,8,3           ; @v4l2_field_names
	.comm	_bttv_tvnorms,8,3               ; @bttv_tvnorms
.subsections_via_symbols
