	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr2_cfg_load_patterns
_tr2_cfg_load_patterns:                 ## @tr2_cfg_load_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_tr2_cfg_loaded@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_1:
	movq	_tr2_cfg_count_patterns@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	$1, (%rax)
	movq	_TR2_SYSENV_CFG_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr2_sysenv_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$44, %edx
	movl	$-1, %ecx
	callq	_strbuf_split_buf
	movq	%rax, %rbx
	movq	_tr2_cfg_patterns@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_strbuf_trim_trailing_newline
	movq	(%rbx), %rdi
	callq	_strbuf_trim
	movq	8(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rdi), %rax
	cmpb	$44, -1(%rax,%rsi)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	decq	%rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_strbuf_setlen
	movq	(%rbx), %rdi
	jmp	LBB0_9
LBB0_10:
	movq	(%r14), %rax
LBB0_11:
	subq	%rax, %rbx
	shrq	$3, %rbx
	movq	_tr2_cfg_count_patterns@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_tr2_cfg_loaded,4,2             ## @tr2_cfg_loaded
	.comm	_tr2_cfg_count_patterns,4,2     ## @tr2_cfg_count_patterns
	.comm	_TR2_SYSENV_CFG_PARAM,4,2       ## @TR2_SYSENV_CFG_PARAM
	.comm	_tr2_cfg_patterns,8,3           ## @tr2_cfg_patterns
	.no_dead_strip	_tr2_cfg_load_patterns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr2_cfg_load_patterns
_tr2_cfg_load_patterns:                 ; @tr2_cfg_load_patterns
	.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
Lloh0:
	adrp	x8, _tr2_cfg_loaded@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tr2_cfg_loaded@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_3
LBB0_1:
Lloh2:
	adrp	x8, _tr2_cfg_count_patterns@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tr2_cfg_count_patterns@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w9, #1
	str	w9, [x8]
Lloh5:
	adrp	x8, _TR2_SYSENV_CFG_PARAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TR2_SYSENV_CFG_PARAM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_tr2_sysenv_get
	cbz	x0, LBB0_1
; %bb.4:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_1
; %bb.5:
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	mov	w2, #44
	mov	w3, #-1
	bl	_strbuf_split_buf
	mov	x19, x0
Lloh8:
	adrp	x20, _tr2_cfg_patterns@GOTPAGE
Lloh9:
	ldr	x20, [x20, _tr2_cfg_patterns@GOTPAGEOFF]
	str	x0, [x20]
	ldr	x0, [x0]
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x8, x19
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_strbuf_trim_trailing_newline
	ldr	x0, [x19]
	bl	_strbuf_trim
	ldr	x0, [x19, #8]!
	cbz	x0, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x0]
	cbz	w8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x0, #8]
	sub	x1, x8, #1
	ldrb	w8, [x9, x1]
	cmp	w8, #44
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_strbuf_setlen
	ldr	x0, [x19]
	b	LBB0_7
LBB0_11:
	ldr	x8, [x20]
LBB0_12:
	sub	x8, x19, x8
	lsr	x0, x8, #3
Lloh10:
	adrp	x8, _tr2_cfg_count_patterns@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tr2_cfg_count_patterns@GOTPAGEOFF]
Lloh12:
	str	w0, [x8]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_tr2_cfg_loaded,4,2             ; @tr2_cfg_loaded
	.comm	_tr2_cfg_count_patterns,4,2     ; @tr2_cfg_count_patterns
	.comm	_TR2_SYSENV_CFG_PARAM,4,2       ; @TR2_SYSENV_CFG_PARAM
	.comm	_tr2_cfg_patterns,8,3           ; @tr2_cfg_patterns
	.no_dead_strip	_tr2_cfg_load_patterns
.subsections_via_symbols
