	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_load_dtb_overlays_string
_fdt_load_dtb_overlays_string:          ## @fdt_load_dtb_overlays_string
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_debugf
	movq	%rbx, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_fdt_print_overlay_load_error
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r12), %rbx
	testq	%r12, %r12
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$44, %esi
	callq	_strchr
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%r12)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_fdt_load_dtb_overlay
	movl	%eax, %r13d
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r15d
	addl	$6, %r15d
	movl	%r15d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r15d, %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	callq	_fdt_load_dtb_overlay
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_8
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	movl	$1, %eax
LBB0_12:
	addq	$8, %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	"fdt_load_dtb_overlays_string(%s)\n"

	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
L_.str.1:                               ## @.str.1
	.asciz	"%s.dtbo"

	.no_dead_strip	_fdt_load_dtb_overlays_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_load_dtb_overlays_string
_fdt_load_dtb_overlays_string:          ; @fdt_load_dtb_overlays_string
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_debugf
	mov	x0, x19
	bl	_strdup
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x26, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh3:
	ldr	x26, [x26, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x21, x0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w23, LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_fdt_print_overlay_load_error
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x22, #1
	cbz	x22, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #44
	bl	_strchr
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_fdt_load_dtb_overlay
	mov	x23, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_strlen
	add	w25, w0, #6
	mov	x0, x25
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	mov	x1, x25
	mov	x2, x20
	mov	x3, x21
	bl	_snprintf
	mov	x0, x24
	bl	_fdt_load_dtb_overlay
	mov	x23, x0
	mov	x0, x24
	bl	_free
	b	LBB0_2
LBB0_10:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fdt_load_dtb_overlays_string(%s)\n"

	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
l_.str.1:                               ; @.str.1
	.asciz	"%s.dtbo"

	.no_dead_strip	_fdt_load_dtb_overlays_string
.subsections_via_symbols
