	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_copy_field
_cxusb_medion_copy_field:               ## @cxusb_medion_copy_field
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	cmpl	%r8d, (%rdx)
	jae	LBB0_14
## %bb.1:
	movl	%ecx, %r14d
	movq	%rsi, %r13
	leaq	-45(%rbp), %r15
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rsi
	movq	%r13, %rdi
	leaq	-41(%rbp), %rdx
	movl	$1, %ecx
	callq	_cxusb_auxbuf_copy
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-41(%rbp), %eax
	movq	_CXUSB_BT656_PREAMBLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	%al, -45(%rbp)
	movq	8(%rbx), %rsi
	incq	%rsi
	movq	%r13, %rdi
	leaq	-44(%rbp), %rdx
	movl	$3, %ecx
	callq	_cxusb_auxbuf_copy
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-44(%rbp), %ecx
	movq	_CXUSB_BT656_PREAMBLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpb	1(%rax), %cl
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-43(%rbp), %ecx
	cmpb	2(%rax), %cl
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movq	%r15, %r9
	callq	_cxusb_medion_cf_refc_fld_chg
	testq	%rax, %rax
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	leaq	-45(%rbp), %r9
	callq	_cxusb_medion_cf_ref_code
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, 8(%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-41(%rbp), %eax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movzbl	%al, %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_cxusb_medion_copy_samples
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rbx)
	jb	LBB0_2
LBB0_14:
	movl	(%rbx), %r8d
	movl	$1, %eax
	cmpl	-56(%rbp), %r8d                 ## 4-byte Folded Reload
	jae	LBB0_17
## %bb.15:
	movq	_BT656@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_cxusb_vprintk
	xorl	%eax, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	$1, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_CXUSB_BT656_PREAMBLE,8,3       ## @CXUSB_BT656_PREAMBLE
	.comm	_BT656,4,2                      ## @BT656
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"end of buffer pos = %u, line = %u\n"

	.no_dead_strip	_cxusb_medion_copy_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_copy_field
_cxusb_medion_copy_field:               ; @cxusb_medion_copy_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x4
	mov	x20, x2
	mov	x19, x0
	ldr	w8, [x2]
	cmp	w8, w4
	b.hs	LBB0_13
; %bb.1:
	mov	x22, x5
	mov	x23, x3
	mov	x24, x1
	add	x8, sp, #11
	add	x25, x8, #1
Lloh0:
	adrp	x26, _CXUSB_BT656_PREAMBLE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CXUSB_BT656_PREAMBLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20, #8]
	add	x2, sp, #15
	mov	x0, x24
	mov	w3, #1
	bl	_cxusb_auxbuf_copy
	cbz	w0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w4, [sp, #15]
	ldr	x8, [x26]
	ldrb	w8, [x8]
	cmp	w4, w8
	b.ne	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w4, [sp, #11]
	ldr	x8, [x20, #8]
	add	x1, x8, #1
	mov	x0, x24
	mov	x2, x25
	mov	w3, #3
	bl	_cxusb_auxbuf_copy
	cbz	w0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [sp, #12]
	ldr	x8, [x26]
	ldrb	w10, [x8, #1]
	cmp	w9, w10
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [sp, #13]
	ldrb	w8, [x8, #2]
	cmp	w9, w8
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x5, sp, #11
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	mov	x4, x22
	bl	_cxusb_medion_cf_refc_fld_chg
	cbnz	x0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x5, sp, #11
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	mov	x4, x22
	bl	_cxusb_medion_cf_ref_code
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, #4
	str	x8, [x20, #8]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w4, [sp, #15]
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	mov	x3, x22
	bl	_cxusb_medion_copy_samples
	cbz	w0, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	cmp	w8, w21
	b.lo	LBB0_2
LBB0_13:
	ldr	w4, [x20]
	cmp	w4, w21
	b.hs	LBB0_15
; %bb.14:
Lloh2:
	adrp	x8, _BT656@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BT656@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x3, [x20, #8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_cxusb_vprintk
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	mov	w0, #1
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CXUSB_BT656_PREAMBLE,8,3       ; @CXUSB_BT656_PREAMBLE
	.comm	_BT656,4,2                      ; @BT656
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"end of buffer pos = %u, line = %u\n"

	.no_dead_strip	_cxusb_medion_copy_field
.subsections_via_symbols
