	.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	$40, %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
	movl	%eax, %ebx
	callq	_pthread_self
	movq	_myself@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	%ebx, %eax
	callq	_getpid
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_TEST_SETJMP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_TEST_SIGSETJMP_SAVE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	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, -60(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_sigemptyset
	movq	$0, -72(%rbp)
	movq	_SIGABRT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%r13d, %r13d
	movl	%r13d, %ebx
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_sigaction
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%al
	movb	%al, %dil
	callq	_REQUIRE_ERRNO
	leaq	-52(%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
	movq	_myself@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r13d, %eax
	callq	_pthread_self
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%al
	movb	%al, %dil
	callq	_ATF_REQUIRE
	movq	_TEST_SETJMP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	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	%eax, %ebx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.13:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r12d
	movl	%eax, %r15d
	movq	_myself@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%eax, %eax
	movl	%eax, %r13d
	callq	_pthread_self
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%al
	movb	%al, %dil
	callq	_ATF_REQUIRE
	xorl	%edi, %edi
	cmpl	%r15d, %ebx
	movl	%r12d, %r15d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	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
	movq	_myself@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r13d, %eax
	callq	_pthread_self
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%al
	movb	%al, %dil
	callq	_ATF_REQUIRE
	movl	%r13d, %eax
	callq	_atf_tc_pass
LBB0_14:
	movq	_myself@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	movl	%r14d, %eax
	callq	_pthread_self
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%al
	movb	%al, %dil
	callq	_ATF_REQUIRE
	movq	_SIG_UNBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %edx
	leaq	-52(%rbp), %rsi
	callq	_sigprocmask
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%al
	movb	%al, %dil
	callq	_REQUIRE_ERRNO
	movq	_TEST_SETJMP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	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	_myself,8,3                     ## @myself
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
	bl	_pthread_self
Lloh0:
	adrp	x25, _myself@GOTPAGE
Lloh1:
	ldr	x25, [x25, _myself@GOTPAGEOFF]
	str	x0, [x25]
	bl	_getpid
	mov	x20, x0
Lloh2:
	adrp	x23, _TEST_SETJMP@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TEST_SETJMP@GOTPAGEOFF]
Lloh4:
	adrp	x8, _TEST_SIGSETJMP_SAVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TEST_SIGSETJMP_SAVE@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh6:
	ldr	w8, [x8]
	cmp	w9, w19
	ccmp	w8, w19, #4, ne
Lloh7:
	adrp	x24, _TEST_U_SETJMP@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TEST_U_SETJMP@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
Lloh9:
	adrp	x9, _expectsignal@GOTPAGE
Lloh10:
	ldr	x9, [x9, _expectsignal@GOTPAGEOFF]
Lloh11:
	str	wzr, [x9]
	b	LBB0_5
LBB0_2:
	ldr	w8, [x24]
Lloh12:
	adrp	x9, _TEST_SIGSETJMP_NOSAVE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TEST_SIGSETJMP_NOSAVE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _expectsignal@GOTPAGE
Lloh16:
	ldr	x8, [x8, _expectsignal@GOTPAGEOFF]
	mov	w9, #1
Lloh17:
	str	w9, [x8]
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_fail
LBB0_5:
Lloh20:
	adrp	x8, _aborthandler@GOTPAGE
Lloh21:
	ldr	x8, [x8, _aborthandler@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	add	x21, sp, #16
	add	x0, x21, #8
	bl	_sigemptyset
	mov	x22, #0
	str	xzr, [sp, #16]
Lloh23:
	adrp	x26, _SIGABRT@GOTPAGE
Lloh24:
	ldr	x26, [x26, _SIGABRT@GOTPAGEOFF]
	ldr	w0, [x26]
	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, [x26]
	mov	x0, x21
	bl	_sigaddset
	cmn	w0, #1
	cset	w0, ne
	bl	_REQUIRE_ERRNO
Lloh25:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x22
	bl	_sigprocmask
	cmn	w0, #1
	cset	w0, ne
	bl	_REQUIRE_ERRNO
	ldr	x21, [x25]
	bl	_pthread_self
	cmp	x21, x0
	cset	w0, eq
	bl	_ATF_REQUIRE
	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:
Lloh28:
	adrp	x8, _expectsignal@GOTPAGE
Lloh29:
	ldr	x8, [x8, _expectsignal@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w1, eq
	bl	_sigsetjmp
LBB0_10:
	mov	x22, x0
	mov	x21, x20
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x27, [x25]
	bl	_pthread_self
	cmp	x27, x0
	cset	w0, eq
	bl	_ATF_REQUIRE
	cmp	w22, w20
	cset	w0, eq
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w1, [x26]
	mov	x0, x21
	bl	_kill
Lloh33:
	adrp	x8, _expectsignal@GOTPAGE
Lloh34:
	ldr	x8, [x8, _expectsignal@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	x20, [x25]
	bl	_pthread_self
	cmp	x20, x0
	cset	w0, eq
	bl	_ATF_REQUIRE
	bl	_atf_tc_pass
LBB0_12:
	ldr	x20, [x25]
	bl	_pthread_self
	cmp	x20, x0
	cset	w0, eq
	bl	_ATF_REQUIRE
Lloh38:
	adrp	x8, _SIG_UNBLOCK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SIG_UNBLOCK@GOTPAGEOFF]
Lloh40:
	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	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_myself,8,3                     ; @myself
	.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
