	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function micro_batt_probe
_micro_batt_probe:                      ## @micro_batt_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$12, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_dev_get_drvdata
	movl	%eax, 8(%r12)
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r12, %r15
	addq	$4, %r15
	movq	_micro_battery_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_INIT_DELAYED_WORK
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_queue_delayed_work
	movq	_micro_batt_power_desc@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_power_supply_register
	movq	_micro_batt_power@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_micro_ac_power_desc@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_power_supply_register
	movq	_micro_ac_power@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_micro_ac_power@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_power_supply_unregister
LBB0_8:
	movq	%r15, %rdi
	callq	_cancel_delayed_work_sync
	movl	(%r12), %edi
	callq	_destroy_workqueue
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	jmp	LBB0_9
	.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	"ipaq-battery-wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
	.comm	_micro_battery_work,4,2         ## @micro_battery_work
	.comm	_micro_batt_power_desc,4,2      ## @micro_batt_power_desc
	.comm	_micro_batt_power,4,2           ## @micro_batt_power
	.comm	_micro_ac_power_desc,4,2        ## @micro_ac_power_desc
	.comm	_micro_ac_power,4,2             ## @micro_ac_power
L_.str.1:                               ## @.str.1
	.asciz	"iPAQ micro battery driver\n"

	.no_dead_strip	_micro_batt_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function micro_batt_probe
_micro_batt_probe:                      ; @micro_batt_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #12
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
	bl	_dev_get_drvdata
	str	w0, [x19, #8]
Lloh3:
	adrp	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x19]
	cbz	w0, LBB0_4
; %bb.2:
	add	x21, x19, #4
Lloh8:
	adrp	x8, _micro_battery_work@GOTPAGE
Lloh9:
	ldr	x8, [x8, _micro_battery_work@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	w0, [x19]
	mov	x1, x21
	mov	w2, #1
	bl	_queue_delayed_work
Lloh11:
	adrp	x1, _micro_batt_power_desc@GOTPAGE
Lloh12:
	ldr	x1, [x1, _micro_batt_power_desc@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, #0
	bl	_power_supply_register
Lloh13:
	adrp	x22, _micro_batt_power@GOTPAGE
Lloh14:
	ldr	x22, [x22, _micro_batt_power@GOTPAGEOFF]
	str	w0, [x22]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x22]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_7
LBB0_4:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_5:
Lloh18:
	adrp	x1, _micro_ac_power_desc@GOTPAGE
Lloh19:
	ldr	x1, [x1, _micro_ac_power_desc@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, #0
	bl	_power_supply_register
Lloh20:
	adrp	x23, _micro_ac_power@GOTPAGE
Lloh21:
	ldr	x23, [x23, _micro_ac_power@GOTPAGEOFF]
	str	w0, [x23]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w0, [x23]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	w0, [x22]
	bl	_power_supply_unregister
LBB0_7:
	mov	x0, x21
	bl	_cancel_delayed_work_sync
	ldr	w0, [x19]
	bl	_destroy_workqueue
LBB0_8:
	mov	x0, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w20, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.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	"ipaq-battery-wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
	.comm	_micro_battery_work,4,2         ; @micro_battery_work
	.comm	_micro_batt_power_desc,4,2      ; @micro_batt_power_desc
	.comm	_micro_batt_power,4,2           ; @micro_batt_power
	.comm	_micro_ac_power_desc,4,2        ; @micro_ac_power_desc
	.comm	_micro_ac_power,4,2             ; @micro_ac_power
l_.str.1:                               ; @.str.1
	.asciz	"iPAQ micro battery driver\n"

	.no_dead_strip	_micro_batt_probe
.subsections_via_symbols
