	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs553x_write_buf
_cs553x_write_buf:                      ## @cs553x_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	xorl	%edi, %edi
	cmpl	$2049, %edx                     ## imm = 0x801
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_memcpy_toio
	addq	$8192, %rbx                     ## imm = 0x2000
	leal	-2048(%r14), %r15d
	xorl	%edi, %edi
	cmpl	$4097, %r14d                    ## imm = 0x1001
	setge	%dil
	callq	_unlikely
	movl	%r15d, %r14d
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %r15d
LBB0_3:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy_toio                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cs553x_write_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs553x_write_buf
_cs553x_write_buf:                      ; @cs553x_write_buf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x22, [x0]
	cmp	w2, #2048
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	mov	w2, #2048
	bl	_memcpy_toio
	add	x19, x19, #2, lsl #12           ; =8192
	sub	w21, w20, #2048
	cmp	w20, #1, lsl #12                ; =4096
	cset	w0, gt
	bl	_unlikely
	mov	x20, x21
	cbnz	x0, LBB0_1
	b	LBB0_3
LBB0_2:
	mov	x21, x20
LBB0_3:
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memcpy_toio
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cs553x_write_buf
.subsections_via_symbols
