	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_timeout                    ## -- Begin function set_timeout
	.p2align	4, 0x90
_set_timeout:                           ## @set_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	jle	LBB0_1
## %bb.4:
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	_sigalrm_received@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_bzero
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.6:
	movq	_sigalrm_handler@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_debugx
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	_ITIMER_REAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_setitimer
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_3:
	movq	_sigalrm_received@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_11
LBB0_5:
	movq	_sigalrm_handler_fatal@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_sigfillset
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_log_debugx
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_bzero
	movl	$1, -36(%rbp)
	movl	%r15d, -40(%rbp)
	movq	_ITIMER_REAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_setitimer
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session timeout disabled"

	.comm	_ITIMER_REAL,4,2                ## @ITIMER_REAL
L_.str.1:                               ## @.str.1
	.asciz	"setitimer"

	.comm	_sigalrm_received,4,2           ## @sigalrm_received
	.comm	_sigalrm_handler_fatal,4,2      ## @sigalrm_handler_fatal
	.comm	_sigalrm_handler,4,2            ## @sigalrm_handler
	.comm	_SIGALRM,4,2                    ## @SIGALRM
L_.str.2:                               ## @.str.2
	.asciz	"sigaction"

L_.str.3:                               ## @.str.3
	.asciz	"setting session timeout to %d seconds"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_timeout                    ; -- Begin function set_timeout
	.p2align	2
_set_timeout:                           ; @set_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cmp	w0, #0
	b.le	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _sigalrm_received@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sigalrm_received@GOTPAGEOFF]
Lloh2:
	str	wzr, [x8]
	add	x21, sp, #32
	add	x0, sp, #32
	mov	w1, #16
	bl	_bzero
Lloh3:
	adrp	x8, _sigalrm_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sigalrm_handler@GOTPAGEOFF]
Lloh5:
	adrp	x9, _sigalrm_handler_fatal@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sigalrm_handler_fatal@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #44]
	add	x0, x21, #8
	bl	_sigfillset
Lloh7:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #32
	mov	x2, #0
	bl	_sigaction
	cbz	w0, LBB0_3
; %bb.2:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_3:
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_debugx
	add	x0, sp, #16
	mov	w1, #16
	bl	_bzero
	mov	w8, #1
	stp	w19, w8, [sp, #16]
Lloh14:
	adrp	x8, _ITIMER_REAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ITIMER_REAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, sp, #16
	mov	x2, #0
	bl	_setitimer
	cbz	w0, LBB0_8
; %bb.4:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_err
	b	LBB0_8
LBB0_5:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_debugx
	add	x0, sp, #16
	mov	w1, #16
	bl	_bzero
Lloh21:
	adrp	x8, _ITIMER_REAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ITIMER_REAL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	add	x1, sp, #16
	mov	x2, #0
	bl	_setitimer
	cbz	w0, LBB0_7
; %bb.6:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_7:
Lloh26:
	adrp	x8, _sigalrm_received@GOTPAGE
Lloh27:
	ldr	x8, [x8, _sigalrm_received@GOTPAGEOFF]
Lloh28:
	str	wzr, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session timeout disabled"

	.comm	_ITIMER_REAL,4,2                ; @ITIMER_REAL
l_.str.1:                               ; @.str.1
	.asciz	"setitimer"

	.comm	_sigalrm_received,4,2           ; @sigalrm_received
	.comm	_sigalrm_handler_fatal,4,2      ; @sigalrm_handler_fatal
	.comm	_sigalrm_handler,4,2            ; @sigalrm_handler
	.comm	_SIGALRM,4,2                    ; @SIGALRM
l_.str.2:                               ; @.str.2
	.asciz	"sigaction"

l_.str.3:                               ; @.str.3
	.asciz	"setting session timeout to %d seconds"

.subsections_via_symbols
