	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_limit_rational             ## -- Begin function ghb_limit_rational
	.p2align	4, 0x90
_ghb_limit_rational:                    ## @ghb_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
	movsd	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	movsd	(%rsi), %xmm2                   ## xmm2 = mem[0],zero
	jbe	LBB0_2
## %bb.1:
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_2
## %bb.3:
	popq	%rbp
	retq
LBB0_2:
	ucomisd	%xmm2, %xmm1
	maxsd	%xmm2, %xmm1
	movq	%rsi, %rax
	cmovaq	%rdi, %rax
	cmovaq	%rsi, %rdi
	movsd	%xmm0, (%rax)
	divsd	%xmm1, %xmm0
	mulsd	(%rdi), %xmm0
	movsd	%xmm0, (%rdi)
	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	_ghb_limit_rational             ; -- Begin function ghb_limit_rational
	.p2align	2
_ghb_limit_rational:                    ; @ghb_limit_rational
	.cfi_startproc
; %bb.0:
	ldr	d1, [x0]
	ldr	d2, [x1]
	fcmp	d1, d0
	fccmp	d2, d0, #0, mi
	b.mi	LBB0_2
; %bb.1:
	fcmp	d1, d2
	fcsel	d1, d1, d2, gt
	csel	x8, x0, x1, gt
	csel	x9, x1, x0, gt
	fdiv	d1, d0, d1
	str	d0, [x8]
	ldr	d0, [x9]
	fmul	d0, d1, d0
	str	d0, [x9]
LBB0_2:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
