	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_buff_char_pos            ## -- Begin function write_buff_char_pos
	.p2align	4, 0x90
_write_buff_char_pos:                   ## @write_buff_char_pos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_cur_buff_len@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_result_buff_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	cmpl	%esi, %eax
	cmovlel	%eax, %ecx
	movq	_buff@GOTPCREL(%rip), %rax
	cmovgq	_result_buff@GOTPCREL(%rip), %rax
	subl	%ecx, %esi
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movb	%dil, (%rax,%rcx)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cur_buff_len,4,2               ## @cur_buff_len
	.comm	_result_buff_pos,4,2            ## @result_buff_pos
	.comm	_buff,8,3                       ## @buff
	.comm	_result_buff,8,3                ## @result_buff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_buff_char_pos            ; -- Begin function write_buff_char_pos
	.p2align	2
_write_buff_char_pos:                   ; @write_buff_char_pos
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _cur_buff_len@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cur_buff_len@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _result_buff_pos@GOTPAGE
Lloh4:
	ldr	x8, [x8, _result_buff_pos@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _result_buff@GOTPAGE
Lloh7:
	ldr	x9, [x9, _result_buff@GOTPAGEOFF]
Lloh8:
	adrp	x10, _buff@GOTPAGE
Lloh9:
	ldr	x10, [x10, _buff@GOTPAGEOFF]
	cmp	w8, w1
	csel	w8, wzr, w8, gt
	csel	x9, x9, x10, gt
	sub	w8, w1, w8
	ldr	x9, [x9]
	strb	w0, [x9, w8, sxtw]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_buff_len,4,2               ; @cur_buff_len
	.comm	_result_buff_pos,4,2            ; @result_buff_pos
	.comm	_buff,8,3                       ; @buff
	.comm	_result_buff,8,3                ; @result_buff
.subsections_via_symbols
