	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3722_fdt_parse
_as3722_fdt_parse:                      ## @as3722_fdt_parse
	.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, %rbx
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	leaq	8(%rcx), %r14
	movq	%r14, %rdx
	callq	_regulator_parse_ofw_stdparam
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_OF_getencprop
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	(%rbx), %edx
	cmpl	$4, %edx
	jl	LBB0_4
## %bb.2:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_device_printf
LBB0_3:
	movl	$0, (%rbx)
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	callq	_OF_hasprop
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$1, 4(%rbx)
LBB0_6:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.7:
	movl	%r12d, %edi
	callq	_OF_parent
	movl	%eax, %ebx
	movq	(%r15), %rcx
	leaq	L_.str.3(%rip), %rdx
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_snprintf
	leaq	-116(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$4, %ecx
	callq	_OF_getencprop
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	movl	-116(%rbp), %edi
	callq	_OF_node_from_xref
	movl	%eax, -116(%rbp)
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_OF_getprop_alloc
	testl	%eax, %eax
	jg	LBB0_10
## %bb.9:
	movq	$0, (%r14)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ams,ext-control"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid value for ams,ext-control property: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"ams,enable-tracking"

L_.str.3:                               ## @.str.3
	.asciz	"%s-supply"

L_.str.4:                               ## @.str.4
	.asciz	"regulator-name"

	.no_dead_strip	_as3722_fdt_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3722_fdt_parse
_as3722_fdt_parse:                      ; @as3722_fdt_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w0, [x0]
	add	x19, x3, #8
	mov	x2, x19
	bl	_regulator_parse_ofw_stdparam
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	w3, #4
	bl	_OF_getencprop
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	w2, [x22]
	cmp	w2, #4
	b.lt	LBB0_4
; %bb.2:
	ldr	w0, [x23]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
LBB0_3:
	str	wzr, [x22]
LBB0_4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_OF_hasprop
	cbz	x0, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x22, #4]
LBB0_6:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x0, x21
	bl	_OF_parent
	mov	x21, x0
	ldr	x3, [x20]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	bl	_snprintf
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	ldr	w0, [sp, #4]
	bl	_OF_node_from_xref
	str	w0, [sp, #4]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_OF_getprop_alloc
	cmp	w0, #0
	b.gt	LBB0_10
; %bb.9:
	str	xzr, [x19]
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ams,ext-control"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid value for ams,ext-control property: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"ams,enable-tracking"

l_.str.3:                               ; @.str.3
	.asciz	"%s-supply"

l_.str.4:                               ; @.str.4
	.asciz	"regulator-name"

	.no_dead_strip	_as3722_fdt_parse
.subsections_via_symbols
