	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_dynstr_rfind_ch            ## -- Begin function atf_dynstr_rfind_ch
	.p2align	4, 0x90
_atf_dynstr_rfind_ch:                   ## @atf_dynstr_rfind_ch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	decq	%rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	$-1, %rcx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rdi), %rdx
	leaq	-1(%rax), %rcx
	cmpb	%sil, (%rdx,%rax)
	jne	LBB0_1
LBB0_3:
	cmpq	$-1, %rax
	jne	LBB0_5
## %bb.4:
	movq	_atf_dynstr_npos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atf_dynstr_npos,8,3            ## @atf_dynstr_npos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_dynstr_rfind_ch            ; -- Begin function atf_dynstr_rfind_ch
	.p2align	2
_atf_dynstr_rfind_ch:                   ; @atf_dynstr_rfind_ch
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	sub	x9, x8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	cmn	x9, #1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x0, #8]
	ldrb	w10, [x9, x8]
	sub	x9, x8, #1
	cmp	w10, w1, uxtb
	b.ne	LBB0_1
LBB0_3:
Lloh0:
	adrp	x9, _atf_dynstr_npos@GOTPAGE
Lloh1:
	ldr	x9, [x9, _atf_dynstr_npos@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmn	x8, #1
	csel	x0, x9, x8, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_atf_dynstr_npos,8,3            ; @atf_dynstr_npos
.subsections_via_symbols
