	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function timer_signal_create
_timer_signal_create:                   ## @timer_signal_create
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_t@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	_fail@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-144(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-192(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_SA_SIGINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	movq	_timer_signal_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_sigemptyset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	leaq	-108(%rbp), %rdi
	callq	_sigemptyset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movq	_SIGALRM@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_sigaddset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	(%r14), %eax
	movl	%eax, -64(%rbp)
	movq	%rbx, -72(%rbp)
	movq	_SIGEV_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_timer_create
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	leal	1(,%rax,4), %eax
	movl	%eax, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	leaq	-192(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_timer_settime
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movq	_SIG_UNBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	movl	$2, %edi
	callq	_sleep
	movq	_fail@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_3:
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_atf_tc_fail
LBB0_6:
	movq	(%rbx), %rdi
	callq	_timer_delete
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_t,8,3                          ## @t
	.comm	_fail,4,2                       ## @fail
	.comm	_SA_SIGINFO,4,2                 ## @SA_SIGINFO
	.comm	_timer_signal_handler,4,2       ## @timer_signal_handler
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_SIGEV_SIGNAL,4,2               ## @SIGEV_SIGNAL
	.comm	_SIG_UNBLOCK,4,2                ## @SIG_UNBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timer fired too soon"

L_.str.1:                               ## @.str.1
	.asciz	"timer failed to fire"

	.no_dead_strip	_timer_signal_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function timer_signal_create
_timer_signal_create:                   ; @timer_signal_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x19, _t@GOTPAGE
Lloh1:
	ldr	x19, [x19, _t@GOTPAGEOFF]
	str	xzr, [x19]
Lloh2:
	adrp	x22, _fail@GOTPAGE
Lloh3:
	ldr	x22, [x22, _fail@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x22]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	add	x23, sp, #64
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	sub	x0, x29, #96
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh4:
	adrp	x8, _SA_SIGINFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SA_SIGINFO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _timer_signal_handler@GOTPAGE
Lloh8:
	ldr	x9, [x9, _timer_signal_handler@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #104]
	add	x0, sp, #12
	bl	_sigemptyset
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	add	x0, x23, #36
	bl	_sigemptyset
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
Lloh10:
	adrp	x23, _SIGALRM@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SIGALRM@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #64
	mov	x2, #0
	bl	_sigaction
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w1, [x23]
	add	x0, sp, #12
	bl	_sigaddset
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
Lloh12:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	_sigprocmask
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w8, [x23]
	str	w8, [sp, #48]
	str	x19, [sp, #40]
Lloh15:
	adrp	x8, _SIGEV_SIGNAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGEV_SIGNAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x1, sp, #16
	mov	x0, x21
	mov	x2, x19
	bl	_timer_create
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	cmp	w20, #0
	mov	w8, #5
	csinc	w8, w8, wzr, ne
	stur	w8, [x29, #-96]
	stur	xzr, [x29, #-88]
	ldr	x0, [x19]
	sub	x2, x29, #96
	mov	w1, #0
	mov	x3, #0
	bl	_timer_settime
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
Lloh18:
	adrp	x8, _SIG_UNBLOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIG_UNBLOCK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	_sigprocmask
	mov	w0, #2
	bl	_sleep
	ldr	w8, [x22]
	cbz	w20, LBB0_3
; %bb.1:
	cbnz	w8, LBB0_6
; %bb.2:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	cbz	w8, LBB0_6
; %bb.4:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_atf_tc_fail
LBB0_6:
	ldr	x0, [x19]
	bl	_timer_delete
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_t,8,3                          ; @t
	.comm	_fail,4,2                       ; @fail
	.comm	_SA_SIGINFO,4,2                 ; @SA_SIGINFO
	.comm	_timer_signal_handler,4,2       ; @timer_signal_handler
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_SIGEV_SIGNAL,4,2               ; @SIGEV_SIGNAL
	.comm	_SIG_UNBLOCK,4,2                ; @SIG_UNBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timer fired too soon"

l_.str.1:                               ; @.str.1
	.asciz	"timer failed to fire"

	.no_dead_strip	_timer_signal_create
.subsections_via_symbols
