	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_cf_refc_fld_chg
_cxusb_medion_cf_refc_fld_chg:          ## @cxusb_medion_cf_refc_fld_chg
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	(%rsi), %r8d
	xorl	%r14d, %r14d
	testl	%r8d, %r8d
	je	LBB0_10
## %bb.1:
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	_CXUSB_BT656_FIELD_MASK@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	andb	3(%r9), %al
	movq	_CXUSB_BT656_FIELD_1@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	cmpb	(%rsi), %al
	sete	%dl
	cmpl	%r13d, %edx
	je	LBB0_10
## %bb.2:
	movq	8(%rbx), %rax
	movq	_LINE_SAMPLES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.3:
	movl	16(%rbx), %r14d
	movq	_BT656@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	sete	%r15b
	movl	%r15d, %ecx
	addl	$49, %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_cxusb_vprintk
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movl	%r14d, %eax
	cmpl	%r12d, %r14d
	je	LBB0_6
## %bb.5:
	addb	$49, %r15b
	movl	%r12d, %r14d
	subl	%eax, %r14d
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	addq	%r14, 24(%rbx)
	movq	_BT656@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	movl	%r12d, (%rsp)
	movzbl	%r15b, %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_cxusb_vprintk
LBB0_6:
	movl	(%rbx), %r8d
	incl	%r8d
	movl	%r8d, (%rbx)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_7:
	movq	24(%rbx), %rdi
	movl	$1, %r14d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:
	cmpl	%ecx, %r8d
	je	LBB0_10
## %bb.9:
	movl	%ecx, %r15d
	subl	%r8d, %r15d
	imull	%r15d, %r12d
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	addq	%r12, 24(%rbx)
	movq	_BT656@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$1, %r13d
	movl	$0, %ecx
	adcl	$49, %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_cxusb_vprintk
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXUSB_BT656_FIELD_MASK,1,0     ## @CXUSB_BT656_FIELD_MASK
	.comm	_CXUSB_BT656_FIELD_1,1,0        ## @CXUSB_BT656_FIELD_1
	.comm	_LINE_SAMPLES,8,3               ## @LINE_SAMPLES
	.comm	_BT656,4,2                      ## @BT656
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"field %c after line %u field change\n"

L_.str.1:                               ## @.str.1
	.asciz	"field %c line %u %u samples still remaining (of %u)\n"

L_.str.2:                               ## @.str.2
	.asciz	"field %c %u lines still remaining (of %u)\n"

	.no_dead_strip	_cxusb_medion_cf_refc_fld_chg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_cf_refc_fld_chg
_cxusb_medion_cf_refc_fld_chg:          ; @cxusb_medion_cf_refc_fld_chg
	.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	x23, x4
	ldr	w4, [x1]
	cbz	w4, LBB0_2
; %bb.1:
	mov	x20, x2
	ldrb	w8, [x5, #3]
Lloh0:
	adrp	x9, _CXUSB_BT656_FIELD_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXUSB_BT656_FIELD_MASK@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w8, w9, w8
Lloh2:
	adrp	x9, _CXUSB_BT656_FIELD_1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CXUSB_BT656_FIELD_1@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	cset	w8, eq
	cmp	w8, w2
	b.ne	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
	mov	x21, x3
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
Lloh4:
	adrp	x9, _LINE_SAMPLES@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LINE_SAMPLES@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	w25, [x22, #16]
Lloh7:
	adrp	x26, _BT656@GOTPAGE
Lloh8:
	ldr	x26, [x26, _BT656@GOTPAGEOFF]
	ldr	w1, [x26]
	cmp	w20, #0
	mov	w8, #49
	cinc	w24, w8, eq
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	bl	_cxusb_vprintk
	ldr	x0, [x22, #24]
	cbz	x0, LBB0_8
; %bb.6:
	cmp	w25, w23
	b.eq	LBB0_8
; %bb.7:
	sub	w25, w23, w25
	mov	w1, #0
	mov	x2, x25
	bl	_memset
	ldr	x8, [x22, #24]
	add	x8, x8, x25
	str	x8, [x22, #24]
	ldr	w1, [x26]
	ldr	w4, [x22]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x25, x23, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	sxtb	w3, w24
	mov	x0, x19
	bl	_cxusb_vprintk
LBB0_8:
	ldr	w8, [x22]
	add	w4, w8, #1
	str	w4, [x22]
LBB0_9:
	ldr	x8, [x22, #24]
	mov	w0, #1
	cbz	x8, LBB0_3
; %bb.10:
	cmp	w4, w21
	b.eq	LBB0_3
; %bb.11:
	sub	w24, w21, w4
	mul	w23, w24, w23
	mov	x0, x8
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldr	x8, [x22, #24]
	add	x8, x8, x23
	str	x8, [x22, #24]
Lloh13:
	adrp	x8, _BT656@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BT656@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	str	x21, [sp]
	cmp	w20, #0
	mov	w8, #49
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	cinc	w3, w8, eq
	mov	x0, x19
	mov	x4, x24
	bl	_cxusb_vprintk
	mov	w0, #1
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CXUSB_BT656_FIELD_MASK,1,0     ; @CXUSB_BT656_FIELD_MASK
	.comm	_CXUSB_BT656_FIELD_1,1,0        ; @CXUSB_BT656_FIELD_1
	.comm	_LINE_SAMPLES,8,3               ; @LINE_SAMPLES
	.comm	_BT656,4,2                      ; @BT656
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"field %c after line %u field change\n"

l_.str.1:                               ; @.str.1
	.asciz	"field %c line %u %u samples still remaining (of %u)\n"

l_.str.2:                               ; @.str.2
	.asciz	"field %c %u lines still remaining (of %u)\n"

	.no_dead_strip	_cxusb_medion_cf_refc_fld_chg
.subsections_via_symbols
