	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_battery_get_state
_acpi_battery_get_state:                ## @acpi_battery_get_state
	.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, %r12
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_cache_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_time_before
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_2:
	movq	_state_readers@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movl	$8, %ebx
	xorl	%r15d, %r15d
	movq	_ACPI_SBS_BATTERY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	-4(%rax,%rbx), %ecx
	movl	(%rax,%rbx), %esi
	movl	(%r13), %edx
	movslq	-8(%rax,%rbx), %rax
	leaq	(%r12,%rax,4), %r8
	callq	_acpi_smbus_read
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %rbx
	cmpq	%rax, %r15
	jl	LBB0_4
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r12)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_cache_time,4,2                 ## @cache_time
	.comm	_state_readers,8,3              ## @state_readers
	.comm	_ACPI_SBS_BATTERY,4,2           ## @ACPI_SBS_BATTERY
	.no_dead_strip	_acpi_battery_get_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_battery_get_state
_acpi_battery_get_state:                ; @acpi_battery_get_state
	.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	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	cbz	x22, LBB0_3
; %bb.1:
	ldr	x20, [x21]
Lloh2:
	adrp	x8, _cache_time@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cache_time@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x22
	mov	x0, x20
	bl	_time_before
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x20, _state_readers@GOTPAGE
Lloh6:
	ldr	x20, [x20, _state_readers@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x22, #0
	mov	x23, #0
Lloh7:
	adrp	x24, _ACPI_SBS_BATTERY@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ACPI_SBS_BATTERY@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x8, x8, x22
	ldp	w3, w1, [x8, #4]
	ldr	w2, [x24]
	ldrsw	x8, [x8]
	add	x4, x19, x8, lsl #2
	bl	_acpi_smbus_read
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x22, x22, #12
	cmp	x23, w0, sxtw
	b.lt	LBB0_5
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldr	x8, [x21]
	str	x8, [x19]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_cache_time,4,2                 ; @cache_time
	.comm	_state_readers,8,3              ; @state_readers
	.comm	_ACPI_SBS_BATTERY,4,2           ; @ACPI_SBS_BATTERY
	.no_dead_strip	_acpi_battery_get_state
.subsections_via_symbols
