	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpu_ftoi                       ## -- Begin function fpu_ftoi
	.p2align	4, 0x90
_fpu_ftoi:                              ## @fpu_ftoi
	.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	4(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.3:
	movl	8(%rbx), %esi
	cmpl	$31, %esi
	jg	LBB0_8
## %bb.4:
	movq	_FP_NMANT@GOTPCREL(%rip), %rax
	notl	%esi
	addl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fpu_shr
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_FPSCR_UX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_6:
	movq	16(%rbx), %rax
	movl	12(%rax), %eax
	movl	%r15d, %ecx
	orl	$-2147483648, %ecx              ## imm = 0x80000000
	cmpl	%ecx, %eax
	jge	LBB0_8
## %bb.7:
	movl	%eax, %ecx
	negl	%ecx
	testl	%r15d, %r15d
	cmovel	%eax, %ecx
	movl	%ecx, %r15d
	jmp	LBB0_9
LBB0_8:
	movq	_FPSCR_VXCVI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	addl	$2147483647, %r15d              ## imm = 0x7FFFFFFF
	jmp	LBB0_9
LBB0_1:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FP_NMANT,4,2                   ## @FP_NMANT
	.comm	_FPSCR_UX,4,2                   ## @FPSCR_UX
	.comm	_FPSCR_VXCVI,4,2                ## @FPSCR_VXCVI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpu_ftoi                       ; -- Begin function fpu_ftoi
	.p2align	2
_fpu_ftoi:                              ; @fpu_ftoi
	.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
	ldr	w8, [x1, #4]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x1]
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x20, #8]
	cmp	w8, #31
	b.gt	LBB0_7
; %bb.3:
Lloh0:
	adrp	x9, _FP_NMANT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FP_NMANT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mvn	w8, w8
	add	w1, w9, w8
	mov	x0, x20
	bl	_fpu_shr
	cbz	w0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _FPSCR_UX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FPSCR_UX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #12]
	orr	w9, w21, #0x80000000
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.6:
	cmp	w21, #0
	cneg	w0, w8, ne
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _FPSCR_VXCVI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FPSCR_VXCVI@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w8, #2147483647
	add	w0, w21, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FP_NMANT,4,2                   ; @FP_NMANT
	.comm	_FPSCR_UX,4,2                   ; @FPSCR_UX
	.comm	_FPSCR_VXCVI,4,2                ; @FPSCR_VXCVI
.subsections_via_symbols
