	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_enable_power
_elan_enable_power:                     ## @elan_enable_power
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ETP_RETRY_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	16(%rdi), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_1
## %bb.8:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	incl	%ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	8(%r14), %rax
	movl	$1, %esi
	callq	*(%rax)
	testl	%eax, %eax
	jns	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	movl	$30, %edi
	callq	_msleep
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_2
## %bb.5:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movl	%r15d, %edx
	callq	_dev_err
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ETP_RETRY_COUNT,4,2            ## @ETP_RETRY_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable regulator: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable power: %d\n"

	.no_dead_strip	_elan_enable_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_enable_power
_elan_enable_power:                     ; @elan_enable_power
	.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, x0
Lloh0:
	adrp	x8, _ETP_RETRY_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETP_RETRY_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x0, #16]
	bl	_regulator_enable
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	add	w21, w21, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x8, [x19]
	ldr	x8, [x8]
	mov	w1, #1
	blr	x8
	tbz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	mov	w0, #30
	bl	_msleep
	sub	w21, w21, #1
	cmp	w21, #1
	b.gt	LBB0_3
; %bb.5:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x2, x20
	bl	_dev_err
LBB0_7:
	mov	x0, 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
LBB0_8:
	mov	w20, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ETP_RETRY_COUNT,4,2            ; @ETP_RETRY_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable regulator: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable power: %d\n"

	.no_dead_strip	_elan_enable_power
.subsections_via_symbols
