	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pf_anchor_copyout              ## -- Begin function pf_anchor_copyout
	.p2align	4, 0x90
_pf_anchor_copyout:                     ## @pf_anchor_copyout
	.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), %rax
	movb	$0, (%rax)
	cmpq	$0, 16(%rsi)
	je	LBB0_17
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	cmpl	$0, (%rsi)
	je	LBB0_2
## %bb.3:
	movq	%rdi, %r13
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_rs_malloc
	movq	%rax, %rbx
	movl	$1, %eax
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.4:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rax), %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_strlcpy
	cmpl	$2, (%r15)
	jge	LBB0_8
	jmp	LBB0_10
LBB0_2:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	(%r14), %rdi
	movq	16(%r15), %rax
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_strlcat
	cmpq	$0, 8(%r15)
	je	LBB0_17
LBB0_16:
	movq	(%r14), %rdi
	cmpb	$0, (%rdi)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$8, %edx
	callq	_strlcat
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movb	$0, (%rbx)
	cmpl	$2, (%r15)
	jl	LBB0_10
LBB0_8:
	movl	$1, %r12d
	leaq	L_.str.1(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	cmoveq	%rbx, %rax
	movb	$0, (%rax)
	movq	(%r14), %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_strlcat
	incl	%r12d
	cmpl	(%r15), %r12d
	jl	LBB0_9
LBB0_10:
	movq	16(%r15), %rax
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	movq	16(%r15), %rcx
	movq	(%rcx), %r13
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_printf
	movq	%rbx, %rdi
	callq	_rs_free
	movl	$1, %eax
	jmp	LBB0_18
LBB0_12:
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_strlen
	cmpq	%rax, %r12
	jle	LBB0_14
## %bb.13:
	incq	%rax
	xorl	%ecx, %ecx
	cmpb	$0, (%rbx)
	movq	(%r14), %rdi
	cmovneq	%rax, %rcx
	addq	%rcx, %r13
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_strlcat
LBB0_14:
	movq	%rbx, %rdi
	callq	_rs_free
	cmpq	$0, 8(%r15)
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
L_.str.1:                               ## @.str.1
	.asciz	"../"

L_.str.2:                               ## @.str.2
	.asciz	"pf_anchor_copyout: '%s' '%s'\n"

L_.str.3:                               ## @.str.3
	.asciz	"/*"

L_.str.4:                               ## @.str.4
	.asciz	"*"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pf_anchor_copyout              ; -- Begin function pf_anchor_copyout
	.p2align	2
_pf_anchor_copyout:                     ; @pf_anchor_copyout
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x2]
	strb	wzr, [x8]
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x23, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_rs_malloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	x1, [x8]
	ldr	w2, [x23]
	mov	x0, x21
	bl	_strlcpy
	b	LBB0_11
LBB0_5:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #8
	bl	_strlcpy
	ldr	x0, [x19]
	ldr	x8, [x20, #16]
	ldr	x1, [x8]
	mov	w2, #8
	bl	_strlcat
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_6:
	ldr	x0, [x19]
	ldrb	w8, [x0]
Lloh4:
	adrp	x9, l_.str.3@PAGE
Lloh5:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh6:
	adrp	x10, l_.str.4@PAGE
Lloh7:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
	mov	w2, #8
	bl	_strlcat
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #1
	b	LBB0_8
LBB0_10:
	strb	wzr, [x21]
LBB0_11:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.12:
	mov	w23, #1
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csel	x8, x21, x0, eq
	strb	wzr, [x8]
	ldr	x0, [x19]
	mov	x1, x22
	mov	w2, #8
	bl	_strlcat
	add	w23, w23, #1
	ldr	w8, [x20]
	cmp	w23, w8
	b.lt	LBB0_13
LBB0_14:
	ldr	x8, [x20, #16]
	ldr	x22, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	ldr	x8, [x20, #16]
	ldr	x22, [x8]
	cbz	x0, LBB0_16
; %bb.15:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_printf
	mov	x0, x21
	bl	_rs_free
	mov	w0, #1
	b	LBB0_8
LBB0_16:
	mov	x0, x22
	bl	_strlen
	mov	x23, x0
	mov	x0, x21
	bl	_strlen
	cmp	x23, x0
	b.le	LBB0_18
; %bb.17:
	ldr	x8, [x19]
	ldrb	w9, [x21]
	cmp	w9, #0
	csinc	x9, xzr, x0, eq
	add	x1, x22, x9
	mov	x0, x8
	mov	w2, #8
	bl	_strlcat
LBB0_18:
	mov	x0, x21
	bl	_rs_free
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
l_.str.1:                               ; @.str.1
	.asciz	"../"

l_.str.2:                               ; @.str.2
	.asciz	"pf_anchor_copyout: '%s' '%s'\n"

l_.str.3:                               ; @.str.3
	.asciz	"/*"

l_.str.4:                               ; @.str.4
	.asciz	"*"

.subsections_via_symbols
