	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oled_set_cursor                ## -- Begin function oled_set_cursor
	.p2align	4, 0x90
_oled_set_cursor:                       ## @oled_set_cursor
	.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_rotation_width@GOTPCREL(%rip), %rax
	imulq	(%rax), %rsi
	movq	_OLED_FONT_WIDTH@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdi
	addq	%rsi, %rdi
	movq	_OLED_MATRIX_SIZE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	(%rax), %rdi
	cmovbq	%rdi, %rcx
	movq	_oled_buffer@GOTPCREL(%rip), %rax
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	_oled_cursor@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_oled_rotation_width,8,3        ## @oled_rotation_width
	.comm	_OLED_FONT_WIDTH,8,3            ## @OLED_FONT_WIDTH
	.comm	_OLED_MATRIX_SIZE,8,3           ## @OLED_MATRIX_SIZE
	.comm	_oled_buffer,8,3                ## @oled_buffer
	.comm	_oled_cursor,8,3                ## @oled_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oled_set_cursor                ; -- Begin function oled_set_cursor
	.p2align	2
_oled_set_cursor:                       ; @oled_set_cursor
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _oled_rotation_width@GOTPAGE
Lloh1:
	ldr	x8, [x8, _oled_rotation_width@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mul	x8, x8, x1
Lloh3:
	adrp	x9, _OLED_FONT_WIDTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OLED_FONT_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	madd	x8, x9, x0, x8
Lloh6:
	adrp	x9, _OLED_MATRIX_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OLED_MATRIX_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _oled_buffer@GOTPAGE
Lloh10:
	ldr	x10, [x10, _oled_buffer@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x8, xzr, lo
Lloh11:
	ldr	x9, [x10]
	add	x8, x9, x8, lsl #2
Lloh12:
	adrp	x9, _oled_cursor@GOTPAGE
Lloh13:
	ldr	x9, [x9, _oled_cursor@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
	ret
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_oled_rotation_width,8,3        ; @oled_rotation_width
	.comm	_OLED_FONT_WIDTH,8,3            ; @OLED_FONT_WIDTH
	.comm	_OLED_MATRIX_SIZE,8,3           ; @OLED_MATRIX_SIZE
	.comm	_oled_buffer,8,3                ; @oled_buffer
	.comm	_oled_cursor,8,3                ; @oled_cursor
.subsections_via_symbols
