	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r15
	movq	_SIGEV_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_SIGUSR1@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_timer_create
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigemptyset
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	movl	$1, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -80(%rbp)
	movq	_NANOSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, -88(%rbp)
	movl	-40(%rbp), %edi
	movq	_TIMER_RELTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_timer_settime
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.4:
	leaq	-44(%rbp), %r14
	leaq	-36(%rbp), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sigwait
	movl	-36(%rbp), %eax
	cmpl	(%r12), %eax
	jne	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	jmp	LBB0_2
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
LBB0_2:
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGEV_SIGNAL,4,2               ## @SIGEV_SIGNAL
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cannot create CLOCK_HIGHRES timer: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.comm	_NANOSEC,4,2                    ## @NANOSEC
	.comm	_TIMER_RELTIME,4,2              ## @TIMER_RELTIME
L_.str.1:                               ## @.str.1
	.asciz	"%s: timer_settime() failed: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldr	x19, [x1]
Lloh0:
	adrp	x8, _SIGEV_SIGNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGEV_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _SIGUSR1@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SIGUSR1@GOTPAGEOFF]
	ldr	w9, [x20]
	stp	w9, w8, [x29, #-24]
Lloh5:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	sub	x1, x29, #24
	add	x2, sp, #16
	bl	_timer_create
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	add	x0, sp, #20
	bl	_sigemptyset
	ldr	w1, [x20]
	add	x0, sp, #20
	bl	_sigaddset
Lloh8:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, sp, #20
	mov	x2, #0
	bl	_sigprocmask
	mov	w8, #1
	str	w8, [sp, #40]
	str	xzr, [sp, #48]
	str	xzr, [sp, #32]
Lloh11:
	adrp	x8, _NANOSEC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NANOSEC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [sp, #24]
	ldr	w0, [sp, #16]
Lloh14:
	adrp	x8, _TIMER_RELTIME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TIMER_RELTIME@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x3, #0
	bl	_timer_settime
	cmn	w0, #1
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #20
	add	x1, sp, #12
	bl	_sigwait
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
Lloh33:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGEV_SIGNAL,4,2               ; @SIGEV_SIGNAL
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cannot create CLOCK_HIGHRES timer: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.comm	_NANOSEC,4,2                    ; @NANOSEC
	.comm	_TIMER_RELTIME,4,2              ; @TIMER_RELTIME
l_.str.1:                               ; @.str.1
	.asciz	"%s: timer_settime() failed: %s\n"

.subsections_via_symbols
