	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pattern_trig_store_patterns_string
_pattern_trig_store_patterns_string:    ## @pattern_trig_store_patterns_string
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	decq	%r15
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	leaq	-44(%rbp), %r14
	xorl	%edi, %edi
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MAX_PATTERNS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -44(%rbp)
	addq	%r12, %rdi
	movq	8(%rbx), %rcx
	leaq	(%rcx,%rax,8), %rdx
	addq	$4, %rdx
	leaq	(%rcx,%rax,8), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %r8
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-44(%rbp), %rax
	movslq	%r13d, %rdi
	addq	%rax, %rdi
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movl	%edi, %r13d
	cmpq	%rdi, %r15
	ja	LBB0_2
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	$0, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATTERNS,8,3               ## @MAX_PATTERNS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d %u %n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pattern_trig_store_patterns_string
.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_string
_pattern_trig_store_patterns_string:    ; @pattern_trig_store_patterns_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	subs	x22, x2, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x8, #0
	mov	w24, #0
	ldr	x9, [x0]
Lloh0:
	adrp	x23, _MAX_PATTERNS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_PATTERNS@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23]
	cmp	x9, x10
	b.hs	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [sp, #12]
	add	x0, x20, x8
	ldr	x8, [x19, #8]
	add	x3, x8, x9, lsl #3
	add	x2, x3, #4
	add	x4, sp, #12
	mov	x1, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [sp, #12]
	add	x8, x8, w24, sxtw
	ldr	x9, [x19]
	add	x9, x9, #1
	str	x9, [x19]
	mov	x24, x8
	cmp	x22, x8
	b.hi	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	str	xzr, [x19]
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATTERNS,8,3               ; @MAX_PATTERNS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d %u %n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pattern_trig_store_patterns_string
.subsections_via_symbols
