	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp8xx_regnode_enable
_axp8xx_regnode_enable:                 ## @axp8xx_regnode_enable
	.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, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_regnode_get_softc
	movq	%rax, %rbx
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %r13d
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %r14
	cmoveq	%rax, %r14
	movq	%r12, %rdi
	callq	_regnode_get_name
	movq	(%rbx), %rcx
	movl	16(%rcx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movq	%r14, %rdx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_device_printf
LBB0_2:
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ecx
	callq	_axp8xx_read
	movq	(%rbx), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	orl	4(%rax), %edx
	jmp	LBB0_7
LBB0_4:
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	orl	%ecx, %edx
	jmp	LBB0_7
LBB0_6:
	movl	4(%rax), %ecx
	notl	%ecx
	andl	%ecx, %edx
LBB0_7:
	movl	%edx, -44(%rbp)
	movl	8(%rbx), %edi
	movl	12(%rax), %esi
	callq	_axp8xx_write
	movl	$0, (%r14)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sable %s (%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"En"

L_.str.2:                               ## @.str.2
	.asciz	"Dis"

	.no_dead_strip	_axp8xx_regnode_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp8xx_regnode_enable
_axp8xx_regnode_enable:                 ; @axp8xx_regnode_enable
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_regnode_get_softc
	mov	x20, x0
Lloh0:
	adrp	x8, _bootverbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w23, [x20, #8]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x24, x9, x8, eq
	mov	x0, x22
	bl	_regnode_get_name
	mov	x3, x0
	ldr	x8, [x20]
	ldr	w4, [x8, #16]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_device_printf
LBB0_2:
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	ldr	w1, [x8, #12]
	add	x2, sp, #12
	mov	w3, #1
	bl	_axp8xx_read
	ldr	x8, [x20]
	ldr	w9, [x8]
	ldr	w10, [sp, #12]
	bic	w9, w10, w9
	cbz	w21, LBB0_4
; %bb.3:
	ldr	w10, [x8, #4]
	orr	w2, w10, w9
	b	LBB0_7
LBB0_4:
	ldr	w10, [x8, #8]
	cbz	w10, LBB0_6
; %bb.5:
	orr	w2, w10, w9
	b	LBB0_7
LBB0_6:
	ldr	w10, [x8, #4]
	bic	w2, w9, w10
LBB0_7:
	str	w2, [sp, #12]
	ldr	w0, [x20, #8]
	ldr	w1, [x8, #12]
	bl	_axp8xx_write
	str	wzr, [x19]
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sable %s (%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"En"

l_.str.2:                               ; @.str.2
	.asciz	"Dis"

	.no_dead_strip	_axp8xx_regnode_enable
.subsections_via_symbols
