	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AVIFILE_BasenameW              ## -- Begin function AVIFILE_BasenameW
	.p2align	4, 0x90
_AVIFILE_BasenameW:                     ## @AVIFILE_BasenameW
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_lstrlenW
	cltq
	leaq	(%rbx,%rax), %rcx
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movabsq	$35184372090881, %rax           ## imm = 0x200000000801
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rcx
	cmpq	%rbx, %rcx
	jbe	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx), %edx
	addb	$-47, %dl
	cmpb	$45, %dl
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%dl, %edx
	btq	%rdx, %rax
	jae	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	cmpq	%rbx, %rcx
	setne	%al
	addq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AVIFILE_BasenameW              ; -- Begin function AVIFILE_BasenameW
	.p2align	2
_AVIFILE_BasenameW:                     ; @AVIFILE_BasenameW
	.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
	mov	x19, x0
	bl	_lstrlenW
	add	x8, x19, w0, sxtw
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w9, #1
	mov	x10, #2049
	movk	x10, #8192, lsl #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8]
	sub	w11, w11, #47
	cmp	w11, #45
	lsl	x11, x9, x11
	and	x11, x11, x10
	ccmp	x11, #0, #4, ls
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x8, #1
	cmp	x8, x19
	b.hi	LBB0_2
LBB0_4:
	cmp	x8, x19
	cinc	x0, x8, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
