	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_limit_rational              ## -- Begin function hb_limit_rational
	.p2align	4, 0x90
_hb_limit_rational:                     ## @hb_limit_rational
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, -32(%rbp)
	movl	%ecx, -28(%rbp)
	leaq	-32(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_hb_reduce
	movl	-32(%rbp), %ecx
	movl	-28(%rbp), %eax
	cmpl	%ebx, %ecx
	jge	LBB0_3
## %bb.1:
	cmpl	%ebx, %eax
	jge	LBB0_3
## %bb.2:
	movl	%ecx, %ebx
	jmp	LBB0_6
LBB0_3:
	cvtsi2sd	%ebx, %xmm0
	cmpl	%eax, %ecx
	jle	LBB0_5
## %bb.4:
	cvtsi2sd	%ecx, %xmm1
	divsd	%xmm1, %xmm0
	movl	%ebx, -32(%rbp)
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %eax
	movl	%eax, -28(%rbp)
	jmp	LBB0_6
LBB0_5:
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movl	%ebx, -28(%rbp)
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	mulsd	%xmm0, %xmm1
	movl	%ebx, %eax
	cvttsd2si	%xmm1, %ebx
	movl	%ebx, -32(%rbp)
LBB0_6:
	movl	%ebx, (%r15)
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_limit_rational              ; -- Begin function hb_limit_rational
	.p2align	2
_hb_limit_rational:                     ; @hb_limit_rational
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x19, x1
	mov	x20, x0
	stp	w3, w2, [sp, #8]
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_hb_reduce
	ldp	w8, w9, [sp, #8]
	cmp	w9, w21
	ccmp	w8, w21, #0, lt
	b.lt	LBB0_3
; %bb.1:
	scvtf	d0, w21
	cmp	w9, w8
	b.le	LBB0_4
; %bb.2:
	scvtf	d1, w9
	fdiv	d0, d0, d1
	scvtf	d1, w8
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	stp	w8, w21, [sp, #8]
	b	LBB0_5
LBB0_3:
	mov	x21, x9
	b	LBB0_5
LBB0_4:
	scvtf	d1, w8
	fdiv	d0, d0, d1
	str	w21, [sp, #8]
	scvtf	d1, w9
	fmul	d0, d0, d1
	mov	x8, x21
	fcvtzs	w21, d0
	str	w21, [sp, #12]
LBB0_5:
	str	w21, [x20]
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
