	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_backup_probe
_wm831x_backup_probe:                   ## @wm831x_backup_probe
	.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
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	callq	_wm831x_config_backup
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	24(%rbx), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_5:
	movl	24(%rbx), %eax
	movq	%rbx, %r15
	addq	$4, %r15
	movl	%eax, 20(%rbx)
	movq	_POWER_SUPPLY_TYPE_BATTERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_wm831x_backup_props@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%rbx)
	movq	_wm831x_backup_get_prop@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_power_supply_register
	movl	%eax, (%rbx)
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wm831x-backup.%d"

L_.str.1:                               ## @.str.1
	.asciz	"wm831x-backup"

	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ## @POWER_SUPPLY_TYPE_BATTERY
	.comm	_wm831x_backup_props,4,2        ## @wm831x_backup_props
	.comm	_wm831x_backup_get_prop,4,2     ## @wm831x_backup_get_prop
	.no_dead_strip	_wm831x_backup_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_backup_probe
_wm831x_backup_probe:                   ; @wm831x_backup_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x21
	bl	_wm831x_config_backup
	cbz	x22, LBB0_5
; %bb.2:
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w0, [x20, #24]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w0, [x20, #24]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	mov	w1, #4
	bl	_snprintf
	ldr	w8, [x20, #24]
	str	w8, [x20, #20]
Lloh10:
	adrp	x8, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _wm831x_backup_props@GOTPAGE
Lloh14:
	ldr	x9, [x9, _wm831x_backup_props@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #12]
	bl	_ARRAY_SIZE
	str	w0, [x20, #8]
Lloh16:
	adrp	x8, _wm831x_backup_get_prop@GOTPAGE
Lloh17:
	ldr	x8, [x8, _wm831x_backup_get_prop@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mov	x1, x20
	str	w8, [x1, #4]!
	mov	x0, x19
	mov	x2, #0
	bl	_power_supply_register
	str	w0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR_OR_ZERO
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wm831x-backup.%d"

l_.str.1:                               ; @.str.1
	.asciz	"wm831x-backup"

	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ; @POWER_SUPPLY_TYPE_BATTERY
	.comm	_wm831x_backup_props,4,2        ; @wm831x_backup_props
	.comm	_wm831x_backup_get_prop,4,2     ; @wm831x_backup_get_prop
	.no_dead_strip	_wm831x_backup_probe
.subsections_via_symbols
