	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_as3722_regulator_attach        ## -- Begin function as3722_regulator_attach
	.p2align	4, 0x90
_as3722_regulator_attach:               ## @as3722_regulator_attach
	.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	%rsi, %rax
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_ofw_bus_find_child
	testq	%rax, %rax
	jle	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_as3722s_def@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_nitems
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%r13)
	leal	(,%rax,8), %edi
	movq	_M_AS3722_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	movq	%rax, 8(%r13)
	cmpl	$0, (%r13)
	jle	LBB0_12
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$8, %rbx
	cmpq	%rax, %r15
	jge	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rsi
	movq	%r14, %rdi
	callq	_ofw_bus_find_child
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rdx
	addq	%rbx, %rdx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_as3722_attach
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r13), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_1:
	movl	16(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_2
LBB0_9:
	movl	16(%r13), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	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	"regulators"

L_.str.1:                               ## @.str.1
	.asciz	" Cannot find regulators subnode\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_as3722s_def,8,3                ## @as3722s_def
	.comm	_M_AS3722_REG,4,2               ## @M_AS3722_REG
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.2:                               ## @.str.2
	.asciz	"Regulator %s missing in DT\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot attach regulator: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_as3722_regulator_attach        ; -- Begin function as3722_regulator_attach
	.p2align	2
_as3722_regulator_attach:               ; @as3722_regulator_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_ofw_bus_find_child
	cmp	x0, #0
	b.le	LBB0_10
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x22, _as3722s_def@GOTPAGE
Lloh3:
	ldr	x22, [x22, _as3722s_def@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_nitems
	str	w0, [x19]
	lsl	w0, w0, #3
Lloh4:
	adrp	x8, _M_AS3722_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_AS3722_REG@GOTPAGEOFF]
Lloh6:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	ldr	w8, [x9]
Lloh10:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh13:
	adrp	x25, _bootverbose@GOTPAGE
Lloh14:
	ldr	x25, [x25, _bootverbose@GOTPAGEOFF]
Lloh15:
	adrp	x21, l_.str.2@PAGE
Lloh16:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #8
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x1, [x8, x23]
	mov	x0, x20
	bl	_ofw_bus_find_child
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	ldr	x8, [x22]
	add	x2, x8, x23
	mov	x0, x19
	bl	_as3722_attach
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	str	x0, [x8, x23]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cbz	x8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	str	x8, [sp]
	mov	x1, x21
	bl	_device_printf
	b	LBB0_3
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19, #16]
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	bl	_device_printf
Lloh21:
	adrp	x8, _ENXIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regulators"

l_.str.1:                               ; @.str.1
	.asciz	" Cannot find regulators subnode\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_as3722s_def,8,3                ; @as3722s_def
	.comm	_M_AS3722_REG,4,2               ; @M_AS3722_REG
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.2:                               ; @.str.2
	.asciz	"Regulator %s missing in DT\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot attach regulator: %s\n"

.subsections_via_symbols
