	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pattern_trig_store_patterns
_pattern_trig_store_patterns:           ## @pattern_trig_store_patterns
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	leaq	4(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	16(%r14), %rdi
	callq	_del_timer_sync
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	*(%r12)
LBB0_2:
	movl	%ebx, (%r14)
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_pattern_trig_store_patterns_string
	jmp	LBB0_5
LBB0_4:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_pattern_trig_store_patterns_int
LBB0_5:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r12, %rdi
	callq	_pattern_trig_start_pattern
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	$0, 8(%r14)
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	testl	%ebx, %ebx
	movl	%ebx, %eax
	cmovsq	%rax, %r15
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pattern_trig_store_patterns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pattern_trig_store_patterns
_pattern_trig_store_patterns:           ; @pattern_trig_store_patterns
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x21, [x0, #8]
	add	x20, x21, #4
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x21, #16
	bl	_del_timer_sync
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	mov	x0, x22
	blr	x8
LBB0_2:
	str	w25, [x21]
	str	xzr, [x21, #8]
	mov	x0, x21
	cbz	x24, LBB0_4
; %bb.3:
	mov	x1, x24
	mov	x2, x19
	bl	_pattern_trig_store_patterns_string
	mov	x23, x0
	cbnz	w0, LBB0_7
	b	LBB0_5
LBB0_4:
	mov	x1, x23
	mov	x2, x19
	bl	_pattern_trig_store_patterns_int
	mov	x23, x0
	cbnz	w0, LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_pattern_trig_start_pattern
	cbz	w0, LBB0_9
; %bb.6:
	mov	x23, x0
	str	xzr, [x21, #8]
LBB0_7:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w8, w23
	cmp	w23, #0
	csel	x19, x8, x19, lt
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pattern_trig_store_patterns
.subsections_via_symbols
