	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pat_add                        ## -- Begin function pat_add
	.p2align	4, 0x90
_pat_add:                               ## @pat_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_2
## %bb.4:
	movq	%rsi, %r14
	movl	$48, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rbx, (%rax)
	movq	$0, 40(%rax)
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, 32(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movq	%r14, 8(%r15)
	movq	_pathead@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.8:
	movq	_pattail@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, 16(%rcx)
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movl	$1, %edi
	callq	_paxwarn
	movl	$-1, %eax
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	movq	%r15, (%rax)
	movq	_pattail@GOTPCREL(%rip), %rax
LBB0_9:
	movq	%r15, (%rax)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Empty pattern string"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate memory for pattern string"

	.comm	_pathead,8,3                    ## @pathead
	.comm	_pattail,8,3                    ## @pattail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pat_add                        ; -- Begin function pat_add
	.p2align	2
_pat_add:                               ; @pat_add
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x19, x1
	mov	w0, #48
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	str	x21, [x0]
	str	xzr, [x0, #40]
	mov	x0, x21
	bl	_strlen
	str	w0, [x20, #32]
	stp	xzr, xzr, [x20, #16]
	str	x19, [x20, #8]
Lloh0:
	adrp	x8, _pathead@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pathead@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.4:
	mov	w0, #0
Lloh2:
	adrp	x8, _pattail@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pattail@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x20, [x9, #16]
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	w0, #1
	bl	_paxwarn
	mov	w0, #-1
	b	LBB0_10
LBB0_7:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_8:
	mov	w0, #0
	str	x20, [x8]
Lloh8:
	adrp	x8, _pattail@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pattail@GOTPAGEOFF]
LBB0_9:
	str	x20, [x8]
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Empty pattern string"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate memory for pattern string"

	.comm	_pathead,8,3                    ; @pathead
	.comm	_pattail,8,3                    ; @pattail
.subsections_via_symbols
