	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_fix_trunc               ## -- Begin function output_fix_trunc
	.p2align	4, 0x90
_output_fix_trunc:                      ## @output_fix_trunc
	.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	%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, %r12d
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_REG_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FIRST_STACK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_find_regno_note
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_GET_MODE
	movq	_DImode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	sete	%r13b
	movl	%ebx, %edi
	callq	_get_attr_i387_cw
	movl	%eax, %ebx
	testl	%r12d, %r12d
	setne	%al
	orb	%r13b, %al
	cmpb	$1, %al
	jne	LBB0_3
## %bb.1:
	testq	%r14, %r14
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_output_asm_insn
LBB0_3:
	movl	4(%r15), %edi
	callq	_STACK_TOP_P
	movl	%eax, %edi
	callq	_gcc_assert
	movl	(%r15), %edi
	callq	_GET_CODE
	movq	_MEM@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_gcc_assert
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_5:
	movq	_I387_CW_ANY@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_output_asm_insn
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	cmoveq	%rax, %rdi
	testq	%r14, %r14
	cmovneq	%rax, %rdi
	movq	%r15, %rsi
	callq	_output_asm_insn
	cmpl	(%r12), %ebx
	je	LBB0_10
## %bb.8:
	leaq	L_.str.5(%rip), %rdi
LBB0_9:
	movq	%r15, %rsi
	callq	_output_asm_insn
LBB0_10:
	leaq	L_.str.6(%rip), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_DEAD,4,2                   ## @REG_DEAD
	.comm	_FIRST_STACK_REG,4,2            ## @FIRST_STACK_REG
	.comm	_DImode,8,3                     ## @DImode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fld\t%y1"

	.comm	_MEM,8,3                        ## @MEM
L_.str.1:                               ## @.str.1
	.asciz	"fisttp%z0\t%0"

	.comm	_I387_CW_ANY,4,2                ## @I387_CW_ANY
L_.str.2:                               ## @.str.2
	.asciz	"fldcw\t%3"

L_.str.3:                               ## @.str.3
	.asciz	"fistp%z0\t%0"

L_.str.4:                               ## @.str.4
	.asciz	"fist%z0\t%0"

L_.str.5:                               ## @.str.5
	.asciz	"fldcw\t%2"

L_.str.6:                               ## @.str.6
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_fix_trunc               ; -- Begin function output_fix_trunc
	.p2align	2
_output_fix_trunc:                      ; @output_fix_trunc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _REG_DEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _FIRST_STACK_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIRST_STACK_REG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_find_regno_note
	mov	x20, x0
	ldr	w0, [x19]
	bl	_GET_MODE
	mov	x23, x0
Lloh6:
	adrp	x8, _DImode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DImode@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
	mov	x0, x22
	bl	_get_attr_i387_cw
	mov	x22, x0
	cmp	x23, x24
	ccmp	w21, #0, #0, ne
	ccmp	x20, #0, #0, ne
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_output_asm_insn
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_STACK_TOP_P
	bl	_gcc_assert
	ldr	w0, [x19]
	bl	_GET_CODE
Lloh11:
	adrp	x8, _MEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MEM@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_gcc_assert
	cbz	w21, LBB0_4
; %bb.3:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh16:
	adrp	x21, _I387_CW_ANY@GOTPAGE
Lloh17:
	ldr	x21, [x21, _I387_CW_ANY@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w22, w8
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_output_asm_insn
LBB0_6:
	cmp	x23, x24
	ccmp	x20, #0, #0, ne
Lloh20:
	adrp	x8, l_.str.4@PAGE
Lloh21:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh22:
	adrp	x9, l_.str.3@PAGE
Lloh23:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x0, x9, x8, ne
	mov	x1, x19
	bl	_output_asm_insn
	ldr	w8, [x21]
	cmp	w22, w8
	b.eq	LBB0_9
; %bb.7:
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_8:
	mov	x1, x19
	bl	_output_asm_insn
LBB0_9:
Lloh26:
	adrp	x0, l_.str.6@PAGE
Lloh27:
	add	x0, x0, l_.str.6@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_DEAD,4,2                   ; @REG_DEAD
	.comm	_FIRST_STACK_REG,4,2            ; @FIRST_STACK_REG
	.comm	_DImode,8,3                     ; @DImode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fld\t%y1"

	.comm	_MEM,8,3                        ; @MEM
l_.str.1:                               ; @.str.1
	.asciz	"fisttp%z0\t%0"

	.comm	_I387_CW_ANY,4,2                ; @I387_CW_ANY
l_.str.2:                               ; @.str.2
	.asciz	"fldcw\t%3"

l_.str.3:                               ; @.str.3
	.asciz	"fistp%z0\t%0"

l_.str.4:                               ; @.str.4
	.asciz	"fist%z0\t%0"

l_.str.5:                               ; @.str.5
	.asciz	"fldcw\t%2"

l_.str.6:                               ; @.str.6
	.space	1

.subsections_via_symbols
