	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_bat_get_property
_pmu_bat_get_property:                  ## @pmu_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_to_pmu_battery_dev
	addl	$-128, %ebx
	cmpl	$7, %ebx
	ja	LBB0_3
## %bb.1:
	movq	(%rax), %rdi
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	imull	$1000, 16(%rdi), %eax           ## imm = 0x3E8
	jmp	LBB0_16
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_4:
	movl	20(%rdi), %eax
	jmp	LBB0_16
LBB0_5:
	movq	_PMU_BATT_CHARGING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_12
## %bb.6:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	movq	_PMU_BATT_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%rdi), %eax
	setne	%cl
	movl	%ecx, (%r14)
	jmp	LBB0_17
LBB0_8:
	callq	_pmu_bat_get_model_name
	jmp	LBB0_16
LBB0_9:
	imull	$1000, 8(%rdi), %eax            ## imm = 0x3E8
	jmp	LBB0_16
LBB0_10:
	imull	$1000, 4(%rdi), %eax            ## imm = 0x3E8
	jmp	LBB0_16
LBB0_11:
	imull	$1000, 12(%rdi), %eax           ## imm = 0x3E8
	jmp	LBB0_16
LBB0_12:
	movq	_pmu_power_flags@GOTPCREL(%rip), %rax
	movq	_PMU_PWR_AC_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_POWER_SUPPLY_STATUS_DISCHARGING@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	movl	%eax, (%r14)
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-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_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_PMU_BATT_CHARGING,4,2          ## @PMU_BATT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.comm	_pmu_power_flags,4,2            ## @pmu_power_flags
	.comm	_PMU_PWR_AC_PRESENT,4,2         ## @PMU_PWR_AC_PRESENT
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ## @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ## @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_PMU_BATT_PRESENT,4,2           ## @PMU_BATT_PRESENT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pmu_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 pmu_bat_get_property
_pmu_bat_get_property:                  ; @pmu_bat_get_property
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_to_pmu_battery_dev
	sub	w9, w20, #128
	cmp	w9, #7
	b.hi	LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w0, #0
	ldr	w8, [x8, #16]
	b	LBB0_12
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_4:
	mov	w0, #0
	ldr	w8, [x8, #20]
	b	LBB0_13
LBB0_5:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PMU_BATT_CHARGING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PMU_BATT_CHARGING@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.6:
	mov	w0, #0
Lloh8:
	adrp	x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
	b	LBB0_18
LBB0_7:
	mov	w0, #0
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PMU_BATT_PRESENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PMU_BATT_PRESENT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	b	LBB0_13
LBB0_8:
	mov	x0, x8
	bl	_pmu_bat_get_model_name
	mov	x8, x0
	mov	w0, #0
	b	LBB0_13
LBB0_9:
	mov	w0, #0
	ldr	w8, [x8, #8]
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	ldr	w8, [x8, #4]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
	ldr	w8, [x8, #12]
LBB0_12:
	mov	w9, #1000
	mul	w8, w8, w9
LBB0_13:
	str	w8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh13:
	adrp	x8, _pmu_power_flags@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pmu_power_flags@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _PMU_PWR_AC_PRESENT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PMU_PWR_AC_PRESENT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	mov	w0, #0
Lloh19:
	adrp	x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	mov	w0, #0
Lloh21:
	adrp	x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-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_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_PMU_BATT_CHARGING,4,2          ; @PMU_BATT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.comm	_pmu_power_flags,4,2            ; @pmu_power_flags
	.comm	_PMU_PWR_AC_PRESENT,4,2         ; @PMU_PWR_AC_PRESENT
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ; @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ; @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_PMU_BATT_PRESENT,4,2           ; @PMU_BATT_PRESENT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pmu_bat_get_property
.subsections_via_symbols
