	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_fetestclearexcept
_test_fetestclearexcept:                ## @test_fetestclearexcept
	.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), %r14
	cmpl	$31, (%r14)
	je	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	movq	_std_except_sets@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_fetestexcept
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%r14), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	incq	%rbx
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	cmpl	$31, %ecx
	jne	LBB0_4
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r13d, %r13d
	movq	_ALL_STD_EXCEPT@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %edi
	callq	_fetestexcept
	cmpq	%rbx, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	sete	%al
	movq	_std_except_sets@GOTPCREL(%rip), %r12
	movq	_NEXCEPTS@GOTPCREL(%rip), %rbx
	movzbl	%al, %edi
	callq	_assert
	movl	%r14d, %edi
	callq	_feclearexcept
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%r15), %edi
	callq	_fetestexcept
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movzbl	(%rbx), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	incq	%r13
	cltq
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %r14d
	movslq	%r14d, %rbx
	movl	%ebx, %edi
	callq	_raiseexcept
	movl	%ebx, %edi
	callq	_fetestexcept
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movq	_FE_ALL_EXCEPT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_feclearexcept
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%r12), %edi
	callq	_fetestexcept
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	%ebx, %edi
	callq	_raiseexcept
	movl	%ebx, %edi
	callq	_fetestexcept
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movq	_FE_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FE_UNDERFLOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_FE_INEXACT@GOTPCREL(%rip), %r12
	movslq	(%r12), %r14
	orq	%rbx, %r14
	movl	(%r15), %edi
	callq	_fetestexcept
	movslq	(%r12), %rcx
	orq	%rax, %rcx
	cmpq	%r14, %rcx
	jmp	LBB0_8
	.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_UNDERFLOW,4,2               ## @FE_UNDERFLOW
	.comm	_FE_OVERFLOW,4,2                ## @FE_OVERFLOW
	.comm	_FE_INEXACT,4,2                 ## @FE_INEXACT
	.comm	_ALL_STD_EXCEPT,4,2             ## @ALL_STD_EXCEPT
	.no_dead_strip	_test_fetestclearexcept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_fetestclearexcept
_test_fetestclearexcept:                ; @test_fetestclearexcept
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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.eq	LBB0_4
; %bb.1:
	mov	x19, #0
Lloh2:
	adrp	x21, _std_except_sets@GOTPAGE
Lloh3:
	ldr	x21, [x21, _std_except_sets@GOTPAGEOFF]
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x19, lsl #2]
	bl	_fetestexcept
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	add	x19, x19, #1
	ldr	w8, [x20]
	lsl	w9, w22, w8
	cmp	x19, w9, sxtw
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #31
	b.ne	LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x22, #0
Lloh4:
	adrp	x23, _FE_ALL_EXCEPT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FE_ALL_EXCEPT@GOTPAGEOFF]
Lloh6:
	adrp	x25, _FE_OVERFLOW@GOTPAGE
Lloh7:
	ldr	x25, [x25, _FE_OVERFLOW@GOTPAGEOFF]
Lloh8:
	adrp	x26, _ALL_STD_EXCEPT@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ALL_STD_EXCEPT@GOTPAGEOFF]
	mov	w27, #1
Lloh10:
	adrp	x28, _FE_INEXACT@GOTPAGE
Lloh11:
	ldr	x28, [x28, _FE_INEXACT@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x26]
	bl	_fetestexcept
	cmp	x0, x24
	cset	w0, eq
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_assert
	mov	x0, x19
	bl	_feclearexcept
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x26]
	bl	_fetestexcept
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	add	x22, x22, #1
	ldr	w8, [x20]
	lsl	w8, w27, w8
	cmp	x22, w8, sxtw
	b.ge	LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w19, [x8, x22, lsl #2]
	sxtw	x24, w19
	mov	x0, x19
	bl	_raiseexcept
	mov	x0, x19
	bl	_fetestexcept
	cmp	x0, x24
	cset	w0, eq
	bl	_assert
	ldr	w0, [x23]
	bl	_feclearexcept
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x23]
	bl	_fetestexcept
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_raiseexcept
	mov	x0, x19
	bl	_fetestexcept
	cmp	x0, x24
	cset	w0, eq
	bl	_assert
Lloh12:
	adrp	x8, _FE_UNDERFLOW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FE_UNDERFLOW@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [x28]
	orr	x19, x8, x24
	ldr	w0, [x26]
	bl	_fetestexcept
	ldrsw	x8, [x28]
	orr	x8, x0, x8
	cmp	x8, x19
	cset	w0, eq
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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_UNDERFLOW,4,2               ; @FE_UNDERFLOW
	.comm	_FE_OVERFLOW,4,2                ; @FE_OVERFLOW
	.comm	_FE_INEXACT,4,2                 ; @FE_INEXACT
	.comm	_ALL_STD_EXCEPT,4,2             ; @ALL_STD_EXCEPT
	.no_dead_strip	_test_fetestclearexcept
.subsections_via_symbols
