	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_timeout                     ## -- Begin function do_timeout
	.p2align	4, 0x90
_do_timeout:                            ## @do_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	leaq	-24(%rbp), %rdi
	callq	_sigemptyset
	movq	$0, -32(%rbp)
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.5:
	movq	_sigalrm_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	movl	%eax, %edx
	leaq	-40(%rbp), %rsi
	callq	_sigaction
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syslog
LBB0_7:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.8:
	movq	_sigbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_sigsetjmp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.9:
	movq	_sigbuf_valid@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_10:
	movl	%ebx, %edi
	callq	_alarm
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%r14d, %r14d
LBB0_2:
	xorl	%ebx, %ebx
	movl	%ebx, %edi
	callq	_alarm
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %edx
	leaq	-40(%rbp), %rsi
	callq	_sigaction
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_syslog
LBB0_4:
	movq	_sigbuf_valid@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	%r14d, %eax
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sigalrm_handler,4,2            ## @sigalrm_handler
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can not set signal handler: %m"

	.comm	_sigbuf,4,2                     ## @sigbuf
	.comm	_sigbuf_valid,4,2               ## @sigbuf_valid
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
L_.str.1:                               ## @.str.1
	.asciz	"can not remove signal handler: %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_timeout                     ; -- Begin function do_timeout
	.p2align	2
_do_timeout:                            ; @do_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x8, sp, #8
	add	x0, x8, #16
	bl	_sigemptyset
	mov	x8, #0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x21, _SIGALRM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SIGALRM@GOTPAGEOFF]
	cbz	w19, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _sigalrm_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sigalrm_handler@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x21]
	mov	x2, #0
	add	x1, sp, #8
	bl	_sigaction
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
LBB0_3:
	cbz	w20, LBB0_6
; %bb.4:
Lloh10:
	adrp	x8, _sigbuf@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sigbuf@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w20, #1
	mov	x1, x20
	bl	_sigsetjmp
	mov	x1, x0
	cbnz	w0, LBB0_8
; %bb.5:
Lloh13:
	adrp	x8, _sigbuf_valid@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sigbuf_valid@GOTPAGEOFF]
Lloh15:
	str	w20, [x8]
LBB0_6:
	mov	x0, x19
	bl	_alarm
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	mov	w0, #0
	mov	w1, #0
LBB0_8:
	mov	x19, x1
	mov	w0, #0
	bl	_alarm
Lloh16:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x21]
	mov	x2, #0
	add	x1, sp, #8
	bl	_sigaction
	cbz	x0, LBB0_10
; %bb.9:
Lloh19:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
LBB0_10:
	mov	w8, #0
Lloh24:
	adrp	x9, _sigbuf_valid@GOTPAGE
Lloh25:
	ldr	x9, [x9, _sigbuf_valid@GOTPAGEOFF]
Lloh26:
	str	wzr, [x9]
	mov	x0, x19
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_sigalrm_handler,4,2            ; @sigalrm_handler
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can not set signal handler: %m"

	.comm	_sigbuf,4,2                     ; @sigbuf
	.comm	_sigbuf_valid,4,2               ; @sigbuf_valid
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
l_.str.1:                               ; @.str.1
	.asciz	"can not remove signal handler: %m"

.subsections_via_symbols
