	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_fgu_get_property
_sc27xx_fgu_get_property:               ## @sc27xx_fgu_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	movq	%rax, %r12
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	addl	$-128, %ebx
	cmpl	$11, %ebx
	ja	LBB0_18
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_16:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sc27xx_fgu_get_current
	jmp	LBB0_12
LBB0_14:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sc27xx_fgu_get_vbat_ocv
	jmp	LBB0_3
LBB0_11:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sc27xx_fgu_get_vbat_vol
LBB0_12:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.13:
	imull	$1000, -36(%rbp), %eax          ## imm = 0x3E8
	jmp	LBB0_5
LBB0_8:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sc27xx_fgu_get_temp
	jmp	LBB0_3
LBB0_9:
	movq	_POWER_SUPPLY_TECHNOLOGY_LION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_2:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sc27xx_fgu_get_status
	jmp	LBB0_3
LBB0_7:
	movl	(%r12), %eax
	jmp	LBB0_5
LBB0_6:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sc27xx_fgu_get_health
	jmp	LBB0_3
LBB0_17:
	imull	$1000, 4(%r12), %eax            ## imm = 0x3E8
	jmp	LBB0_5
LBB0_15:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sc27xx_fgu_get_charge_vol
	jmp	LBB0_3
LBB0_10:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sc27xx_fgu_get_capacity
LBB0_3:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.4:
	movl	-36(%rbp), %eax
LBB0_5:
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_19:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,4,2 ## @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sc27xx_fgu_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_fgu_get_property
_sc27xx_fgu_get_property:               ; @sc27xx_fgu_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	x20, x2
	mov	x21, x1
	bl	_power_supply_get_drvdata
	mov	x22, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	sub	w8, w21, #128
	cmp	w8, #11
	b.hi	LBB0_16
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x1, sp, #12
	mov	x0, x22
	bl	_sc27xx_fgu_get_current
	mov	x21, x0
	cbnz	w0, LBB0_17
	b	LBB0_5
LBB0_3:
	add	x1, sp, #12
	mov	x0, x22
	bl	_sc27xx_fgu_get_vbat_ocv
	mov	x21, x0
	cbnz	w0, LBB0_17
	b	LBB0_15
LBB0_4:
	add	x1, sp, #12
	mov	x0, x22
	bl	_sc27xx_fgu_get_vbat_vol
	mov	x21, x0
	cbnz	w0, LBB0_17
LBB0_5:
	ldr	w8, [sp, #12]
	b	LBB0_12
LBB0_6:
	add	x1, sp, #12
	mov	x0, x22
	bl	_sc27xx_fgu_get_temp
	mov	x21, x0
	cbnz	w0, LBB0_17
	b	LBB0_15
LBB0_7:
	mov	w21, #0
Lloh2:
	adrp	x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_17
LBB0_8:
	add	x1, sp, #12
	mov	x0, x22
	bl	_sc27xx_fgu_get_status
	mov	x21, x0
	cbnz	w0, LBB0_17
	b	LBB0_15
LBB0_9:
	mov	w21, #0
	ldr	w8, [x22]
	str	w8, [x20]
	b	LBB0_17
LBB0_10:
	add	x1, sp, #12
	mov	x0, x22
	bl	_sc27xx_fgu_get_health
	mov	x21, x0
	cbnz	w0, LBB0_17
	b	LBB0_15
LBB0_11:
	mov	w21, #0
	ldr	w8, [x22, #4]
LBB0_12:
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x20]
	b	LBB0_17
LBB0_13:
	add	x1, sp, #12
	mov	x0, x22
	bl	_sc27xx_fgu_get_charge_vol
	mov	x21, x0
	cbnz	w0, LBB0_17
	b	LBB0_15
LBB0_14:
	add	x1, sp, #12
	mov	x0, x22
	bl	_sc27xx_fgu_get_capacity
	mov	x21, x0
	cbnz	w0, LBB0_17
LBB0_15:
	ldr	w8, [sp, #12]
	str	w8, [x20]
	b	LBB0_17
LBB0_16:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_17:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,4,2 ; @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sc27xx_fgu_get_property
.subsections_via_symbols
