	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_stop                   ## -- Begin function gigaset_stop
	.p2align	4, 0x90
_gigaset_stop:                          ## @gigaset_stop
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$1, (%rbx)
	leaq	12(%rbx), %rsi
	movq	_EV_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gigaset_add_event
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_gig_dbg
	movq	%rbx, %rdi
	callq	_gigaset_schedule_event
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	cmpl	$0, (%rbx)
	sete	%sil
	callq	_wait_event
	movq	%rbx, %rdi
	callq	_cleanup_cs
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_STOP,4,2                    ## @EV_STOP
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scheduling STOP"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_stop                   ; -- Begin function gigaset_stop
	.p2align	2
_gigaset_stop:                          ; @gigaset_stop
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	w8, #1
	mov	x1, x20
	str	w8, [x1], #12
Lloh0:
	adrp	x8, _EV_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_gigaset_add_event
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DEBUG_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gig_dbg
	mov	x0, x20
	bl	_gigaset_schedule_event
	ldr	w0, [x20, #8]
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w1, eq
	bl	_wait_event
	mov	x0, x20
	bl	_cleanup_cs
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_STOP,4,2                    ; @EV_STOP
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scheduling STOP"

.subsections_via_symbols
