	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp8xx_reg_attach
_axp8xx_reg_attach:                     ## @axp8xx_reg_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movl	%edi, %r12d
	leaq	-56(%rbp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r12d, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_regulator_parse_ofw_stdparam
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	cmpl	$0, -48(%rbp)
	je	LBB0_2
## %bb.3:
	cmpl	$0, -44(%rbp)
	je	LBB0_4
LBB0_5:
	movl	8(%r15), %eax
	movl	%eax, -52(%rbp)
	movl	%r14d, -56(%rbp)
	movq	_axp8xx_regnode_class@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movl	%r12d, %edi
	callq	_regnode_create
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_regnode_get_softc
	movq	%rax, %rbx
	movq	%r13, 24(%rax)
	movl	%r12d, 16(%rax)
	movq	%r15, 8(%rax)
	movl	%r14d, %edi
	callq	_OF_xref_from_node
	movl	%eax, 4(%rbx)
	movq	%r13, %rdi
	callq	_regnode_get_stdparam
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	callq	_regnode_register
	jmp	LBB0_8
LBB0_2:
	imull	$1000, (%r15), %eax             ## imm = 0x3E8
	movl	%eax, -48(%rbp)
	cmpl	$0, -44(%rbp)
	jne	LBB0_5
LBB0_4:
	imull	$1000, 4(%r15), %eax            ## imm = 0x3E8
	movl	%eax, -44(%rbp)
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	callq	_device_printf
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_axp8xx_regnode_class,4,2       ## @axp8xx_regnode_class
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot create regulator\n"

	.no_dead_strip	_axp8xx_reg_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp8xx_reg_attach
_axp8xx_reg_attach:                     ; @axp8xx_reg_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_regulator_parse_ofw_stdparam
	cbz	x0, LBB0_2
LBB0_1:
	mov	x22, #0
	b	LBB0_6
LBB0_2:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
LBB0_4:
	ldr	w8, [x21, #8]
	stp	w19, w8, [sp]
Lloh0:
	adrp	x1, _axp8xx_regnode_class@GOTPAGE
Lloh1:
	ldr	x1, [x1, _axp8xx_regnode_class@GOTPAGEOFF]
	mov	x2, sp
	mov	x0, x20
	bl	_regnode_create
	cbz	x0, LBB0_9
; %bb.5:
	mov	x23, x0
	bl	_regnode_get_softc
	mov	x22, x0
	str	x23, [x0, #24]
	str	w20, [x0, #16]
	str	x21, [x0, #8]
	mov	x0, x19
	bl	_OF_xref_from_node
	str	w0, [x22, #4]
	mov	x0, x23
	bl	_regnode_get_stdparam
	str	w0, [x22]
	mov	x0, x23
	bl	_regnode_register
LBB0_6:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w8, [x21]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [sp, #8]
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_4
LBB0_8:
	ldr	w8, [x21, #4]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [sp, #12]
	b	LBB0_4
LBB0_9:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_axp8xx_regnode_class,4,2       ; @axp8xx_regnode_class
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot create regulator\n"

	.no_dead_strip	_axp8xx_reg_attach
.subsections_via_symbols
