	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtoverlay_extract_override
_dtoverlay_extract_override:            ## @dtoverlay_extract_override
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	(%rcx), %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.3:
	movq	%rdi, %rsi
	cmpl	$5, %ebx
	ja	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	js	LBB0_19
## %bb.2:
	movl	$0, (%r12)
	movq	$0, (%r8)
	movq	_DTOVERRIDE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_6:
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dtoverlay_read_u32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, (%r12)
	addq	$4, %r15
	addl	$-4, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	subq	%r15, %r12
	movslq	%r12d, %rax
	leaq	(%rax,%r15), %rcx
	incq	%rcx
	movq	%rcx, (%r13)
	notl	%eax
	addl	%ebx, %eax
	movl	%eax, (%r14)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.13:
	movq	24(%rbp), %r13
	movq	16(%rbp), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcspn
	movl	%eax, %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	cmpl	%r12d, %edx
	jge	LBB0_17
## %bb.14:
	movslq	%edx, %rdi
	movb	(%r15,%rdi), %bl
	cmpb	$63, %bl
	jne	LBB0_16
## %bb.15:
	movl	$0, (%r14)
	movl	$0, (%r13)
	movq	_DTOVERRIDE_BOOLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_18
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_5:
	callq	_dtoverlay_error
	movq	_FDT_ERR_BADSTRUCTURE@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	js	LBB0_10
## %bb.12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movq	_DTOVERRIDE_OVERLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_17:
	movl	$-1, (%r14)
	movl	$0, (%r13)
	movq	_DTOVERRIDE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.5(%rip), %rdi
LBB0_18:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dtoverlay_debug
	jmp	LBB0_19
LBB0_16:
	addq	%r15, %rdi
	incq	%rdi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_atoi
	movl	%eax, (%r14)
	movsbl	%bl, %esi
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	callq	_strchr
	subl	%r12d, %eax
	movl	$1, %r9d
	movl	%eax, %ecx
	shll	%cl, %r9d
	movl	%r9d, (%r13)
	movq	_DTOVERRIDE_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %r8d
	leaq	L_.str.4(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dtoverlay_debug
	jmp	LBB0_19
LBB0_10:
	movq	_FDT_ERR_BADPHANDLE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".;:#?"

	.comm	_DTOVERRIDE_END,4,2             ## @DTOVERRIDE_END
L_.str.1:                               ## @.str.1
	.asciz	"  override %s: data is truncated or mangled"

	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ## @FDT_ERR_BADSTRUCTURE
L_.str.2:                               ## @.str.2
	.asciz	"  override %s: string is not NUL-terminated"

	.comm	_FDT_ERR_BADPHANDLE,4,2         ## @FDT_ERR_BADPHANDLE
	.comm	_DTOVERRIDE_OVERLAY,4,2         ## @DTOVERRIDE_OVERLAY
	.comm	_DTOVERRIDE_BOOLEAN,4,2         ## @DTOVERRIDE_BOOLEAN
L_.str.3:                               ## @.str.3
	.asciz	"  override %s: boolean target %.*s"

	.comm	_DTOVERRIDE_INTEGER,4,2         ## @DTOVERRIDE_INTEGER
L_.str.4:                               ## @.str.4
	.asciz	"  override %s: cell target %.*s @ offset %d (size %d)"

	.comm	_DTOVERRIDE_STRING,4,2          ## @DTOVERRIDE_STRING
L_.str.5:                               ## @.str.5
	.asciz	"  override %s: string target '%.*s'"

	.no_dead_strip	_dtoverlay_extract_override
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtoverlay_extract_override
_dtoverlay_extract_override:            ; @dtoverlay_extract_override
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x20, x1
	ldr	w23, [x3]
	cmp	w23, #0
	b.le	LBB0_3
; %bb.1:
	mov	x19, x0
	cmp	w23, #5
	b.hi	LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_3:
	tbnz	w23, #31, LBB0_18
; %bb.4:
	str	wzr, [x20]
	str	xzr, [x24]
Lloh2:
	adrp	x8, _DTOVERRIDE_END@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DTOVERRIDE_END@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	b	LBB0_18
LBB0_5:
	mov	x21, x6
	mov	x26, x5
	mov	x25, x3
	mov	x27, x2
	str	x7, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x22, [x2]
	mov	x0, x22
	mov	w1, #0
	bl	_dtoverlay_read_u32
	mov	x28, x0
	str	w0, [x20]
	add	x20, x22, #4
	sub	w23, w23, #4
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_memchr
	cbz	x0, LBB0_10
; %bb.6:
	sub	w22, w0, w20
	add	w8, w22, #1
	add	x9, x20, w8, sxtw
	str	x9, [x27]
	sub	w8, w23, w8
	str	w8, [x25]
	cmp	w28, #0
	b.le	LBB0_13
; %bb.7:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcspn
	mov	x25, x0
	str	x20, [x24]
	str	w0, [x26]
	cmp	w0, w22
	b.ge	LBB0_15
; %bb.8:
	add	x8, x20, w25, sxtw
	ldrb	w22, [x8]
	cmp	w22, #63
	b.ne	LBB0_16
; %bb.9:
	str	wzr, [x21]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	wzr, [x8]
Lloh7:
	adrp	x8, _DTOVERRIDE_BOOLEAN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DTOVERRIDE_BOOLEAN@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_10:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	mov	x1, x19
	bl	_dtoverlay_error
Lloh14:
	adrp	x8, _FDT_ERR_BADSTRUCTURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FDT_ERR_BADSTRUCTURE@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_13:
	tbnz	w28, #31, LBB0_19
; %bb.14:
	str	x20, [x24]
	str	w22, [x26]
Lloh16:
	adrp	x8, _DTOVERRIDE_OVERLAY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DTOVERRIDE_OVERLAY@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	b	LBB0_18
LBB0_15:
	mov	w8, #-1
	str	w8, [x21]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	wzr, [x8]
Lloh19:
	adrp	x8, _DTOVERRIDE_STRING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DTOVERRIDE_STRING@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_16:
	add	x0, x8, #1
	bl	_atoi
	str	w0, [x21]
	sxtb	w1, w22
Lloh24:
	adrp	x22, l_.str@PAGE
Lloh25:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strchr
	sub	w8, w0, w22
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w8, [x9]
Lloh26:
	adrp	x9, _DTOVERRIDE_INTEGER@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DTOVERRIDE_INTEGER@GOTPAGEOFF]
