	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpg_calc_buffer_line
_tpg_calc_buffer_line:                  ## @tpg_calc_buffer_line
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	addl	8(%rdi), %eax
	cmpl	$129, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_6
## %bb.2:
	testb	$1, %al
	jne	LBB0_5
LBB0_3:
	shrl	%eax
	popq	%rbp
	retq
LBB0_4:
	testb	$1, %al
	jne	LBB0_3
LBB0_5:
	movl	(%rdi), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	shrl	%eax
	addl	%edx, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tpg_calc_buffer_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpg_calc_buffer_line
_tpg_calc_buffer_line:                  ; @tpg_calc_buffer_line
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w9, [x0, #8]
	add	w0, w9, w1
	cmp	w2, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_6
; %bb.2:
	tbnz	w0, #0, LBB0_5
LBB0_3:
	lsr	w0, w0, #1
	ret
LBB0_4:
	tbnz	w0, #0, LBB0_3
LBB0_5:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w0, w8, w0, lsr #1
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tpg_calc_buffer_line
.subsections_via_symbols
