	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_alarm
_check_alarm:                           ## @check_alarm
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_bzero
	movq	_ITIMER_REAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_setitimer
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_alarm_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_2:
	movq	_alarm_id@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	jmp	LBB0_8
LBB0_3:
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	_alarm_errno@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.1(%rip), %rdi
	callq	_fail_errno
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_fail_errno
LBB0_7:
	movl	$-1, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ITIMER_REAL,4,2                ## @ITIMER_REAL
	.comm	_alarm_errno,8,3                ## @alarm_errno
	.comm	_alarm_id,4,2                   ## @alarm_id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setitimer"

	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"ksem_post() (via timeout)"

	.no_dead_strip	_check_alarm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_alarm
_check_alarm:                           ; @check_alarm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #4
	bl	_bzero
Lloh0:
	adrp	x8, _ITIMER_REAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ITIMER_REAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_setitimer
	cbz	w19, LBB0_4
; %bb.1:
	mov	w0, #0
Lloh3:
	adrp	x8, _alarm_errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _alarm_errno@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
LBB0_2:
Lloh6:
	adrp	x8, _alarm_id@GOTPAGE
Lloh7:
	ldr	x8, [x8, _alarm_id@GOTPAGEOFF]
	mov	w9, #-1
Lloh8:
	str	w9, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	tbnz	x0, #63, LBB0_7
; %bb.5:
Lloh9:
	adrp	x19, _alarm_errno@GOTPAGE
Lloh10:
	ldr	x19, [x19, _alarm_errno@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.6:
Lloh11:
	adrp	x9, _errno@GOTPAGE
Lloh12:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh13:
	str	x8, [x9]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fail_errno
	str	xzr, [x19]
	mov	w0, #-1
	b	LBB0_3
LBB0_7:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fail_errno
	mov	w0, #-1
	b	LBB0_3
LBB0_8:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ITIMER_REAL,4,2                ; @ITIMER_REAL
	.comm	_alarm_errno,8,3                ; @alarm_errno
	.comm	_alarm_id,4,2                   ; @alarm_id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setitimer"

	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"ksem_post() (via timeout)"

	.no_dead_strip	_check_alarm
.subsections_via_symbols
