	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_charger_watchdog_kick
_ab8500_charger_watchdog_kick:          ## @ab8500_charger_watchdog_kick
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_POWER_SUPPLY_TYPE_MAINS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	callq	_to_ab8500_charger_ac_device_info
	jmp	LBB0_4
LBB0_2:
	movq	_POWER_SUPPLY_TYPE_USB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	callq	_to_ab8500_charger_usb_device_info
LBB0_4:
	movq	%rax, %r14
	movl	(%rax), %edi
	movq	_AB8500_CHARGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AB8500_CHARG_WD_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CHARG_WD_KICK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_abx500_set_register_interruptible
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_TYPE_MAINS,8,3    ## @POWER_SUPPLY_TYPE_MAINS
	.comm	_POWER_SUPPLY_TYPE_USB,8,3      ## @POWER_SUPPLY_TYPE_USB
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_AB8500_CHARGER,4,2             ## @AB8500_CHARGER
	.comm	_AB8500_CHARG_WD_CTRL,4,2       ## @AB8500_CHARG_WD_CTRL
	.comm	_CHARG_WD_KICK,4,2              ## @CHARG_WD_KICK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to kick WD!\n"

	.no_dead_strip	_ab8500_charger_watchdog_kick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_charger_watchdog_kick
_ab8500_charger_watchdog_kick:          ; @ab8500_charger_watchdog_kick
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _POWER_SUPPLY_TYPE_MAINS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _POWER_SUPPLY_TYPE_MAINS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_to_ab8500_charger_ac_device_info
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _POWER_SUPPLY_TYPE_USB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POWER_SUPPLY_TYPE_USB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	bl	_to_ab8500_charger_usb_device_info
LBB0_4:
	mov	x19, x0
	ldr	w0, [x0]
Lloh6:
	adrp	x8, _AB8500_CHARGER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AB8500_CHARGER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _AB8500_CHARG_WD_CTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AB8500_CHARG_WD_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _CHARG_WD_KICK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CHARG_WD_KICK@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	bl	_abx500_set_register_interruptible
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _ENXIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_TYPE_MAINS,8,3    ; @POWER_SUPPLY_TYPE_MAINS
	.comm	_POWER_SUPPLY_TYPE_USB,8,3      ; @POWER_SUPPLY_TYPE_USB
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_AB8500_CHARGER,4,2             ; @AB8500_CHARGER
	.comm	_AB8500_CHARG_WD_CTRL,4,2       ; @AB8500_CHARG_WD_CTRL
	.comm	_CHARG_WD_KICK,4,2              ; @CHARG_WD_KICK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to kick WD!\n"

	.no_dead_strip	_ab8500_charger_watchdog_kick
.subsections_via_symbols
