	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_bounds_90
_calc_bounds_90:                        ## @calc_bounds_90
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movq	_OLED_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	imull	%edi, %eax
	movq	_OLED_DISPLAY_HEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r8d
	leal	(,%r8,8), %eax
	movl	%eax, 4(%rsi)
	movl	%edx, 16(%rsi)
	leal	(%rdi,%rcx), %eax
	decl	%eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
	shll	$3, %eax
	leal	(%rax,%r8,8), %eax
	decl	%eax
	movl	%eax, 8(%rsi)
	leal	7(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$3, %eax
	movl	%eax, 20(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OLED_BLOCK_SIZE,4,2            ## @OLED_BLOCK_SIZE
	.comm	_OLED_DISPLAY_HEIGHT,4,2        ## @OLED_DISPLAY_HEIGHT
	.no_dead_strip	_calc_bounds_90
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_bounds_90
_calc_bounds_90:                        ; @calc_bounds_90
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _OLED_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OLED_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w9, w8, w0
Lloh3:
	adrp	x10, _OLED_DISPLAY_HEIGHT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OLED_DISPLAY_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	lsl	w12, w11, #3
	msub	w9, w11, w10, w9
	add	w8, w8, w10
	sub	w8, w8, #1
	sdiv	w11, w8, w10
	add	w13, w12, w11, lsl #3
	sub	w13, w13, #1
	stp	w12, w13, [x1, #4]
	msub	w8, w11, w10, w8
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #3
	stp	w9, w8, [x1, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OLED_BLOCK_SIZE,4,2            ; @OLED_BLOCK_SIZE
	.comm	_OLED_DISPLAY_HEIGHT,4,2        ; @OLED_DISPLAY_HEIGHT
	.no_dead_strip	_calc_bounds_90
.subsections_via_symbols
