	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function charger_get_property
_charger_get_property:                  ## @charger_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	%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	%rdx, %r15
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	addl	$-128, %ebx
	cmpl	$10, %ebx
	ja	LBB0_3
## %bb.1:
	movq	%rax, %r13
	movq	(%rax), %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	%r13, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cm_get_battery_temperature     ## TAILCALL
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_batt_uV                    ## TAILCALL
LBB0_5:
	movq	%r13, %rdi
	callq	_is_charging
	testl	%eax, %eax
	je	LBB0_27
## %bb.6:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_7:
	movq	%r13, %rdi
	callq	_is_batt_present
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_19
LBB0_8:
	movq	%r13, %rdi
	callq	_is_ext_pwr_online
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_19
LBB0_9:
	cmpl	$0, 8(%r13)
	jle	LBB0_29
## %bb.10:
	movq	_POWER_SUPPLY_HEALTH_OVERHEAT@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_11:
	movl	4(%r14), %edi
	callq	_power_supply_get_by_name
	testq	%rax, %rax
	je	LBB0_25
## %bb.12:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$135, %esi
	movq	%r15, %rdx
	callq	_power_supply_get_property
	jmp	LBB0_23
LBB0_13:
	movq	%r13, %rdi
	callq	_is_charging
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movq	(%r13), %rax
	movl	4(%rax), %edi
	callq	_power_supply_get_by_name
	testq	%rax, %rax
	je	LBB0_25
## %bb.15:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$136, %esi
	movq	%r15, %rdx
	callq	_power_supply_get_property
	testl	%eax, %eax
	je	LBB0_32
## %bb.16:
	movl	$1, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_17:
	movq	%r13, %rdi
	callq	_is_full_charged
	testl	%eax, %eax
	je	LBB0_19
LBB0_18:
	movl	$1, (%r15)
	jmp	LBB0_38
LBB0_19:
	movl	$0, (%r15)
	jmp	LBB0_38
LBB0_20:
	movq	%r13, %rdi
	callq	_is_batt_present
	testl	%eax, %eax
	je	LBB0_31
## %bb.21:
	movq	(%r13), %rax
	movl	4(%rax), %edi
	callq	_power_supply_get_by_name
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$138, %esi
	movq	%r15, %rdx
	callq	_power_supply_get_property
	testl	%eax, %eax
	je	LBB0_33
LBB0_23:
	movl	%eax, %r12d
LBB0_24:
	movq	%rbx, %rdi
	callq	_power_supply_put
	jmp	LBB0_39
LBB0_25:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_26:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_39
LBB0_27:
	movq	%r13, %rdi
	callq	_is_ext_pwr_online
	testl	%eax, %eax
	je	LBB0_35
## %bb.28:
	movq	_POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_29:
	js	LBB0_36
## %bb.30:
	movq	_POWER_SUPPLY_HEALTH_GOOD@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_31:
	movl	$100, (%r15)
	jmp	LBB0_38
LBB0_32:
	movl	(%r15), %eax
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_33:
	movl	(%r15), %eax
	cmpl	$101, %eax
	jl	LBB0_40
## %bb.34:
	movl	$100, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_35:
	movq	_POWER_SUPPLY_STATUS_DISCHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_36:
	movq	_POWER_SUPPLY_HEALTH_COLD@GOTPCREL(%rip), %rax
LBB0_37:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_38:
	xorl	%r12d, %r12d
LBB0_39:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	testl	%eax, %eax
	jns	LBB0_42
## %bb.41:
	movl	$0, (%r15)
LBB0_42:
	movq	%r13, %rdi
	callq	_is_charging
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.43:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_get_batt_uV
	testl	%eax, %eax
	jne	LBB0_24
## %bb.44:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.45:
	cmpl	%eax, -44(%rbp)
	jl	LBB0_24
## %bb.46:
	movq	%r13, %rdi
	callq	_is_charging
	testl	%eax, %eax
	jne	LBB0_24
## %bb.47:
	movl	$100, (%r15)
	jmp	LBB0_24
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ## @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ## @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_POWER_SUPPLY_HEALTH_COLD,4,2   ## @POWER_SUPPLY_HEALTH_COLD
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ## @POWER_SUPPLY_HEALTH_GOOD
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_charger_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function charger_get_property
_charger_get_property:                  ; @charger_get_property
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	bl	_power_supply_get_drvdata
	sub	w8, w20, #128
	cmp	w8, #10
	b.hi	LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x23, [x0]
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:
	mov	x0, x22
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_cm_get_battery_temperature
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_26
LBB0_4:
	mov	x0, x22
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_get_batt_uV
LBB0_5:
	mov	x0, x22
	bl	_is_charging
	cbz	w0, LBB0_27
