	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flctl_write_buf
_flctl_write_buf:                       ## @flctl_write_buf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_mtd_to_flctl
	movl	(%rax), %ecx
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.1:
	movslq	%ecx, %r8
	movq	8(%rax), %r9
	movl	%r14d, %r11d
	cmpl	$8, %r14d
	jb	LBB0_2
## %bb.3:
	leaq	(%r9,%r8,4), %rcx
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jae	LBB0_5
LBB0_2:
	xorl	%edx, %edx
LBB0_13:
	movq	%rdx, %r10
	notq	%r10
	addq	%r11, %r10
	movq	%r11, %rsi
	andq	$3, %rsi
	je	LBB0_16
## %bb.14:
	leaq	(%r9,%r8,4), %rdi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %ecx
	movl	%ecx, (%rdi,%rdx,4)
	incq	%rdx
	decq	%rsi
	jne	LBB0_15
LBB0_16:
	cmpq	$3, %r10
	jb	LBB0_19
## %bb.17:
	leaq	(%r9,%r8,4), %rcx
	addq	$12, %rcx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %esi
	movl	%esi, -12(%rcx,%rdx,4)
	movl	4(%rbx,%rdx,4), %esi
	movl	%esi, -8(%rcx,%rdx,4)
	movl	8(%rbx,%rdx,4), %esi
	movl	%esi, -4(%rcx,%rdx,4)
	movl	12(%rbx,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r11
	jne	LBB0_18
	jmp	LBB0_19
LBB0_5:
	movl	%r11d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rcx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %r10d
	andl	$3, %r10d
	cmpq	$24, %rcx
	jae	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_7:
	andq	$-4, %rsi
	leaq	(%r9,%r8,4), %rcx
	addq	$112, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rdi,4), %xmm0
	movups	16(%rbx,%rdi,4), %xmm1
	movups	%xmm0, -112(%rcx,%rdi,4)
	movups	%xmm1, -96(%rcx,%rdi,4)
	movups	32(%rbx,%rdi,4), %xmm0
	movups	48(%rbx,%rdi,4), %xmm1
	movups	%xmm0, -80(%rcx,%rdi,4)
	movups	%xmm1, -64(%rcx,%rdi,4)
	movups	64(%rbx,%rdi,4), %xmm0
	movups	80(%rbx,%rdi,4), %xmm1
	movups	%xmm0, -48(%rcx,%rdi,4)
	movups	%xmm1, -32(%rcx,%rdi,4)
	movups	96(%rbx,%rdi,4), %xmm0
	movups	112(%rbx,%rdi,4), %xmm1
	movups	%xmm0, -16(%rcx,%rdi,4)
	movups	%xmm1, (%rcx,%rdi,4)
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_8
LBB0_9:
	testq	%r10, %r10
	je	LBB0_12
## %bb.10:
	leaq	(%rdi,%r8), %rcx
	leaq	(%r9,%rcx,4), %rcx
	addq	$16, %rcx
	leaq	(%rbx,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r10
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rdi), %xmm0
	movups	(%rsi,%rdi), %xmm1
	movups	%xmm0, -16(%rcx,%rdi)
	movups	%xmm1, (%rcx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r10
	jne	LBB0_11
LBB0_12:
	cmpq	%r11, %rdx
	jne	LBB0_13
LBB0_19:
	movl	(%rax), %ecx
LBB0_20:
	addl	%r14d, %ecx
	movl	%ecx, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_flctl_write_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flctl_write_buf
_flctl_write_buf:                       ; @flctl_write_buf
	.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, x2
	mov	x20, x1
	bl	_mtd_to_flctl
	ldr	w8, [x0]
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.1:
	sxtw	x9, w8
	ldr	x10, [x0, #8]
	mov	w8, w19
	cmp	w19, #16
	b.lo	LBB0_3
; %bb.2:
	add	x12, x10, x9, lsl #2
	sub	x11, x12, x20
	cmp	x11, #64
	b.hs	LBB0_8
LBB0_3:
	mov	x11, #0
LBB0_4:
	add	x9, x11, x9
	add	x9, x10, x9, lsl #2
	add	x10, x20, x11, lsl #2
	sub	x8, x8, x11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	str	w11, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_6:
	ldr	w8, [x0]
LBB0_7:
	add	w8, w8, w19
	str	w8, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	and	x11, x8, #0xfffffff0
	add	x12, x12, #32
	add	x13, x20, #32
	mov	x14, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_9
; %bb.10:
	cmp	x11, x8
	b.eq	LBB0_6
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_flctl_write_buf
.subsections_via_symbols
