	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h_check
_h_check:                               ## @h_check
	.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	%edi, %r12d
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_getpid
	movq	_TEST_SETJMP@GOTPCREL(%rip), %r13
	cmpl	%r12d, (%r13)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_TEST_SIGSETJMP_SAVE@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	_TEST_U_SETJMP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_TEST_SIGSETJMP_NOSAVE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_fail
	jmp	LBB0_7
LBB0_2:
	movq	_expectsignal@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_7
LBB0_5:
	movq	_expectsignal@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_7:
	movq	_aborthandler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_sigemptyset
	movq	$0, -64(%rbp)
	movq	_SIGABRT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%eax, %eax
	movl	%eax, %ebx
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_sigaction
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%al
	movb	%al, %dil
	callq	_REQUIRE_ERRNO
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_sigemptyset
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%al
	movb	%al, %dil
	callq	_REQUIRE_ERRNO
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_sigaddset
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%al
	movb	%al, %dil
	callq	_REQUIRE_ERRNO
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_sigprocmask
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%al
	movb	%al, %dil
	callq	_REQUIRE_ERRNO
	cmpl	%r12d, (%r13)
	jne	LBB0_9
## %bb.8:
	callq	_setjmp
	jmp	LBB0_12
LBB0_9:
	movq	_TEST_U_SETJMP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_11
## %bb.10:
	callq	__setjmp
	jmp	LBB0_12
LBB0_11:
	movq	_expectsignal@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	$0, (%rax)
	sete	%al
	movb	%al, %sil
	callq	_sigsetjmp
LBB0_12:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r15d
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%al
	movb	%al, %dil
	leaq	L_.str.1(%rip), %rsi
	callq	_ATF_REQUIRE_MSG
	movq	_SIGABRT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kill
	movq	_expectsignal@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%al
	movb	%al, %dil
	leaq	L_.str.2(%rip), %rsi
	callq	_ATF_REQUIRE_MSG
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_atf_tc_pass
LBB0_14:
	movq	_SIG_UNBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	movl	%eax, %edx
	leaq	-48(%rbp), %rsi
	callq	_sigprocmask
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%al
	movb	%al, %dil
	callq	_REQUIRE_ERRNO
	cmpl	%r12d, (%r13)
	jne	LBB0_15
## %bb.17:
	movl	%r15d, %esi
	callq	_longjmp
LBB0_15:
	movq	_TEST_U_SETJMP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_16
## %bb.18:
	movl	%r15d, %esi
	callq	__longjmp
LBB0_16:
	movl	%r15d, %esi
	callq	_siglongjmp
	.cfi_endproc
                                        ## -- End function
	.comm	_TEST_SETJMP,4,2                ## @TEST_SETJMP
	.comm	_TEST_SIGSETJMP_SAVE,4,2        ## @TEST_SIGSETJMP_SAVE
	.comm	_expectsignal,4,2               ## @expectsignal
	.comm	_TEST_U_SETJMP,4,2              ## @TEST_U_SETJMP
	.comm	_TEST_SIGSETJMP_NOSAVE,4,2      ## @TEST_SIGSETJMP_NOSAVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown test"

	.comm	_aborthandler,4,2               ## @aborthandler
	.comm	_SIGABRT,4,2                    ## @SIGABRT
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
L_.str.1:                               ## @.str.1
	.asciz	"setjmp returned wrong value"

L_.str.2:                               ## @.str.2
	.asciz	"kill(SIGABRT) failed"

	.comm	_SIG_UNBLOCK,4,2                ## @SIG_UNBLOCK
	.no_dead_strip	_h_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h_check
_h_check:                               ; @h_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	bl	_getpid
	mov	x20, x0
Lloh0:
	adrp	x23, _TEST_SETJMP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TEST_SETJMP@GOTPAGEOFF]
Lloh2:
	adrp	x8, _TEST_SIGSETJMP_SAVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TEST_SIGSETJMP_SAVE@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh4:
	ldr	w8, [x8]
	cmp	w9, w19
	ccmp	w8, w19, #4, ne
Lloh5:
	adrp	x24, _TEST_U_SETJMP@GOTPAGE
