	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_property_read_string_helper ## -- Begin function of_property_read_string_helper
	.p2align	4, 0x90
_of_property_read_string_helper:        ## @of_property_read_string_helper
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	8(%rax), %r15
	xorl	%r12d, %r12d
	movl	$0, %r14d
	testq	%r15, %r15
	jle	LBB0_13
## %bb.3:
	addq	%rcx, %r15
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	%rax, -56(%rbp)                 ## 8-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r13d, %r13d
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	cmpq	%r15, %rcx
	jae	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	jbe	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %esi
	subl	%ebx, %esi
	movq	%rbx, %rdi
	callq	_strnlen
	cltq
	leaq	(%rax,%rbx), %rcx
	incq	%rcx
	cmpq	%r15, %rcx
	ja	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%r13, %r13
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jl	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, (%r13)
	addq	$8, %r13
	jmp	LBB0_5
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	subl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	testl	%r14d, %r14d
	cmovgl	%r14d, %r12d
	jmp	LBB0_18
LBB0_14:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r12d, %r12d
LBB0_17:
	subl	(%rax), %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_EILSEQ,4,2                     ## @EILSEQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_property_read_string_helper ; -- Begin function of_property_read_string_helper
	.p2align	2
_of_property_read_string_helper:        ; @of_property_read_string_helper
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x2, #0
	bl	_of_find_property
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x21, [x0]
	cbz	x21, LBB0_12
; %bb.2:
	ldrsw	x8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.3:
	mov	x23, #0
	add	x24, x21, x8
	sxtw	x25, w19
	add	x22, x25, x22
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	mov	x21, x8
	cmp	x8, x24
	b.hs	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x22, x23
	b.ls	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w1, w24, w21
	mov	x0, x21
	bl	_strnlen
	add	w8, w0, #1
	add	x8, x21, w8, sxtw
	cmp	x8, x24
	b.hi	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x20, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x23, x25
	b.lt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x21, [x20], #8
	b	LBB0_4
LBB0_11:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
Lloh2:
	adrp	x8, _ENODATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	mov	w23, #0
LBB0_14:
	sub	w8, w23, w19
Lloh4:
	adrp	x9, _ENODATA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ENODATA@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, #1
	csneg	w0, w8, w9, ge
	b	LBB0_17
LBB0_15:
Lloh7:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_EILSEQ,4,2                     ; @EILSEQ
.subsections_via_symbols
