	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __find_main_battery
___find_main_battery:                   ## @__find_main_battery
	.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	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, 24(%rbx)
	movq	(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%rax, 48(%rbx)
	movl	$1, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_CHARGE_FULL_DESIGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	16(%rbx), %r14
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_PSY_PROP
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	24(%rbx), %rdi
	movq	_CHARGE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_PSY_PROP
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	24(%rbx), %rdi
	movq	_ENERGY_FULL_DESIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_PSY_PROP
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	24(%rbx), %rdi
	movq	_ENERGY_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_PSY_PROP
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
LBB0_8:
	movq	16(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	8(%rbx), %rcx
	jle	LBB0_10
## %bb.9:
	movq	24(%rbx), %rdx
	movq	%rdx, 32(%rbx)
	movq	%rcx, 8(%rbx)
	jmp	LBB0_10
LBB0_4:
	movq	16(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	(%rbx), %rcx
	jle	LBB0_10
## %bb.5:
	movq	24(%rbx), %rdx
	movq	%rdx, 40(%rbx)
	movq	%rcx, (%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CHARGE_FULL_DESIGN,4,2         ## @CHARGE_FULL_DESIGN
	.comm	_CHARGE_FULL,4,2                ## @CHARGE_FULL
	.comm	_ENERGY_FULL_DESIGN,4,2         ## @ENERGY_FULL_DESIGN
	.comm	_ENERGY_FULL,4,2                ## @ENERGY_FULL
	.no_dead_strip	___find_main_battery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __find_main_battery
___find_main_battery:                   ; @__find_main_battery
	.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, x1
	bl	_dev_get_drvdata
	str	x0, [x19, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	str	x0, [x19, #48]
	mov	w0, #1
	b	LBB0_11
LBB0_2:
Lloh0:
	adrp	x8, _CHARGE_FULL_DESIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHARGE_FULL_DESIGN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x20, x19, #16
	mov	x2, x20
	bl	_PSY_PROP
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x0, [x19, #24]
Lloh3:
	adrp	x8, _CHARGE_FULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHARGE_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_PSY_PROP
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x0, [x19, #24]
Lloh6:
	adrp	x8, _ENERGY_FULL_DESIGN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENERGY_FULL_DESIGN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_PSY_PROP
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #24]
Lloh9:
	adrp	x8, _ENERGY_FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENERGY_FULL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_PSY_PROP
	cbnz	w0, LBB0_10
LBB0_6:
	ldp	x9, x8, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.7:
	mov	w0, #0
	ldr	x9, [x19, #24]
	str	x9, [x19, #32]
	str	x8, [x19, #8]
	b	LBB0_11
LBB0_8:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.9:
	mov	w0, #0
	ldr	x9, [x19, #24]
	str	x9, [x19, #40]
	str	x8, [x19]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CHARGE_FULL_DESIGN,4,2         ; @CHARGE_FULL_DESIGN
	.comm	_CHARGE_FULL,4,2                ; @CHARGE_FULL
	.comm	_ENERGY_FULL_DESIGN,4,2         ; @ENERGY_FULL_DESIGN
	.comm	_ENERGY_FULL,4,2                ; @ENERGY_FULL
	.no_dead_strip	___find_main_battery
.subsections_via_symbols
