	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_os_strrchr                     ## -- Begin function os_strrchr
	.p2align	4, 0x90
_os_strrchr:                            ## @os_strrchr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	-2(%rdi), %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, 2(%rcx)
	leaq	1(%rcx), %rcx
	jne	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, %rcx
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%rcx), %edx
	decq	%rcx
	cmpl	%esi, %edx
	jne	LBB0_3
## %bb.5:
	incq	%rcx
	movq	%rcx, %rax
LBB0_6:
	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	_os_strrchr                     ; -- Begin function os_strrchr
	.p2align	2
_os_strrchr:                            ; @os_strrchr
	.cfi_startproc
; %bb.0:
	sub	x8, x0, #2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8, #2]
	add	x8, x8, #1
	cbnz	w9, LBB0_1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w9, [x8], #-1
	cmp	w9, w1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x0
	b.hs	LBB0_2
; %bb.4:
	mov	x0, #0
	ret
LBB0_5:
	add	x0, x8, #1
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