; %bb.6:
	mov	w20, #0
Lloh4:
	adrp	x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
	b	LBB0_37
LBB0_7:
	mov	x0, x22
	bl	_is_batt_present
	cbnz	w0, LBB0_18
	b	LBB0_19
LBB0_8:
	mov	x0, x22
	bl	_is_ext_pwr_online
	cbnz	w0, LBB0_18
	b	LBB0_19
LBB0_9:
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.10:
	mov	w20, #0
Lloh6:
	adrp	x8, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGEOFF]
	b	LBB0_37
LBB0_11:
	ldr	w0, [x23, #4]
	bl	_power_supply_get_by_name
	cbz	x0, LBB0_25
; %bb.12:
	mov	x21, x0
	mov	w1, #135
	mov	x2, x19
	bl	_power_supply_get_property
	b	LBB0_23
LBB0_13:
	mov	x0, x22
	bl	_is_charging
	cbz	w0, LBB0_19
; %bb.14:
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	bl	_power_supply_get_by_name
	cbz	x0, LBB0_25
; %bb.15:
	mov	x21, x0
	mov	w1, #136
	mov	x2, x19
	bl	_power_supply_get_property
	mov	w20, #0
	cbz	w0, LBB0_32
; %bb.16:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_24
LBB0_17:
	mov	x0, x22
	bl	_is_full_charged
	cbz	w0, LBB0_19
LBB0_18:
	mov	w20, #0
	mov	w8, #1
	b	LBB0_38
LBB0_19:
	mov	w20, #0
	str	wzr, [x19]
	b	LBB0_39
LBB0_20:
	mov	x0, x22
	bl	_is_batt_present
	cbz	w0, LBB0_31
; %bb.21:
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	bl	_power_supply_get_by_name
	cbz	x0, LBB0_25
; %bb.22:
	mov	x21, x0
	mov	w1, #138
	mov	x2, x19
	bl	_power_supply_get_property
	cbz	w0, LBB0_33
LBB0_23:
	mov	x20, x0
LBB0_24:
	mov	x0, x21
	bl	_power_supply_put
	b	LBB0_39
LBB0_25:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_39
LBB0_27:
	mov	x0, x22
	bl	_is_ext_pwr_online
	mov	w20, #0
	cbz	w0, LBB0_35
; %bb.28:
Lloh10:
	adrp	x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGEOFF]
	b	LBB0_37
LBB0_29:
	mov	w20, #0
	tbnz	w8, #31, LBB0_36
; %bb.30:
Lloh12:
	adrp	x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGEOFF]
	b	LBB0_37
LBB0_31:
	mov	w20, #0
	mov	w8, #100
	b	LBB0_38
LBB0_32:
	ldr	w8, [x19]
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x19]
	b	LBB0_24
LBB0_33:
	ldr	w8, [x19]
	cmp	w8, #101
	b.lt	LBB0_40
LBB0_34:
	mov	w20, #0
	mov	w8, #100
	str	w8, [x19]
	b	LBB0_24
LBB0_35:
Lloh14:
	adrp	x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGEOFF]
	b	LBB0_37
LBB0_36:
Lloh16:
	adrp	x8, _POWER_SUPPLY_HEALTH_COLD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_COLD@GOTPAGEOFF]
LBB0_37:
	ldr	w8, [x8]
LBB0_38:
	str	w8, [x19]
LBB0_39:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_40:
	tbz	w8, #31, LBB0_42
; %bb.41:
	str	wzr, [x19]
LBB0_42:
	mov	x0, x22
	bl	_is_charging
	cbz	w0, LBB0_44
LBB0_43:
	mov	w20, #0
	b	LBB0_24
LBB0_44:
	add	x1, sp, #12
	mov	x0, x22
	bl	_get_batt_uV
	mov	w20, #0
	cbnz	w0, LBB0_24
; %bb.45:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.46:
	ldr	w9, [sp, #12]
	cmp	w9, w8
	b.lt	LBB0_24
; %bb.47:
	mov	x0, x22
	bl	_is_charging
	cbnz	w0, LBB0_43
	b	LBB0_34
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
                                        ; -- End function
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ; @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ; @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_POWER_SUPPLY_HEALTH_COLD,4,2   ; @POWER_SUPPLY_HEALTH_COLD
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ; @POWER_SUPPLY_HEALTH_GOOD
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_charger_get_property
.subsections_via_symbols
