	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_lowest_part_y
_get_lowest_part_y:                     ## @get_lowest_part_y
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rbp), %r14
	movl	(%rsi), %r12d
	movq	%rsi, %rdi
	callq	_MB_FIELD
	movl	%eax, %ecx
	sarl	%cl, %r12d
	shll	$4, %r12d
	addl	%r15d, %r12d
	cmpl	$0, 16(%rbp)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r15
	je	LBB0_6
## %bb.1:
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	(%rax), %rax
	movq	_scan8@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%r15,8), %rdx
	movslq	(%rax,%rdx,4), %rbx
	movq	(%rcx), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_3
## %bb.2:
	movl	(%rax,%rcx), %eax
	andl	$3, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_3:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_get_lowest_part_list_y
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14,%rbx,8), %rdi
	testq	%rdi, %rdi
	jns	LBB0_5
## %bb.4:
	movq	32(%rbp), %rcx
	incl	(%rcx)
LBB0_5:
	movl	%eax, %esi
	callq	_FFMAX
	movq	%rax, (%r14,%rbx,8)
	movq	32(%rbp), %r14
LBB0_6:
	cmpl	$0, 24(%rbp)
	je	LBB0_12
## %bb.7:
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	8(%rax), %rax
	movq	_scan8@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%r15,8), %rdx
	movslq	(%rax,%rdx,4), %r15
	movq	8(%rcx), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_9
## %bb.8:
	movl	(%rax,%rcx), %eax
	andl	$3, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	je	LBB0_12
LBB0_9:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	$1, %r8d
	callq	_get_lowest_part_list_y
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	384(%rbx,%r15,8), %rdi
	testq	%rdi, %rdi
	jns	LBB0_11
## %bb.10:
	incl	4(%r14)
LBB0_11:
	movl	%eax, %esi
	callq	_FFMAX
	movq	%rax, 384(%rbx,%r15,8)
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scan8,8,3                      ## @scan8
	.no_dead_strip	_get_lowest_part_y
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_lowest_part_y
_get_lowest_part_y:                     ; @get_lowest_part_y
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x7
	mov	x26, x6
	mov	x23, x5
	mov	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x24, x0
	ldr	x27, [x29, #16]
	ldr	w28, [x1]
	mov	x0, x1
	bl	_MB_FIELD
	asr	w8, w28, w0
	add	w23, w23, w8, lsl #4
Lloh0:
	adrp	x28, _scan8@GOTPAGE
Lloh1:
	ldr	x28, [x28, _scan8@GOTPAGEOFF]
	cbz	w26, LBB0_6
; %bb.1:
	ldp	x8, x9, [x22, #8]
	ldr	x8, [x8]
	ldr	x10, [x28]
	ldr	x10, [x10, w21, sxtw #3]
	ldrsw	x26, [x8, x10, lsl #2]
	ldr	x8, [x9]
	add	x9, x8, x26, lsl #4
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x10, [x24, #8]
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	lsl	x9, x26, #4
	ldr	w8, [x8, x9]
	and	w8, w8, #0x3
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_6
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	w4, #0
	bl	_get_lowest_part_list_y
	mov	x1, x0
	ldr	x0, [x19, x26, lsl #3]
	tbz	x0, #63, LBB0_5
; %bb.4:
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
LBB0_5:
	bl	_FFMAX
	str	x0, [x19, x26, lsl #3]
LBB0_6:
	cbz	w25, LBB0_12
; %bb.7:
	ldp	x8, x9, [x22, #8]
	ldr	x8, [x8, #8]
	ldr	x10, [x28]
	ldr	x10, [x10, w21, sxtw #3]
	ldrsw	x25, [x8, x10, lsl #2]
	ldr	x8, [x9, #8]
	add	x9, x8, x25, lsl #4
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x10, [x24, #8]
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
	lsl	x9, x25, #4
	ldr	w8, [x8, x9]
	and	w8, w8, #0x3
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_12
LBB0_9:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	w4, #1
	bl	_get_lowest_part_list_y
	mov	x1, x0
	add	x8, x19, x25, lsl #3
	add	x19, x8, #384
	ldr	x0, [x8, #384]
	tbz	x0, #63, LBB0_11
; %bb.10:
	ldr	w8, [x27, #4]
	add	w8, w8, #1
	str	w8, [x27, #4]
LBB0_11:
	bl	_FFMAX
	str	x0, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_scan8,8,3                      ; @scan8
	.no_dead_strip	_get_lowest_part_y
.subsections_via_symbols
