	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_charger_led_en
_ab8500_charger_led_en:                 ## @ab8500_charger_led_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_AB8500_CHARGER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AB8500_LED_INDICATOR_PWM_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_LED_IND_CUR_5MA@GOTPCREL(%rip), %rax
	movq	_LED_INDICATOR_PWM_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	callq	_abx500_set_register_interruptible
	movl	(%r14), %edi
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movq	_LED_INDICATOR_PWM_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_abx500_set_register_interruptible
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_5:
	movl	(%r15), %esi
	movq	_AB8500_LED_INDICATOR_PWM_DUTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LED_INDICATOR_PWM_DUTY_252_256@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_abx500_set_register_interruptible
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	callq	_dev_err
	jmp	LBB0_8
LBB0_10:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AB8500_CHARGER,4,2             ## @AB8500_CHARGER
	.comm	_AB8500_LED_INDICATOR_PWM_CTRL,4,2 ## @AB8500_LED_INDICATOR_PWM_CTRL
	.comm	_LED_IND_CUR_5MA,4,2            ## @LED_IND_CUR_5MA
	.comm	_LED_INDICATOR_PWM_ENA,4,2      ## @LED_INDICATOR_PWM_ENA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Power ON LED failed\n"

	.comm	_AB8500_LED_INDICATOR_PWM_DUTY,4,2 ## @AB8500_LED_INDICATOR_PWM_DUTY
	.comm	_LED_INDICATOR_PWM_DUTY_252_256,4,2 ## @LED_INDICATOR_PWM_DUTY_252_256
L_.str.1:                               ## @.str.1
	.asciz	"Set LED PWM duty cycle failed\n"

	.comm	_LED_INDICATOR_PWM_DIS,4,2      ## @LED_INDICATOR_PWM_DIS
L_.str.2:                               ## @.str.2
	.asciz	"Power-off LED failed\n"

	.no_dead_strip	_ab8500_charger_led_en
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_charger_led_en
_ab8500_charger_led_en:                 ; @ab8500_charger_led_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	x8, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _AB8500_CHARGER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AB8500_CHARGER@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x9, _AB8500_LED_INDICATOR_PWM_CTRL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AB8500_LED_INDICATOR_PWM_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	cbz	w8, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _LED_IND_CUR_5MA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LED_IND_CUR_5MA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _LED_INDICATOR_PWM_ENA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LED_INDICATOR_PWM_ENA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w3, w9, w8
	bl	_abx500_set_register_interruptible
	mov	x20, x0
	ldr	w0, [x19]
	cbz	w20, LBB0_5
; %bb.2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh13:
	adrp	x8, _LED_INDICATOR_PWM_DIS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LED_INDICATOR_PWM_DIS@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	bl	_abx500_set_register_interruptible
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	w1, [x21]
Lloh18:
	adrp	x8, _AB8500_LED_INDICATOR_PWM_DUTY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AB8500_LED_INDICATOR_PWM_DUTY@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _LED_INDICATOR_PWM_DUTY_252_256@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LED_INDICATOR_PWM_DUTY_252_256@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	bl	_abx500_set_register_interruptible
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w0, [x19]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_dev_err
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_AB8500_CHARGER,4,2             ; @AB8500_CHARGER
	.comm	_AB8500_LED_INDICATOR_PWM_CTRL,4,2 ; @AB8500_LED_INDICATOR_PWM_CTRL
	.comm	_LED_IND_CUR_5MA,4,2            ; @LED_IND_CUR_5MA
	.comm	_LED_INDICATOR_PWM_ENA,4,2      ; @LED_INDICATOR_PWM_ENA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Power ON LED failed\n"

	.comm	_AB8500_LED_INDICATOR_PWM_DUTY,4,2 ; @AB8500_LED_INDICATOR_PWM_DUTY
	.comm	_LED_INDICATOR_PWM_DUTY_252_256,4,2 ; @LED_INDICATOR_PWM_DUTY_252_256
l_.str.1:                               ; @.str.1
	.asciz	"Set LED PWM duty cycle failed\n"

	.comm	_LED_INDICATOR_PWM_DIS,4,2      ; @LED_INDICATOR_PWM_DIS
l_.str.2:                               ; @.str.2
	.asciz	"Power-off LED failed\n"

	.no_dead_strip	_ab8500_charger_led_en
.subsections_via_symbols
