	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getcut
_getcut:                                ## @getcut
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %r9
	movq	_WMSEDEC_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r10d, %r10d
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r10, %r8
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%r10,8), %edi
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %r11
	subl	-8(%r9,%r11,8), %edi
	movl	-4(%r9,%r11,8), %r11d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r11d, %r11d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r9,%r10,8), %ebx
	subl	%r11d, %ebx
	imull	%edx, %ebx
	sarl	%cl, %ebx
	imull	%edx, %ebx
	imull	%esi, %edi
	incq	%r10
	cmpl	%edi, %ebx
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r10d, %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMSEDEC_SHIFT,4,2              ## @WMSEDEC_SHIFT
	.no_dead_strip	_getcut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getcut
_getcut:                                ; @getcut
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, x0
	mov	x10, #0
	mov	w0, #0
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x11, _WMSEDEC_SHIFT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _WMSEDEC_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	add	x12, x8, #4
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x8, w0, sxtw #3
	ldp	w15, w14, [x14, #-8]
	sub	w13, w13, w15
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w15, [x12], #8
	sub	w14, w15, w14
	mul	w14, w14, w2
	asr	w14, w14, w11
	mul	w14, w14, w2
	mul	w13, w13, w1
	add	x10, x10, #1
	cmp	w14, w13
	csel	w0, w0, w10, lt
	cmp	x9, x10
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x12, #-4]
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w14, #0
	b	LBB0_3
LBB0_6:
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WMSEDEC_SHIFT,4,2              ; @WMSEDEC_SHIFT
	.no_dead_strip	_getcut
.subsections_via_symbols
