	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtoverlay_add
_dtoverlay_add:                         ## @dtoverlay_add
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_strlen
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpl	$6, %ebx
	jl	LBB0_3
## %bb.2:
	addl	$-5, %ebx
	movl	%ebx, %edi
	addq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movq	_overlay_src_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_sprintf_dup
	movq	%rax, %r15
	jmp	LBB0_9
LBB0_4:
	movq	_work_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_sprintf_dup
	movq	%rax, %r15
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_run_cmd
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%r12, %rdx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r15
	incq	%r15
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
	addl	$-5, %ebx
	movq	%r15, %rdx
LBB0_8:
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_sprintf_dup
	movq	%r12, %r15
	movq	%rax, %r12
LBB0_9:
	movq	_dry_run@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.8(%rip), %r12
	jmp	LBB0_12
LBB0_11:
	movl	(%r13), %esi
	leaq	L_.str.9(%rip), %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_sprintf_dup
	movq	%rax, %r12
LBB0_12:
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_DTOVERLAY_PADDING
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dtoverlay_load_dtb
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rax, %rbx
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.14:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.10(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_16:
	leaq	-88(%rbp), %rdi
	callq	_string_vec_init
	movq	%rbx, %rax
LBB0_17:
	testl	%r14d, %r14d
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_29
## %bb.18:
	movl	%r14d, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	L_.str.14(%rip), %rdi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_sprintf_dup
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_free_string
	incq	%rbx
	cmpq	%rbx, -112(%rbp)                ## 8-byte Folded Reload
	je	LBB0_30
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%rbx,8), %r15
	movq	%r15, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, %r12
	movl	%r12d, %esi
	subl	%r15d, %esi
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_sprintf_dup
	movq	%rax, %r15
	incq	%r12
	movq	%rax, %r13
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	L_.str.11(%rip), %r12
	xorl	%r13d, %r13d
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	leaq	-44(%rbp), %rdx
	callq	_dtoverlay_find_override
	testq	%rax, %rax
	je	LBB0_41
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	-44(%rbp), %ecx
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%r12, %r8
	callq	_dtoverlay_apply_override
	testl	%eax, %eax
	je	LBB0_27
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%r12, %r8
	leaq	-88(%rbp), %r9
	callq	_dtparam_apply
	testl	%eax, %eax
	jne	LBB0_42
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	L_.str.15(%rip), %rsi
	testq	%r14, %r14
	je	LBB0_19
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r14, %rsi
	jmp	LBB0_19
LBB0_29:
	xorl	%r14d, %r14d
LBB0_30:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_35
## %bb.31:
	movl	-88(%rbp), %edi
	shll	$8, %edi
	addl	$2048, %edi                     ## imm = 0x800
	callq	_dtoverlay_create_dtb
	movq	%rax, %r12
	cmpl	$0, -88(%rbp)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_34
