	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function float_to_long
_float_to_long:                         ## @float_to_long
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	%edi, %ebx
	andl	$8388607, %ebx                  ## imm = 0x7FFFFF
	movl	%edi, %r12d
	shrl	$23, %r12d
	movzbl	%r12b, %r15d
	orl	$8388608, %ebx                  ## imm = 0x800000
	imull	%esi, %ebx
	movl	%ebx, %edi
	callq	_fls64
                                        ## kill: def $eax killed $eax def $rax
	addl	%r15d, %eax
	addl	$-150, %eax
	cmpl	$64, %eax
	jl	LBB0_2
## %bb.1:
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	jmp	LBB0_5
LBB0_2:
	cmpl	$149, %r15d
	ja	LBB0_4
## %bb.3:
	movb	$-107, %cl
	subb	%r12b, %cl
	movl	$1, %edx
	shlq	%cl, %rdx
	movslq	%ebx, %rax
	addq	%rax, %rdx
	movb	$-106, %cl
	subb	%r12b, %cl
	shrq	%cl, %rdx
	jmp	LBB0_5
LBB0_4:
	addl	$-150, %r15d
	movl	%r15d, %ecx
	shll	%cl, %ebx
	movslq	%ebx, %rdx
LBB0_5:
	movq	%rdx, %rax
	negq	%rax
	testl	%r14d, %r14d
	cmovnsq	%rdx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
	.no_dead_strip	_float_to_long
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function float_to_long
_float_to_long:                         ; @float_to_long
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ubfx	w21, w0, #23, #8
	sub	w22, w21, #150
	mov	w8, #8388608
	bfxil	w8, w0, #0, #23
	mul	w20, w8, w1
	mov	x0, x20
	bl	_fls64
	add	w8, w0, w22
	cmp	w8, #64
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	b	LBB0_3
LBB0_2:
	lsl	w8, w20, w22
	sxtw	x8, w8
	mov	w9, #150
	sub	w9, w9, w21
	mov	w10, #149
	sub	w10, w10, w21
	mov	w11, #1
	lsl	x10, x11, x10
	add	x10, x10, w20, sxtw
	lsr	x9, x10, x9
	cmp	w21, #149
	csel	x8, x8, x9, hi
LBB0_3:
	cmp	w19, #0
	cneg	x0, x8, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
	.no_dead_strip	_float_to_long
.subsections_via_symbols
