	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpu_emulate                    ## -- Begin function fpu_emulate
	.p2align	4, 0x90
_fpu_emulate:                           ## @fpu_emulate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	%rsi, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	(%rdi), %rdi
	leaq	-24(%rbp), %rsi
	movl	$4, %edx
	callq	_copyin
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SIGSEGV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	_FPE_EX@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	(%rbx), %rsi
	callq	_DPRINTF
	movq	-24(%rbp), %rax
	movq	_OPC_TWI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_OPC_integer_31@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_OPC31_TW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DPRINTF
	movq	_SIGTRAP@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	-40(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_fpu_execute
	cmpl	$130, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_DPRINTF
	addq	$4, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_DPRINTF
	movq	_SIGSEGV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_DPRINTF
	movq	_SIGFPE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_DPRINTF
	movq	_SIGILL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGSEGV,4,2                    ## @SIGSEGV
	.comm	_FPE_EX,4,2                     ## @FPE_EX
	.comm	_OPC_TWI,8,3                    ## @OPC_TWI
	.comm	_OPC_integer_31,8,3             ## @OPC_integer_31
	.comm	_OPC31_TW,8,3                   ## @OPC31_TW
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"fpu_emulate: SIGTRAP\n"

	.comm	_SIGTRAP,4,2                    ## @SIGTRAP
L_.str.2:                               ## @.str.2
	.asciz	"fpu_emulate: success\n"

L_.str.3:                               ## @.str.3
	.asciz	"fpu_emulate: SIGFPE\n"

	.comm	_SIGFPE,4,2                     ## @SIGFPE
L_.str.4:                               ## @.str.4
	.asciz	"fpu_emulate: SIGSEGV\n"

L_.str.5:                               ## @.str.5
	.asciz	"fpu_emulate: SIGILL\n"

	.comm	_SIGILL,4,2                     ## @SIGILL
	.comm	_KDB_WHY_UNSET,4,2              ## @KDB_WHY_UNSET
	.comm	_fpe_debug,4,2                  ## @fpe_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpu_emulate                    ; -- Begin function fpu_emulate
	.p2align	2
_fpu_emulate:                           ; @fpu_emulate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	stp	xzr, x1, [sp, #8]
	ldr	x0, [x0]
	add	x1, sp, #24
	mov	w2, #4
	bl	_copyin
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _SIGSEGV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGSEGV@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
Lloh2:
	adrp	x20, _FPE_EX@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FPE_EX@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_DPRINTF
	ldr	x8, [sp, #24]
Lloh4:
	adrp	x9, _OPC_TWI@GOTPAGE
Lloh5:
	ldr	x9, [x9, _OPC_TWI@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.3:
Lloh7:
	adrp	x9, _OPC_integer_31@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OPC_integer_31@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _OPC31_TW@GOTPAGE
Lloh11:
	ldr	x10, [x10, _OPC31_TW@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, eq
	b.eq	LBB0_8
; %bb.4:
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x19
	bl	_fpu_execute
	cmp	w0, #130
	b.eq	LBB0_11
; %bb.5:
	cmp	w0, #129
	b.eq	LBB0_12
; %bb.6:
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DPRINTF
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #4
	str	x8, [x19]
	b	LBB0_10
LBB0_8:
	ldr	w0, [x20]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DPRINTF
Lloh17:
	adrp	x8, _SIGTRAP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIGTRAP@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DPRINTF
	b	LBB0_1
LBB0_12:
	ldr	w0, [x20]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DPRINTF
Lloh23:
	adrp	x8, _SIGFPE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SIGFPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_13:
	ldr	w0, [x20]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_DPRINTF
Lloh27:
	adrp	x8, _SIGILL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGSEGV,4,2                    ; @SIGSEGV
	.comm	_FPE_EX,4,2                     ; @FPE_EX
	.comm	_OPC_TWI,8,3                    ; @OPC_TWI
	.comm	_OPC_integer_31,8,3             ; @OPC_integer_31
	.comm	_OPC31_TW,8,3                   ; @OPC31_TW
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"fpu_emulate: SIGTRAP\n"

	.comm	_SIGTRAP,4,2                    ; @SIGTRAP
l_.str.2:                               ; @.str.2
	.asciz	"fpu_emulate: success\n"

l_.str.3:                               ; @.str.3
	.asciz	"fpu_emulate: SIGFPE\n"

	.comm	_SIGFPE,4,2                     ; @SIGFPE
l_.str.4:                               ; @.str.4
	.asciz	"fpu_emulate: SIGSEGV\n"

l_.str.5:                               ; @.str.5
	.asciz	"fpu_emulate: SIGILL\n"

	.comm	_SIGILL,4,2                     ; @SIGILL
	.comm	_KDB_WHY_UNSET,4,2              ; @KDB_WHY_UNSET
	.comm	_fpe_debug,4,2                  ; @fpe_debug
.subsections_via_symbols
