	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_append_path_component       ## -- Begin function av_append_path_component
	.p2align	4, 0x90
_av_append_path_component:              ## @av_append_path_component
	.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	%rsi, %r13
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	testq	%r13, %r13
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
	subq	%r14, %rcx
	cmpq	%rcx, %r12
	ja	LBB0_3
## %bb.7:
	leaq	(%r14,%r12), %rdi
	addq	$-2, %rax
	cmpq	%rax, %rdi
	ja	LBB0_3
## %bb.9:
	addq	$2, %rdi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_15
## %bb.11:
	leaq	1(%r12), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rbx
	movq	%rax, %rdx
	callq	_av_strlcpy
	testq	%r14, %r14
	je	LBB0_16
## %bb.12:
	cmpb	$47, -1(%r15,%r12)
	movb	(%r13), %al
	jne	LBB0_17
## %bb.13:
	leaq	-1(%r12), %rbx
	cmpb	$47, %al
	cmovneq	%r12, %rbx
	jmp	LBB0_20
LBB0_4:
	movq	%r13, %rdi
	jmp	LBB0_6
LBB0_3:
	xorl	%r15d, %r15d
LBB0_21:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_strdup                      ## TAILCALL
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_17:
	cmpb	$47, %al
	jne	LBB0_19
LBB0_16:
	movq	%r12, %rbx
	jmp	LBB0_20
LBB0_19:
	movb	$47, (%r15,%r12)
LBB0_20:
	movq	%r15, %rdi
	addq	%rbx, %rdi
	leaq	1(%r14), %rdx
	movq	%r13, %rsi
	callq	_av_strlcpy
	addq	%r14, %rbx
	movb	$0, (%r15,%rbx)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_append_path_component       ; -- Begin function av_append_path_component
	.p2align	2
_av_append_path_component:              ; @av_append_path_component
	.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
	mov	x19, x1
	cbz	x0, LBB0_6
; %bb.1:
	mov	x23, x0
	cbz	x19, LBB0_7
; %bb.2:
	mov	x0, x23
	bl	_strlen
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
Lloh0:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x9, x8, x0
	cmp	x20, x9
	b.hi	LBB0_4
; %bb.3:
	mov	x21, x0
	sub	x9, x8, #2
	add	x8, x0, x20
	cmp	x8, x9
	b.ls	LBB0_9
LBB0_4:
	mov	x22, #0
LBB0_5:
	mov	x0, x22
	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_6:
	mov	x0, x19
	b	LBB0_8
LBB0_7:
	mov	x0, x23
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
	b	_av_strdup
LBB0_9:
	add	x0, x8, #2
	bl	_av_malloc
	mov	x22, x0
	cbz	x0, LBB0_5
; %bb.10:
	cbz	x20, LBB0_16
; %bb.11:
	add	x24, x20, #1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_av_strlcpy
	cbz	x21, LBB0_16
; %bb.12:
	sub	x8, x20, #1
	ldrb	w10, [x22, x8]
	ldrb	w9, [x19]
	cmp	w10, #47
	b.ne	LBB0_14
; %bb.13:
	cmp	w9, #47
	csel	x20, x8, x20, eq
	b	LBB0_16
LBB0_14:
	cmp	w9, #47
	b.eq	LBB0_16
; %bb.15:
	mov	w8, #47
	strb	w8, [x22, x20]
	mov	x20, x24
LBB0_16:
	add	x0, x22, x20
	add	x2, x21, #1
	mov	x1, x19
	bl	_av_strlcpy
	add	x8, x20, x21
	strb	wzr, [x22, x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
.subsections_via_symbols
