	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_bat_get_property
_da9052_bat_get_property:               ## @da9052_bat_get_property
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	movq	%rax, %r15
	leaq	-28(%rbp), %rsi
	movq	%rax, %rdi
	callq	_da9052_bat_check_presence
	testl	%eax, %eax
	js	LBB0_18
## %bb.1:
	cmpl	$133, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$0, -28(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addl	$-128, %ebx
	cmpl	$9, %ebx
	ja	LBB0_16
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_10:
	movq	_DA9052_BAT_CUTOFF_VOLT@GOTPCREL(%rip), %rcx
	imull	$1000, (%rcx), %ecx             ## imm = 0x3E8
	movl	%ecx, (%r14)
	jmp	LBB0_18
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_da9052_bat_read_volt
	jmp	LBB0_18
LBB0_14:
	movl	(%r15), %edi
	callq	_da9052_adc_read_temp
	movl	%eax, (%r14)
	jmp	LBB0_18
LBB0_15:
	movq	_POWER_SUPPLY_TECHNOLOGY_LION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_18
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_da9052_bat_check_status
	jmp	LBB0_18
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_da9052_bat_check_presence
	jmp	LBB0_18
LBB0_7:
	movl	4(%r15), %ecx
	movq	_DA9052_NOCHARGER@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %ecx
	setne	%sil
	movl	%esi, (%r14)
	jmp	LBB0_18
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_da9052_bat_check_health
	jmp	LBB0_18
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_da9052_read_chg_current
	jmp	LBB0_18
LBB0_13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_da9052_bat_read_capacity
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DA9052_NOCHARGER,4,2           ## @DA9052_NOCHARGER
	.comm	_DA9052_BAT_CUTOFF_VOLT,4,2     ## @DA9052_BAT_CUTOFF_VOLT
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,4,2 ## @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_da9052_bat_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_bat_get_property
_da9052_bat_get_property:               ; @da9052_bat_get_property
	.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, x2
	mov	x21, x1
	bl	_power_supply_get_drvdata
	mov	x20, x0
	add	x1, sp, #12
	bl	_da9052_bat_check_presence
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cmp	w21, #133
	b.eq	LBB0_6
; %bb.2:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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_6:
	sub	w8, w21, #128
	cmp	w8, #9
	b.hi	LBB0_9
; %bb.7:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh4:
	adrp	x8, _DA9052_BAT_CUTOFF_VOLT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DA9052_BAT_CUTOFF_VOLT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x19]
	b	LBB0_5
LBB0_9:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_da9052_bat_read_volt
	b	LBB0_5
LBB0_11:
	ldr	w0, [x20]
	bl	_da9052_adc_read_temp
	str	w0, [x19]
	b	LBB0_5
LBB0_12:
Lloh9:
	adrp	x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_5
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_da9052_bat_check_status
	b	LBB0_5
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_da9052_bat_check_presence
	b	LBB0_5
LBB0_15:
	ldr	w8, [x20, #4]
Lloh12:
	adrp	x9, _DA9052_NOCHARGER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DA9052_NOCHARGER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w8, ne
	str	w8, [x19]
	b	LBB0_5
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_da9052_bat_check_health
	b	LBB0_5
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_da9052_read_chg_current
	b	LBB0_5
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	bl	_da9052_bat_read_capacity
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DA9052_NOCHARGER,4,2           ; @DA9052_NOCHARGER
	.comm	_DA9052_BAT_CUTOFF_VOLT,4,2     ; @DA9052_BAT_CUTOFF_VOLT
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,4,2 ; @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_da9052_bat_get_property
.subsections_via_symbols
