	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oled_advance_char              ## -- Begin function oled_advance_char
	.p2align	4, 0x90
_oled_advance_char:                     ## @oled_advance_char
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_oled_cursor@GOTPCREL(%rip), %r8
	movq	(%r8), %rcx
	movq	_oled_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	subq	%r9, %rcx
	sarq	$2, %rcx
	movq	_OLED_FONT_WIDTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	%rsi, %rcx
	movq	_oled_rotation_width@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_3
LBB0_1:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	subq	%rdx, %rdi
	xorl	%eax, %eax
	cmpl	%edi, %esi
	movslq	%edi, %rdx
	cmovleq	%rax, %rdx
	addq	%rcx, %rdx
	movq	_OLED_MATRIX_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	cmovaeq	%rax, %rdx
	leaq	(%r9,%rdx,4), %rax
	movq	%rax, (%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_oled_cursor,8,3                ## @oled_cursor
	.comm	_oled_buffer,8,3                ## @oled_buffer
	.comm	_OLED_FONT_WIDTH,4,2            ## @OLED_FONT_WIDTH
	.comm	_oled_rotation_width,8,3        ## @oled_rotation_width
	.comm	_OLED_MATRIX_SIZE,8,3           ## @OLED_MATRIX_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oled_advance_char              ; -- Begin function oled_advance_char
	.p2align	2
_oled_advance_char:                     ; @oled_advance_char
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _oled_cursor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _oled_cursor@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _oled_buffer@GOTPAGE
Lloh3:
	ldr	x10, [x10, _oled_buffer@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	sub	x9, x9, x10
Lloh5:
	adrp	x11, _OLED_FONT_WIDTH@GOTPAGE
Lloh6:
	ldr	x11, [x11, _OLED_FONT_WIDTH@GOTPAGEOFF]
Lloh7:
	ldrsw	x11, [x11]
	add	x9, x11, x9, asr #2
Lloh8:
	adrp	x12, _oled_rotation_width@GOTPAGE
Lloh9:
	ldr	x12, [x12, _oled_rotation_width@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
	udiv	x13, x9, x12
	neg	x14, x9
	madd	x13, x13, x12, x14
	add	x12, x12, x13
	cmp	w11, w12
	sxtw	x11, w12
	csel	x11, x11, xzr, gt
Lloh11:
	adrp	x12, _OLED_MATRIX_SIZE@GOTPAGE
Lloh12:
	ldr	x12, [x12, _OLED_MATRIX_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x12, [x12]
	add	x9, x11, x9
	cmp	x9, x12
	csel	x9, x9, xzr, lo
	add	x9, x10, x9, lsl #2
	str	x9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_oled_cursor,8,3                ; @oled_cursor
	.comm	_oled_buffer,8,3                ; @oled_buffer
	.comm	_OLED_FONT_WIDTH,4,2            ; @OLED_FONT_WIDTH
	.comm	_oled_rotation_width,8,3        ; @oled_rotation_width
	.comm	_OLED_MATRIX_SIZE,8,3           ; @OLED_MATRIX_SIZE
.subsections_via_symbols
