	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs690_line_buffer_adjust       ## -- Begin function rs690_line_buffer_adjust
	.p2align	4, 0x90
_rs690_line_buffer_adjust:              ## @rs690_line_buffer_adjust
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_R_006520_DC_LB_MEMORY_SPLIT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32
	movq	_C_006520_DC_LB_MEMORY_SPLIT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_C_006520_DC_LB_MEMORY_SPLIT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	testq	%r15, %r15
	je	LBB0_10
## %bb.2:
	movl	(%rbx), %ecx
	movl	(%r15), %eax
	cmpl	%eax, %ecx
	jle	LBB0_5
## %bb.3:
	cmpl	$2561, %ecx                     ## imm = 0xA01
	jl	LBB0_6
## %bb.4:
	movq	_V_006520_DC_LB_MEMORY_SPLIT_D1_3Q_D2_1Q@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:
	movq	_V_006520_DC_LB_MEMORY_SPLIT_D1_ONLY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	jge	LBB0_6
## %bb.8:
	cmpl	$2561, %eax                     ## imm = 0xA01
	jl	LBB0_6
## %bb.9:
	movq	_V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_V_006520_DC_LB_MEMORY_SPLIT_D1HALF_D2HALF@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %esi
	movl	(%r12), %edi
	callq	_WREG32
	movl	4(%rbx), %esi
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_DIV_ROUND_UP
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	testq	%r15, %r15
	je	LBB0_17
LBB0_16:
	movl	4(%r15), %esi
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_DIV_ROUND_UP
	movq	(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movq	_V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	orl	%esi, %eax
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_WREG32
	testq	%r15, %r15
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_R_006520_DC_LB_MEMORY_SPLIT,4,2 ## @R_006520_DC_LB_MEMORY_SPLIT
	.comm	_C_006520_DC_LB_MEMORY_SPLIT,4,2 ## @C_006520_DC_LB_MEMORY_SPLIT
	.comm	_C_006520_DC_LB_MEMORY_SPLIT_MODE,4,2 ## @C_006520_DC_LB_MEMORY_SPLIT_MODE
	.comm	_V_006520_DC_LB_MEMORY_SPLIT_D1_3Q_D2_1Q,4,2 ## @V_006520_DC_LB_MEMORY_SPLIT_D1_3Q_D2_1Q
	.comm	_V_006520_DC_LB_MEMORY_SPLIT_D1HALF_D2HALF,4,2 ## @V_006520_DC_LB_MEMORY_SPLIT_D1HALF_D2HALF
	.comm	_V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q,4,2 ## @V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q
	.comm	_V_006520_DC_LB_MEMORY_SPLIT_D1_ONLY,4,2 ## @V_006520_DC_LB_MEMORY_SPLIT_D1_ONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs690_line_buffer_adjust       ; -- Begin function rs690_line_buffer_adjust
	.p2align	2
_rs690_line_buffer_adjust:              ; @rs690_line_buffer_adjust
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _R_006520_DC_LB_MEMORY_SPLIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _R_006520_DC_LB_MEMORY_SPLIT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32
Lloh2:
	adrp	x8, _C_006520_DC_LB_MEMORY_SPLIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _C_006520_DC_LB_MEMORY_SPLIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh5:
	adrp	x9, _C_006520_DC_LB_MEMORY_SPLIT_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _C_006520_DC_LB_MEMORY_SPLIT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w8, w8, w9
	cbz	x21, LBB0_3
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w9, [x21]
	ldr	w10, [x20]
Lloh8:
	adrp	x11, _V_006520_DC_LB_MEMORY_SPLIT_D1HALF_D2HALF@GOTPAGE
Lloh9:
	ldr	x11, [x11, _V_006520_DC_LB_MEMORY_SPLIT_D1HALF_D2HALF@GOTPAGEOFF]
Lloh10:
	adrp	x12, _V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q@GOTPAGE
Lloh11:
	ldr	x12, [x12, _V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q@GOTPAGEOFF]
	cmp	w10, #2560
	csel	x12, x12, x11, gt
	cmp	w10, w9
	csel	x12, x11, x12, le
Lloh12:
	adrp	x13, _V_006520_DC_LB_MEMORY_SPLIT_D1_3Q_D2_1Q@GOTPAGE
Lloh13:
	ldr	x13, [x13, _V_006520_DC_LB_MEMORY_SPLIT_D1_3Q_D2_1Q@GOTPAGEOFF]
	cmp	w9, #2560
	csel	x11, x13, x11, gt
	cmp	w9, w10
	csel	x9, x12, x11, le
	b	LBB0_5
LBB0_3:
	cbz	x21, LBB0_8
; %bb.4:
Lloh14:
	adrp	x9, _V_006520_DC_LB_MEMORY_SPLIT_D1_ONLY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V_006520_DC_LB_MEMORY_SPLIT_D1_ONLY@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w0, [x22]
	bl	_WREG32
	ldr	w1, [x21, #4]
	mov	w0, #8192
	bl	_DIV_ROUND_UP
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x0, [x8]
	cbz	x20, LBB0_7
LBB0_6:
	ldr	w1, [x20, #4]
	mov	w0, #8192
	bl	_DIV_ROUND_UP
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	str	x0, [x8]
LBB0_7:
	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
	ret
LBB0_8:
Lloh16:
	adrp	x9, _V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	x20, #0
	csel	w9, w9, wzr, ne
	orr	w1, w9, w8
	ldr	w0, [x22]
	bl	_WREG32
	cbnz	x20, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_R_006520_DC_LB_MEMORY_SPLIT,4,2 ; @R_006520_DC_LB_MEMORY_SPLIT
	.comm	_C_006520_DC_LB_MEMORY_SPLIT,4,2 ; @C_006520_DC_LB_MEMORY_SPLIT
	.comm	_C_006520_DC_LB_MEMORY_SPLIT_MODE,4,2 ; @C_006520_DC_LB_MEMORY_SPLIT_MODE
	.comm	_V_006520_DC_LB_MEMORY_SPLIT_D1_3Q_D2_1Q,4,2 ; @V_006520_DC_LB_MEMORY_SPLIT_D1_3Q_D2_1Q
	.comm	_V_006520_DC_LB_MEMORY_SPLIT_D1HALF_D2HALF,4,2 ; @V_006520_DC_LB_MEMORY_SPLIT_D1HALF_D2HALF
	.comm	_V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q,4,2 ; @V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q
	.comm	_V_006520_DC_LB_MEMORY_SPLIT_D1_ONLY,4,2 ; @V_006520_DC_LB_MEMORY_SPLIT_D1_ONLY
.subsections_via_symbols
