	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_fegsetenv
_test_fegsetenv:                        ## @test_fegsetenv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NEXCEPTS@GOTPCREL(%rip), %rax
	cmpl	$31, (%rax)
	jne	LBB0_1
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_FE_ALL_EXCEPT@GOTPCREL(%rip), %rbx
	movq	_FE_TONEAREST@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_FE_DOWNWARD@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_fesetround
	leaq	-44(%rbp), %rdi
	callq	_fegetenv
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	%r13, %rdi
	callq	_fesetenv
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	%ebx, %r12d
	movq	_FE_ALL_EXCEPT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_fetestexcept
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	_fegetround
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_assert
	leaq	-44(%rbp), %rdi
	callq	_fesetenv
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%rbx), %edi
	callq	_fetestexcept
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	_fegetround
	xorl	%edi, %edi
	movq	_FE_DOWNWARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r15, %r12
	sete	%dil
	callq	_assert
	movq	%r13, %rdi
	callq	_fesetenv
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%rbx), %edi
	callq	_fetestexcept
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	_fegetround
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_assert
	movq	_NEXCEPTS@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	incq	%r14
	cltq
	cmpq	%rax, %r14
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_std_except_sets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %eax
	movl	(%rbx), %edi
	movl	%eax, %ebx
	callq	_fetestexcept
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	_fegetround
	xorl	%edi, %edi
	movq	%r12, %r15
	cmpq	(%r12), %rax
	sete	%dil
	callq	_assert
	movq	%r13, %rdi
	callq	_fegetenv
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	%ebx, %edi
	callq	_raiseexcept
	movq	_FE_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FE_UNDERFLOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_FE_INEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %edi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_feclearexcept
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_NEXCEPTS,4,2                   ## @NEXCEPTS
	.comm	_std_except_sets,8,3            ## @std_except_sets
	.comm	_FE_ALL_EXCEPT,4,2              ## @FE_ALL_EXCEPT
	.comm	_FE_TONEAREST,8,3               ## @FE_TONEAREST
	.comm	_FE_UNDERFLOW,4,2               ## @FE_UNDERFLOW
	.comm	_FE_OVERFLOW,4,2                ## @FE_OVERFLOW
	.comm	_FE_INEXACT,4,2                 ## @FE_INEXACT
	.comm	_FE_DOWNWARD,8,3                ## @FE_DOWNWARD
	.no_dead_strip	_test_fegsetenv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_fegsetenv
_test_fegsetenv:                        ; @test_fegsetenv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x20, _NEXCEPTS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NEXCEPTS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #31
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x21, #0
Lloh2:
	adrp	x22, _std_except_sets@GOTPAGE
Lloh3:
	ldr	x22, [x22, _std_except_sets@GOTPAGEOFF]
Lloh4:
	adrp	x23, _FE_ALL_EXCEPT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FE_ALL_EXCEPT@GOTPAGEOFF]
Lloh6:
	adrp	x24, _FE_TONEAREST@GOTPAGE
Lloh7:
	ldr	x24, [x24, _FE_TONEAREST@GOTPAGEOFF]
Lloh8:
	adrp	x25, _FE_UNDERFLOW@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FE_UNDERFLOW@GOTPAGEOFF]
Lloh10:
	adrp	x26, _FE_OVERFLOW@GOTPAGE
Lloh11:
	ldr	x26, [x26, _FE_OVERFLOW@GOTPAGEOFF]
Lloh12:
	adrp	x27, _FE_DOWNWARD@GOTPAGE
Lloh13:
	ldr	x27, [x27, _FE_DOWNWARD@GOTPAGEOFF]
	mov	w28, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x27]
	bl	_fesetround
	add	x0, sp, #8
	bl	_fegetenv
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	add	x0, sp, #12
	bl	_fesetenv
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x23]
	bl	_fetestexcept
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	bl	_fegetround
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	add	x0, sp, #8
	bl	_fesetenv
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x23]
	bl	_fetestexcept
	cmp	w0, w19
	cset	w0, eq
	bl	_assert
	bl	_fegetround
	ldr	x8, [x27]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	add	x0, sp, #12
	bl	_fesetenv
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x23]
	bl	_fetestexcept
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	bl	_fegetround
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	add	x21, x21, #1
	ldr	w8, [x20]
	lsl	w8, w28, w8
	cmp	x21, w8, sxtw
	b.ge	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w19, [x8, x21, lsl #2]
	ldr	w0, [x23]
	bl	_fetestexcept
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	bl	_fegetround
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	add	x0, sp, #12
	bl	_fegetenv
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_raiseexcept
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x8, _FE_INEXACT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FE_INEXACT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	tst	w0, w19
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_feclearexcept
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NEXCEPTS,4,2                   ; @NEXCEPTS
	.comm	_std_except_sets,8,3            ; @std_except_sets
	.comm	_FE_ALL_EXCEPT,4,2              ; @FE_ALL_EXCEPT
	.comm	_FE_TONEAREST,8,3               ; @FE_TONEAREST
	.comm	_FE_UNDERFLOW,4,2               ; @FE_UNDERFLOW
	.comm	_FE_OVERFLOW,4,2                ; @FE_OVERFLOW
	.comm	_FE_INEXACT,4,2                 ; @FE_INEXACT
	.comm	_FE_DOWNWARD,8,3                ; @FE_DOWNWARD
	.no_dead_strip	_test_fegsetenv
.subsections_via_symbols
