	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds2781_battery_probe
_ds2781_battery_probe:                  ## @ds2781_battery_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 8(%rbx)
	movl	(%r14), %eax
	movl	%eax, 36(%rbx)
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rbx, %r15
	addq	$16, %r15
	movl	%eax, 32(%rbx)
	movq	_POWER_SUPPLY_TYPE_BATTERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_ds2781_battery_props@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 24(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 20(%rbx)
	movq	_ds2781_battery_get_property@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, -32(%rbp)
	movq	_ds2781_sysfs_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_power_supply_register
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	(%rbx), %edi
	callq	_PTR_ERR
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ## @POWER_SUPPLY_TYPE_BATTERY
	.comm	_ds2781_battery_props,4,2       ## @ds2781_battery_props
	.comm	_ds2781_battery_get_property,4,2 ## @ds2781_battery_get_property
	.comm	_ds2781_sysfs_groups,4,2        ## @ds2781_sysfs_groups
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register battery\n"

	.no_dead_strip	_ds2781_battery_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds2781_battery_probe
_ds2781_battery_probe:                  ; @ds2781_battery_probe
	.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	x20, x0
	str	xzr, [sp]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	str	x20, [x19, #8]
	ldr	w8, [x20]
	str	w8, [x19, #36]
	mov	x0, x20
	bl	_dev_name
	str	w0, [x19, #32]
Lloh3:
	adrp	x8, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ds2781_battery_props@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ds2781_battery_props@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	stp	w0, w8, [x19, #24]
	bl	_ARRAY_SIZE
Lloh9:
	adrp	x8, _ds2781_battery_get_property@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ds2781_battery_get_property@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x1, x19
	str	w8, [x1, #16]!
	str	w0, [x19, #20]
	str	x19, [sp, #8]
Lloh12:
	adrp	x8, _ds2781_sysfs_groups@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ds2781_sysfs_groups@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x2, sp
	mov	x0, x20
	bl	_devm_power_supply_register
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19]
	bl	_PTR_ERR
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ; @POWER_SUPPLY_TYPE_BATTERY
	.comm	_ds2781_battery_props,4,2       ; @ds2781_battery_props
	.comm	_ds2781_battery_get_property,4,2 ; @ds2781_battery_get_property
	.comm	_ds2781_sysfs_groups,4,2        ; @ds2781_sysfs_groups
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register battery\n"

	.no_dead_strip	_ds2781_battery_probe
.subsections_via_symbols