## %bb.32:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax
	movq	(%rax,%rbx,8), %r15
	movq	%r15, %rdi
	leaq	L_.str.16(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_sscanf
	addq	$8, %r15
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_dtoverlay_find_phandle
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	leaq	-68(%rbp), %rcx
	callq	_dtoverlay_get_property
	movl	-44(%rbp), %edx
	movl	-68(%rbp), %r9d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	movq	%rax, %r8
	callq	_dtoverlay_create_prop_fragment
	incq	%rbx
	movslq	-88(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_33
LBB0_34:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_dtoverlay_free_dtb
LBB0_35:
	leaq	L_.str.17(%rip), %rsi
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dtoverlay_delete_node
	testq	%r14, %r14
	je	LBB0_37
## %bb.36:
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dtoverlay_dtb_set_trailer
LBB0_37:
	movq	_work_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_sprintf_dup
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dtoverlay_pack_dtb
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dtoverlay_save_dtb
	movq	%rbx, %rdi
	callq	_dtoverlay_free_dtb
	movq	_dry_run@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_44
## %bb.38:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_apply_overlay
	testl	%eax, %eax
	jne	LBB0_44
## %bb.39:
	movq	_error_file@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	$1, %r15d
	testq	%rsi, %rsi
	je	LBB0_44
## %bb.40:
	movq	%r12, %rdi
	callq	_rename
	movq	(%r14), %rdi
	callq	_free_string
	jmp	LBB0_44
LBB0_41:
	leaq	L_.str.12(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_43
LBB0_42:
	leaq	L_.str.13(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_error
LBB0_43:
	movl	%eax, %r15d
LBB0_44:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dtparam"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

	.comm	_work_dir,4,2                   ## @work_dir
L_.str.2:                               ## @.str.2
	.asciz	"base.dtb"

L_.str.3:                               ## @.str.3
	.asciz	"dtc -I fs -O dtb -o '%s' /proc/device-tree 1>/dev/null 2>&1"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to read active DTB"

L_.str.5:                               ## @.str.5
	.asciz	".dtbo"

L_.str.6:                               ## @.str.6
	.asciz	"%.*s"

L_.str.7:                               ## @.str.7
	.asciz	"%s/%s.dtbo"

	.comm	_overlay_src_dir,4,2            ## @overlay_src_dir
	.comm	_dry_run,8,3                    ## @dry_run
L_.str.8:                               ## @.str.8
	.asciz	"dry_run"

L_.str.9:                               ## @.str.9
	.asciz	"%d_%s"

L_.str.10:                              ## @.str.10
	.asciz	"Failed to read '%s'"

L_.str.11:                              ## @.str.11
	.asciz	"true"

L_.str.12:                              ## @.str.12
	.asciz	"Unknown parameter '%s'"

L_.str.13:                              ## @.str.13
	.asciz	"Failed to set %s=%s"

L_.str.14:                              ## @.str.14
	.asciz	"%s %s=%s"

L_.str.15:                              ## @.str.15
	.space	1

L_.str.16:                              ## @.str.16
	.asciz	"%8x"

L_.str.17:                              ## @.str.17
	.asciz	"/__symbols__"

	.comm	_error_file,8,3                 ## @error_file
	.no_dead_strip	_dtoverlay_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtoverlay_add
_dtoverlay_add:                         ; @dtoverlay_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x3
	mov	x25, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_strlen
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w23, #6
	b.lt	LBB0_3
; %bb.2:
	sub	w24, w23, #5
	add	x0, x19, w24, uxtw
Lloh2:
	adrp	x1, l_.str.5@PAGE
Lloh3:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
LBB0_3:
Lloh4:
	adrp	x8, _overlay_src_dir@GOTPAGE
Lloh5:
	ldr	x8, [x8, _overlay_src_dir@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	stp	x8, x19, [sp]
Lloh7:
	adrp	x0, l_.str.7@PAGE
Lloh8:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_sprintf_dup
	mov	x23, x0
	b	LBB0_10
LBB0_4:
Lloh9:
	adrp	x8, _work_dir@GOTPAGE
Lloh10:
	ldr	x8, [x8, _work_dir@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_sprintf_dup
	mov	x23, x0
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	bl	_run_cmd
	cbz	x0, LBB0_10
; %bb.5:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_error
LBB0_6:
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_8
; %bb.7:
	add	x23, x0, #1
	mov	x0, x23
	bl	_strlen
	sub	w24, w0, #5
	b	LBB0_9
LBB0_8:
	mov	x23, x19
LBB0_9:
	stp	x24, x23, [sp]
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_sprintf_dup
	mov	x23, x19
	mov	x19, x0
LBB0_10:
Lloh22:
	adrp	x8, _dry_run@GOTPAGE
Lloh23:
	ldr	x8, [x8, _dry_run@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh25:
	adrp	x19, l_.str.8@PAGE
Lloh26:
	add	x19, x19, l_.str.8@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	w8, [x22]
	stp	x8, x19, [sp]
Lloh27:
	adrp	x0, l_.str.9@PAGE
Lloh28:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_sprintf_dup
	mov	x19, x0
LBB0_13:
	mov	w0, #4096
	bl	_DTOVERLAY_PADDING
	mov	x1, x0
	mov	x0, x23
	bl	_dtoverlay_load_dtb
	cbz	x0, LBB0_26
; %bb.14:
	mov	x22, x0
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	cbz	x21, LBB0_28
; %bb.15:
	mov	x24, #0
	cmp	w25, #1
	b.lt	LBB0_29
LBB0_16:
	mov	x23, #0
	mov	w26, w25
Lloh29:
	adrp	x25, l_.str.14@PAGE
Lloh30:
	add	x25, x25, l_.str.14@PAGEOFF
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x5, sp, #48
	mov	x0, x22
	mov	x1, x27
	mov	x4, x19
	bl	_dtparam_apply
	cbnz	w0, LBB0_25
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	cmp	x23, #0
Lloh31:
	adrp	x8, l_.str.15@PAGE
Lloh32:
	add	x8, x8, l_.str.15@PAGEOFF
	csel	x8, x8, x23, eq
	stp	x27, x19, [sp, #8]
	str	x8, [sp]
	mov	x0, x25
	bl	_sprintf_dup
	mov	x23, x0
	mov	x0, x28
	bl	_free_string
	add	x20, x20, #8
	subs	x26, x26, #1
	b.eq	LBB0_27
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x20]
	mov	x0, x27
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x19, x0
	sub	x8, x0, x27
	stp	x8, x27, [sp]
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_sprintf_dup
	mov	x27, x0
	add	x19, x19, #1
	mov	x28, x0
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x28, #0
Lloh35:
	adrp	x19, l_.str.11@PAGE
Lloh36:
	add	x19, x19, l_.str.11@PAGEOFF
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x2, sp, #44
	mov	x0, x22
	mov	x1, x27
	bl	_dtoverlay_find_override
	cbz	x0, LBB0_39
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x2, x0
	ldr	w3, [sp, #44]
	cbz	x21, LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x22
	mov	x1, x27
	mov	x4, x19
	bl	_dtoverlay_apply_override
	cbz	w0, LBB0_18
LBB0_25:
	stp	x27, x19, [sp]
Lloh37:
	adrp	x0, l_.str.13@PAGE
Lloh38:
	add	x0, x0, l_.str.13@PAGEOFF
	b	LBB0_40
LBB0_26:
	str	x23, [sp]
Lloh39:
	adrp	x0, l_.str.10@PAGE
Lloh40:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_40
LBB0_27:
	cbnz	x21, LBB0_34
	b	LBB0_30
LBB0_28:
	add	x0, sp, #48
	bl	_string_vec_init
	mov	x24, x22
	cmp	w25, #1
	b.ge	LBB0_16
LBB0_29:
	mov	x23, #0
	cbnz	x21, LBB0_34
LBB0_30:
	ldr	w8, [sp, #48]
	lsl	w8, w8, #8
	add	w0, w8, #2048
	bl	_dtoverlay_create_dtb
	mov	x22, x0
	ldr	w8, [sp, #48]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.31:
	mov	x19, #0
Lloh41:
	adrp	x20, l_.str.16@PAGE
Lloh42:
	add	x20, x20, l_.str.16@PAGEOFF
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #56]
	ldr	x21, [x8, x19, lsl #3]
	add	x2, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_sscanf
	add	x21, x21, #8
	ldr	w1, [sp, #44]
	mov	x0, x24
	bl	_dtoverlay_find_phandle
	mov	x1, x0
	add	x3, sp, #40
	mov	x0, x24
	mov	x2, x21
	bl	_dtoverlay_get_property
	mov	x4, x0
	ldp	w5, w2, [sp, #40]
	mov	x0, x22
	mov	x1, x19
	mov	x3, x21
	bl	_dtoverlay_create_prop_fragment
	add	x19, x19, #1
	ldrsw	x8, [sp, #48]
	cmp	x19, x8
	b.lt	LBB0_32
LBB0_33:
	mov	x0, x24
	bl	_dtoverlay_free_dtb
LBB0_34:
Lloh43:
	adrp	x1, l_.str.17@PAGE
Lloh44:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x22
	mov	w2, #0
	bl	_dtoverlay_delete_node
	cbz	x23, LBB0_36
; %bb.35:
	mov	x0, x23
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x22
	mov	x1, x23
	bl	_dtoverlay_dtb_set_trailer
LBB0_36:
Lloh45:
	adrp	x8, _work_dir@GOTPAGE
Lloh46:
	ldr	x8, [x8, _work_dir@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	stp	x8, x20, [sp]
Lloh48:
	adrp	x0, l_.str.7@PAGE
Lloh49:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_sprintf_dup
	mov	x19, x0
	mov	x0, x22
	bl	_dtoverlay_pack_dtb
	mov	x0, x22
	mov	x1, x19
	bl	_dtoverlay_save_dtb
	mov	x0, x22
	bl	_dtoverlay_free_dtb
Lloh50:
	adrp	x8, _dry_run@GOTPAGE
Lloh51:
	ldr	x8, [x8, _dry_run@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	cbnz	x8, LBB0_38
; %bb.37:
	mov	x0, x19
	mov	x1, x20
	bl	_apply_overlay
	cbz	w0, LBB0_42
LBB0_38:
	mov	w0, #0
	b	LBB0_41
LBB0_39:
	str	x27, [sp]
Lloh53:
	adrp	x0, l_.str.12@PAGE
Lloh54:
	add	x0, x0, l_.str.12@PAGEOFF
LBB0_40:
	bl	_error
LBB0_41:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_42:
Lloh55:
	adrp	x20, _error_file@GOTPAGE
Lloh56:
	ldr	x20, [x20, _error_file@GOTPAGEOFF]
	ldr	x1, [x20]
	cbz	x1, LBB0_44
; %bb.43:
	mov	x0, x19
	bl	_rename
	ldr	x0, [x20]
	bl	_free_string
LBB0_44:
	mov	w0, #1
	b	LBB0_41
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dtparam"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

	.comm	_work_dir,4,2                   ; @work_dir
l_.str.2:                               ; @.str.2
	.asciz	"base.dtb"

l_.str.3:                               ; @.str.3
	.asciz	"dtc -I fs -O dtb -o '%s' /proc/device-tree 1>/dev/null 2>&1"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to read active DTB"

l_.str.5:                               ; @.str.5
	.asciz	".dtbo"

l_.str.6:                               ; @.str.6
	.asciz	"%.*s"

l_.str.7:                               ; @.str.7
	.asciz	"%s/%s.dtbo"

	.comm	_overlay_src_dir,4,2            ; @overlay_src_dir
	.comm	_dry_run,8,3                    ; @dry_run
l_.str.8:                               ; @.str.8
	.asciz	"dry_run"

l_.str.9:                               ; @.str.9
	.asciz	"%d_%s"

l_.str.10:                              ; @.str.10
	.asciz	"Failed to read '%s'"

l_.str.11:                              ; @.str.11
	.asciz	"true"

l_.str.12:                              ; @.str.12
	.asciz	"Unknown parameter '%s'"

l_.str.13:                              ; @.str.13
	.asciz	"Failed to set %s=%s"

l_.str.14:                              ; @.str.14
	.asciz	"%s %s=%s"

l_.str.15:                              ; @.str.15
	.space	1

l_.str.16:                              ; @.str.16
	.asciz	"%8x"

l_.str.17:                              ; @.str.17
	.asciz	"/__symbols__"

	.comm	_error_file,8,3                 ; @error_file
	.no_dead_strip	_dtoverlay_add
.subsections_via_symbols
