	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa711x_g_sliced_fmt
_saa711x_g_sliced_fmt:                  ## @saa711x_g_sliced_fmt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	$0, 8(%r15)
	movq	_R_80_GLOBAL_CNTL_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_saa711x_read
	testb	$16, %al
	jne	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_R_41_LCR_BASE@GOTPCREL(%rip), %r12
	leaq	_saa711x_g_sliced_fmt.lcr2vbi(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_saa711x_read
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	movl	(%r13,%rcx,8), %ecx
	movq	(%r15), %rdx
	movq	(%rdx), %rsi
	movl	%ecx, 8(%rsi,%rbx,4)
	andl	$15, %eax
	movl	(%r13,%rax,8), %eax
	movq	8(%rdx), %rcx
	movl	%eax, 8(%rcx,%rbx,4)
	orl	8(%rsi,%rbx,4), %eax
	orl	%eax, 8(%r15)
	incq	%rbx
	cmpq	$22, %rbx
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @saa711x_g_sliced_fmt.lcr2vbi
_saa711x_g_sliced_fmt.lcr2vbi:
	.quad	0
	.quad	130
	.quad	0
	.quad	0
	.quad	131
	.quad	128
	.quad	0
	.quad	129
	.space	64

	.comm	_R_80_GLOBAL_CNTL_1,8,3         ## @R_80_GLOBAL_CNTL_1
	.comm	_R_41_LCR_BASE,8,3              ## @R_41_LCR_BASE
	.no_dead_strip	_saa711x_g_sliced_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa711x_g_sliced_fmt
_saa711x_g_sliced_fmt:                  ; @saa711x_g_sliced_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	wzr, [x19, #8]
Lloh0:
	adrp	x8, _R_80_GLOBAL_CNTL_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_80_GLOBAL_CNTL_1@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_saa711x_read
	tbnz	w0, #4, LBB0_3
; %bb.1:
	mov	w21, #2
Lloh3:
	adrp	x22, _R_41_LCR_BASE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _R_41_LCR_BASE@GOTPAGEOFF]
Lloh5:
	adrp	x23, _saa711x_g_sliced_fmt.lcr2vbi@PAGE
Lloh6:
	add	x23, x23, _saa711x_g_sliced_fmt.lcr2vbi@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x21, x8
	sub	x1, x8, #2
	mov	x0, x20
	bl	_saa711x_read
	asr	w8, w0, #4
	ldr	x8, [x23, w8, sxtw #3]
	ldr	x9, [x19]
	lsl	x10, x21, #2
	ldp	x11, x9, [x9]
	str	w8, [x11, x10]
	and	w8, w0, #0xf
	ldr	x8, [x23, w8, uxtw #3]
	str	w8, [x9, x10]
	ldr	w9, [x11, x10]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	add	x21, x21, #1
	cmp	x21, #24
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @saa711x_g_sliced_fmt.lcr2vbi
_saa711x_g_sliced_fmt.lcr2vbi:
	.quad	0
	.quad	130
	.quad	0
	.quad	0
	.quad	131
	.quad	128
	.quad	0
	.quad	129
	.space	64

	.comm	_R_80_GLOBAL_CNTL_1,8,3         ; @R_80_GLOBAL_CNTL_1
	.comm	_R_41_LCR_BASE,8,3              ; @R_41_LCR_BASE
	.no_dead_strip	_saa711x_g_sliced_fmt
.subsections_via_symbols
