	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8788_psy_register
_lp8788_psy_register:                   ## @lp8788_psy_register
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_lp8788_charger_sysfs_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_battery_supplied_to@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -36(%rbp)
	callq	_ARRAY_SIZE
	movl	%eax, -40(%rbp)
	movq	_lp8788_psy_charger_desc@GOTPCREL(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_power_supply_register
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_lp8788_psy_battery_desc@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_power_supply_register
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rdi
	callq	_power_supply_unregister
LBB0_3:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lp8788_charger_sysfs_groups,4,2 ## @lp8788_charger_sysfs_groups
	.comm	_battery_supplied_to,4,2        ## @battery_supplied_to
	.comm	_lp8788_psy_charger_desc,4,2    ## @lp8788_psy_charger_desc
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_lp8788_psy_battery_desc,4,2    ## @lp8788_psy_battery_desc
	.no_dead_strip	_lp8788_psy_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8788_psy_register
_lp8788_psy_register:                   ; @lp8788_psy_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _lp8788_charger_sysfs_groups@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lp8788_charger_sysfs_groups@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _battery_supplied_to@GOTPAGE
Lloh4:
	ldr	x9, [x9, _battery_supplied_to@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	stp	w0, w8, [sp, #4]
	bl	_ARRAY_SIZE
	str	w0, [sp]
Lloh6:
	adrp	x1, _lp8788_psy_charger_desc@GOTPAGE
Lloh7:
	ldr	x1, [x1, _lp8788_psy_charger_desc@GOTPAGEOFF]
	mov	x2, sp
	mov	x0, x20
	bl	_power_supply_register
	str	x0, [x19]
	bl	_IS_ERR
	cbnz	x0, LBB0_3
; %bb.1:
Lloh8:
	adrp	x1, _lp8788_psy_battery_desc@GOTPAGE
Lloh9:
	ldr	x1, [x1, _lp8788_psy_battery_desc@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, #0
	bl	_power_supply_register
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	bl	_power_supply_unregister
LBB0_3:
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_lp8788_charger_sysfs_groups,4,2 ; @lp8788_charger_sysfs_groups
	.comm	_battery_supplied_to,4,2        ; @battery_supplied_to
	.comm	_lp8788_psy_charger_desc,4,2    ; @lp8788_psy_charger_desc
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_lp8788_psy_battery_desc,4,2    ; @lp8788_psy_battery_desc
	.no_dead_strip	_lp8788_psy_register
.subsections_via_symbols