Lloh28:
	ldr	w23, [x9]
	ldr	w9, [x21]
	stp	x9, x8, [sp]
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_17:
	mov	x1, x19
	mov	x2, x25
	mov	x3, x20
	bl	_dtoverlay_debug
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
Lloh31:
	adrp	x8, _FDT_ERR_BADPHANDLE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FDT_ERR_BADPHANDLE@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".;:#?"

	.comm	_DTOVERRIDE_END,4,2             ; @DTOVERRIDE_END
l_.str.1:                               ; @.str.1
	.asciz	"  override %s: data is truncated or mangled"

	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ; @FDT_ERR_BADSTRUCTURE
l_.str.2:                               ; @.str.2
	.asciz	"  override %s: string is not NUL-terminated"

	.comm	_FDT_ERR_BADPHANDLE,4,2         ; @FDT_ERR_BADPHANDLE
	.comm	_DTOVERRIDE_OVERLAY,4,2         ; @DTOVERRIDE_OVERLAY
	.comm	_DTOVERRIDE_BOOLEAN,4,2         ; @DTOVERRIDE_BOOLEAN
l_.str.3:                               ; @.str.3
	.asciz	"  override %s: boolean target %.*s"

	.comm	_DTOVERRIDE_INTEGER,4,2         ; @DTOVERRIDE_INTEGER
l_.str.4:                               ; @.str.4
	.asciz	"  override %s: cell target %.*s @ offset %d (size %d)"

	.comm	_DTOVERRIDE_STRING,4,2          ; @DTOVERRIDE_STRING
l_.str.5:                               ; @.str.5
	.asciz	"  override %s: string target '%.*s'"

	.no_dead_strip	_dtoverlay_extract_override
.subsections_via_symbols
