	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8153_aldps_en
_r8153_aldps_en:                        ## @r8153_aldps_en
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_OCP_POWER_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ocp_reg_read
	movq	_EN_ALDPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	orl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_ocp_reg_write
	jmp	LBB0_5
LBB0_2:
	notl	%edx
	andl	%edx, %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ocp_reg_write
	movl	$19, %ebx
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$57344, %edx                    ## imm = 0xE000
	callq	_ocp_read_word
	subl	$1, %ebx
	setb	%cl
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	je	LBB0_3
LBB0_5:
	movl	%r14d, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCP_POWER_CFG,4,2              ## @OCP_POWER_CFG
	.comm	_EN_ALDPS,4,2                   ## @EN_ALDPS
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.no_dead_strip	_r8153_aldps_en
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8153_aldps_en
_r8153_aldps_en:                        ; @r8153_aldps_en
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _OCP_POWER_CFG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _OCP_POWER_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ocp_reg_read
Lloh2:
	adrp	x8, _EN_ALDPS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EN_ALDPS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w19, LBB0_2
; %bb.1:
	orr	w2, w8, w0
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ocp_reg_write
	b	LBB0_5
LBB0_2:
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ocp_reg_write
	mov	w8, #19
Lloh5:
	adrp	x21, _MCU_TYPE_PLA@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MCU_TYPE_PLA@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #57344
	bl	_ocp_read_word
	tbnz	w0, #8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w22, #1
	cbnz	w22, LBB0_3
LBB0_5:
	str	w19, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OCP_POWER_CFG,4,2              ; @OCP_POWER_CFG
	.comm	_EN_ALDPS,4,2                   ; @EN_ALDPS
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.no_dead_strip	_r8153_aldps_en
.subsections_via_symbols
