	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function estimateDiv64To32
_estimateDiv64To32:                     ## @estimateDiv64To32
	.cfi_startproc
## %bb.0:
	movl	$-1, %eax
	cmpl	%edi, %edx
	jle	LBB0_9
## %bb.1:
	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	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movl	%edx, %r14d
	sarl	$16, %r14d
	movl	%edx, %eax
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	$-65536, %ebx                   ## imm = 0xFFFF0000
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%edi, %eax
	jle	LBB0_3
## %bb.2:
	movl	%r13d, %eax
	cltd
	idivl	%r14d
	movl	%eax, %ebx
	shll	$16, %ebx
LBB0_3:
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_mul32To64
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %ecx
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_sub64
	movl	-48(%rbp), %edi
	testl	%edi, %edi
	jns	LBB0_6
## %bb.4:
	shll	$16, %r15d
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addl	$-65536, %ebx                   ## imm = 0xFFFF0000
	movl	-44(%rbp), %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movq	%r12, %r8
	movq	%r13, %r9
	callq	_add64
	movl	-48(%rbp), %edi
	testl	%edi, %edi
	js	LBB0_5
LBB0_6:
	shll	$16, %edi
	movswl	-42(%rbp), %ecx
	orl	%edi, %ecx
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmpl	%ecx, -52(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_8
## %bb.7:
	movl	%ecx, %eax
	cltd
	idivl	%r14d
LBB0_8:
	orl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_9:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_estimateDiv64To32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function estimateDiv64To32
_estimateDiv64To32:                     ; @estimateDiv64To32
	.cfi_startproc
; %bb.0:
	cmp	w2, w0
	b.le	LBB0_3
; %bb.1:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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_remember_state
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	asr	w20, w2, #16
	and	w24, w2, #0xffff0000
	cmp	w24, w0
	b.le	LBB0_4
; %bb.2:
	sdiv	w8, w23, w20
	lsl	w19, w8, #16
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	mov	w0, #-1
	ret
LBB0_4:
	.cfi_restore_state
	mov	w19, #-65536
LBB0_5:
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x21
	mov	x1, x19
	bl	_mul32To64
	ldp	w3, w2, [sp]
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x23
	mov	x1, x22
	bl	_sub64
	ldr	w0, [sp, #12]
	tbz	w0, #31, LBB0_8
; %bb.6:
	lsl	w21, w21, #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #16, lsl #12          ; =65536
	ldr	w1, [sp, #8]
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x2, x20
	mov	x3, x21
	bl	_add64
	ldr	w0, [sp, #12]
	tbnz	w0, #31, LBB0_7
LBB0_8:
	ldrsh	w8, [sp, #10]
	orr	w8, w8, w0, lsl #16
	cmp	w24, w8
	b.le	LBB0_10
; %bb.9:
	sdiv	w8, w8, w20
	b	LBB0_11
LBB0_10:
	mov	w8, #65535
LBB0_11:
	orr	w0, w8, w19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_estimateDiv64To32
.subsections_via_symbols
