	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp2_get_lines_per_chunk      ## -- Begin function hubp2_get_lines_per_chunk
	.p2align	4, 0x90
_hubp2_get_lines_per_chunk:             ## @hubp2_get_lines_per_chunk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	movq	_CURSOR_LINE_PER_CHUNK_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CURSOR_MODE_MONO@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_19
## %bb.1:
	movq	_CURSOR_MODE_COLOR_1BIT_AND@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_4
## %bb.11:
	movq	_CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	setne	%cl
	movq	_CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	setne	%dl
	leal	-1(%rdi), %esi
	cmpl	$16, %esi
	jb	LBB0_19
## %bb.12:
	andb	%dl, %cl
	jne	LBB0_19
## %bb.13:
	leal	-17(%rdi), %ecx
	cmpl	$15, %ecx
	jbe	LBB0_6
## %bb.14:
	leal	-33(%rdi), %ecx
	cmpl	$31, %ecx
	jbe	LBB0_8
## %bb.15:
	leal	-65(%rdi), %ecx
	cmpl	$63, %ecx
	jbe	LBB0_10
## %bb.16:
	addl	$-129, %edi
	cmpl	$128, %edi
	jae	LBB0_19
## %bb.17:
	movq	_CURSOR_LINE_PER_CHUNK_1@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_4:
	leal	-1(%rdi), %ecx
	cmpl	$32, %ecx
	jb	LBB0_19
## %bb.5:
	leal	-33(%rdi), %ecx
	cmpl	$31, %ecx
	ja	LBB0_7
LBB0_6:
	movq	_CURSOR_LINE_PER_CHUNK_8@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_7:
	leal	-65(%rdi), %ecx
	cmpl	$63, %ecx
	ja	LBB0_9
LBB0_8:
	movq	_CURSOR_LINE_PER_CHUNK_4@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_9:
	addl	$-129, %edi
	cmpl	$128, %edi
	jae	LBB0_19
LBB0_10:
	movq	_CURSOR_LINE_PER_CHUNK_2@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURSOR_LINE_PER_CHUNK_16,4,2   ## @CURSOR_LINE_PER_CHUNK_16
	.comm	_CURSOR_MODE_MONO,4,2           ## @CURSOR_MODE_MONO
	.comm	_CURSOR_MODE_COLOR_1BIT_AND,4,2 ## @CURSOR_MODE_COLOR_1BIT_AND
	.comm	_CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA,4,2 ## @CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA
	.comm	_CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA,4,2 ## @CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA
	.comm	_CURSOR_LINE_PER_CHUNK_8,4,2    ## @CURSOR_LINE_PER_CHUNK_8
	.comm	_CURSOR_LINE_PER_CHUNK_4,4,2    ## @CURSOR_LINE_PER_CHUNK_4
	.comm	_CURSOR_LINE_PER_CHUNK_2,4,2    ## @CURSOR_LINE_PER_CHUNK_2
	.comm	_CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED,4,2 ## @CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED
	.comm	_CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED,4,2 ## @CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED
	.comm	_CURSOR_LINE_PER_CHUNK_1,4,2    ## @CURSOR_LINE_PER_CHUNK_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp2_get_lines_per_chunk      ; -- Begin function hubp2_get_lines_per_chunk
	.p2align	2
_hubp2_get_lines_per_chunk:             ; @hubp2_get_lines_per_chunk
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _CURSOR_LINE_PER_CHUNK_16@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CURSOR_LINE_PER_CHUNK_16@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _CURSOR_MODE_MONO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CURSOR_MODE_MONO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w1
	b.eq	LBB0_16
; %bb.1:
Lloh6:
	adrp	x9, _CURSOR_MODE_COLOR_1BIT_AND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CURSOR_MODE_COLOR_1BIT_AND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA@GOTPAGE
Lloh13:
	ldr	x11, [x11, _CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	w9, w1
	ccmp	w10, w1, #4, ne
	ccmp	w11, w1, #4, ne
	b.ne	LBB0_6
; %bb.2:
	sub	w9, w8, #1
	cmp	w9, #32
	b.lo	LBB0_16
; %bb.3:
	sub	w9, w8, #33
	cmp	w9, #31
	b.ls	LBB0_9
; %bb.4:
	sub	w9, w8, #65
	cmp	w9, #63
	b.ls	LBB0_11
; %bb.5:
	sub	w8, w8, #129
Lloh15:
	adrp	x9, _CURSOR_LINE_PER_CHUNK_2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CURSOR_LINE_PER_CHUNK_2@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh17:
	adrp	x9, _CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED@GOTPAGEOFF]
	cmp	w9, w1
Lloh22:
	ldr	w9, [x10]
	ccmp	w9, w1, #4, ne
	cset	w9, ne
	sub	w10, w8, #1
	cmp	w10, #16
	b.lo	LBB0_16
; %bb.7:
	tbnz	w9, #0, LBB0_16
; %bb.8:
	sub	w9, w8, #17
	cmp	w9, #15
	b.hi	LBB0_10
LBB0_9:
Lloh23:
	adrp	x8, _CURSOR_LINE_PER_CHUNK_8@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CURSOR_LINE_PER_CHUNK_8@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ret
LBB0_10:
	sub	w9, w8, #33
	cmp	w9, #31
	b.hi	LBB0_12
LBB0_11:
Lloh26:
	adrp	x8, _CURSOR_LINE_PER_CHUNK_4@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CURSOR_LINE_PER_CHUNK_4@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ret
LBB0_12:
	sub	w9, w8, #65
	cmp	w9, #63
	b.hi	LBB0_14
; %bb.13:
Lloh29:
	adrp	x8, _CURSOR_LINE_PER_CHUNK_2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CURSOR_LINE_PER_CHUNK_2@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ret
LBB0_14:
	sub	w8, w8, #129
Lloh32:
	adrp	x9, _CURSOR_LINE_PER_CHUNK_1@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CURSOR_LINE_PER_CHUNK_1@GOTPAGEOFF]
LBB0_15:
	ldr	w9, [x9]
	cmp	w8, #128
	csel	w0, w9, w0, lo
LBB0_16:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_LINE_PER_CHUNK_16,4,2   ; @CURSOR_LINE_PER_CHUNK_16
	.comm	_CURSOR_MODE_MONO,4,2           ; @CURSOR_MODE_MONO
	.comm	_CURSOR_MODE_COLOR_1BIT_AND,4,2 ; @CURSOR_MODE_COLOR_1BIT_AND
	.comm	_CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA,4,2 ; @CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA
	.comm	_CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA,4,2 ; @CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA
	.comm	_CURSOR_LINE_PER_CHUNK_8,4,2    ; @CURSOR_LINE_PER_CHUNK_8
	.comm	_CURSOR_LINE_PER_CHUNK_4,4,2    ; @CURSOR_LINE_PER_CHUNK_4
	.comm	_CURSOR_LINE_PER_CHUNK_2,4,2    ; @CURSOR_LINE_PER_CHUNK_2
	.comm	_CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED,4,2 ; @CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED
	.comm	_CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED,4,2 ; @CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED
	.comm	_CURSOR_LINE_PER_CHUNK_1,4,2    ; @CURSOR_LINE_PER_CHUNK_1
.subsections_via_symbols
