	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_timeout
_test_timeout:                          ## @test_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rax
	decq	%rcx
	movq	%rcx, 8(%rdi)
	je	LBB0_3
## %bb.2:
	movq	_DEBUG_MCMD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_gig_dbg
	jmp	LBB0_4
LBB0_3:
	movl	(%rax), %r8d
	movl	4(%rax), %edi
	movq	_EV_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_gigaset_add_event
	movl	$1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MCMD,4,2                 ## @DEBUG_MCMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decreased timer of %p to %lu"

	.comm	_EV_TIMEOUT,4,2                 ## @EV_TIMEOUT
	.no_dead_strip	_test_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_timeout
_test_timeout:                          ; @test_timeout
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x8, x0
	subs	x3, x9, #1
	str	x3, [x0, #8]
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _DEBUG_MCMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEBUG_MCMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_gig_dbg
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x9, _EV_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EV_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	ldp	w4, w0, [x8]
	mov	x1, x8
	mov	x5, #0
	bl	_gigaset_add_event
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MCMD,4,2                 ; @DEBUG_MCMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decreased timer of %p to %lu"

	.comm	_EV_TIMEOUT,4,2                 ; @EV_TIMEOUT
	.no_dead_strip	_test_timeout
.subsections_via_symbols
