	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath79_nvram_find_var           ## -- Begin function ath79_nvram_find_var
	.p2align	4, 0x90
_ath79_nvram_find_var:                  ## @ath79_nvram_find_var
	.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
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_strlen
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.1:
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	cmpl	%r13d, %r15d
	ja	LBB0_11
## %bb.3:
	cmpl	$1, %r15d
	jne	LBB0_4
## %bb.12:
	movsbl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memchr                         ## TAILCALL
LBB0_4:
	movl	%r13d, %r13d
	addq	%rbx, %r13
	movl	%r15d, %eax
	subq	%rax, %r13
	cmpq	%rbx, %r13
	jae	LBB0_6
## %bb.5:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_6:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%r13, %rbx
	ja	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	(%r14), %al
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, %r12
LBB0_11:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_ath79_nvram_find_var           ; -- Begin function ath79_nvram_find_var
	.p2align	2
_ath79_nvram_find_var:                  ; @ath79_nvram_find_var
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_strlen
	mov	x21, x0
	mov	x0, #0
	cbz	w22, LBB0_7
; %bb.1:
	cbz	w21, LBB0_7
; %bb.2:
	cmp	w21, w22
	b.hi	LBB0_7
; %bb.3:
	cmp	w21, #1
	b.ne	LBB0_5
; %bb.4:
	ldrsb	w1, [x20]
	mov	x0, x19
	mov	x2, 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
	b	_memchr
LBB0_5:
	add	x8, x19, w22, uxtw
	mov	w22, w21
	sub	x23, x8, x22
	cmp	x23, x19
	b.hs	LBB0_9
LBB0_6:
	mov	x0, #0
LBB0_7:
	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_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x19, x19, #1
	cmp	x19, x23
	b.hi	LBB0_6
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	ldrb	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_memcmp
	cbnz	x0, LBB0_8
; %bb.11:
	add	x0, x19, x22
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