Lloh6:
	ldr	x24, [x24, _TEST_U_SETJMP@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
Lloh7:
	adrp	x9, _expectsignal@GOTPAGE
Lloh8:
	ldr	x9, [x9, _expectsignal@GOTPAGEOFF]
Lloh9:
	str	wzr, [x9]
	b	LBB0_5
LBB0_2:
	ldr	w8, [x24]
Lloh10:
	adrp	x9, _TEST_SIGSETJMP_NOSAVE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TEST_SIGSETJMP_NOSAVE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _expectsignal@GOTPAGE
Lloh14:
	ldr	x8, [x8, _expectsignal@GOTPAGEOFF]
	mov	w9, #1
Lloh15:
	str	w9, [x8]
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_fail
LBB0_5:
Lloh18:
	adrp	x8, _aborthandler@GOTPAGE
Lloh19:
	ldr	x8, [x8, _aborthandler@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	add	x21, sp, #16
	add	x0, x21, #8
	bl	_sigemptyset
	mov	x22, #0
	str	xzr, [sp, #16]
Lloh21:
	adrp	x25, _SIGABRT@GOTPAGE
Lloh22:
	ldr	x25, [x25, _SIGABRT@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, #0
	bl	_sigaction
	cmn	w0, #1
	cset	w0, ne
	bl	_REQUIRE_ERRNO
	add	x21, sp, #12
	mov	x0, x21
	bl	_sigemptyset
	cmn	w0, #1
	cset	w0, ne
	bl	_REQUIRE_ERRNO
	ldr	w1, [x25]
	mov	x0, x21
	bl	_sigaddset
	cmn	w0, #1
	cset	w0, ne
	bl	_REQUIRE_ERRNO
Lloh23:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x22
	bl	_sigprocmask
	cmn	w0, #1
	cset	w0, ne
	bl	_REQUIRE_ERRNO
	ldr	w8, [x23]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.6:
	bl	_setjmp
	b	LBB0_10
LBB0_7:
	ldr	w8, [x24]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.8:
	bl	__setjmp
	b	LBB0_10
LBB0_9:
Lloh26:
	adrp	x8, _expectsignal@GOTPAGE
Lloh27:
	ldr	x8, [x8, _expectsignal@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w1, eq
	bl	_sigsetjmp
LBB0_10:
	mov	x8, x0
	mov	x21, x20
	cbz	w0, LBB0_12
; %bb.11:
	cmp	w8, w20
	cset	w0, eq
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w1, [x25]
	mov	x0, x21
	bl	_kill
Lloh31:
	adrp	x8, _expectsignal@GOTPAGE
Lloh32:
	ldr	x8, [x8, _expectsignal@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	bl	_atf_tc_pass
LBB0_12:
Lloh36:
	adrp	x8, _SIG_UNBLOCK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SIG_UNBLOCK@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	x2, #0
	add	x1, sp, #12
	bl	_sigprocmask
	cmn	w0, #1
	cset	w0, ne
	bl	_REQUIRE_ERRNO
	ldr	w8, [x23]
	cmp	w8, w19
	b.ne	LBB0_14
; %bb.13:
	mov	x1, x21
	bl	_longjmp
LBB0_14:
	ldr	w8, [x24]
	mov	x1, x21
	cmp	w8, w19
	b.ne	LBB0_16
; %bb.15:
	bl	__longjmp
LBB0_16:
	bl	_siglongjmp
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_TEST_SETJMP,4,2                ; @TEST_SETJMP
	.comm	_TEST_SIGSETJMP_SAVE,4,2        ; @TEST_SIGSETJMP_SAVE
	.comm	_expectsignal,4,2               ; @expectsignal
	.comm	_TEST_U_SETJMP,4,2              ; @TEST_U_SETJMP
	.comm	_TEST_SIGSETJMP_NOSAVE,4,2      ; @TEST_SIGSETJMP_NOSAVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown test"

	.comm	_aborthandler,4,2               ; @aborthandler
	.comm	_SIGABRT,4,2                    ; @SIGABRT
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
l_.str.1:                               ; @.str.1
	.asciz	"setjmp returned wrong value"

l_.str.2:                               ; @.str.2
	.asciz	"kill(SIGABRT) failed"

	.comm	_SIG_UNBLOCK,4,2                ; @SIG_UNBLOCK
	.no_dead_strip	_h_check
.subsections_via_symbols
