	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_pattern_mbs
_add_pattern_mbs:                       ## @add_pattern_mbs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	-1(%rax), %rdx
	cmpb	$47, -1(%r12,%rax)
	cmovneq	%rax, %rdx
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_nomem                    ## TAILCALL
LBB0_2:
	xorl	%edx, %edx
LBB0_4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_mstring_copy_mbs_len
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_match_list_add
	movq	_PATTERN_IS_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATTERN_IS_SET,4,2             ## @PATTERN_IS_SET
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_add_pattern_mbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_pattern_mbs
_add_pattern_mbs:                       ; @add_pattern_mbs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	cbz	x0, LBB0_4
; %bb.2:
	sub	x8, x0, #1
	ldrb	w9, [x21, x8]
	cmp	w9, #47
	csel	x2, x8, x0, eq
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_error_nomem
LBB0_4:
	mov	x2, #0
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	bl	_archive_mstring_copy_mbs_len
	mov	x0, x20
	mov	x1, x22
	bl	_match_list_add
Lloh0:
	adrp	x8, _PATTERN_IS_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATTERN_IS_SET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh3:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PATTERN_IS_SET,4,2             ; @PATTERN_IS_SET
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_add_pattern_mbs
.subsections_via_symbols
