	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_btemp_get_ext_psy_data
_ab8500_btemp_get_ext_psy_data:         ## @ab8500_btemp_get_ext_psy_data
	.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	%rsi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	16(%rax), %r12
	movq	%r15, %rdi
	callq	_power_supply_get_drvdata
	movq	%rax, %r14
	movl	8(%r13), %esi
	movq	(%r15), %rax
	movl	20(%rax), %edx
	movq	%r12, %rdi
	callq	_match_string
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.2:
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r15
	jmp	LBB0_3
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ab8500_btemp_periodic
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	(%r13), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r12
	jge	LBB0_19
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	(%rax,%r12,4), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_power_supply_get_property
	cmpl	$130, %ebx
	jne	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	jne	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movl	16(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %eax
	jne	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)
	movl	(%r14), %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%r14)
	cmpl	$0, 4(%r14)
	jne	LBB0_18
	jmp	LBB0_17
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)
	movl	4(%r14), %eax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, 4(%r14)
	cmpl	$0, (%r14)
	jne	LBB0_18
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, (%r14)
	jmp	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, 4(%r14)
	jmp	LBB0_18
LBB0_19:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ab8500_btemp_get_ext_psy_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_btemp_get_ext_psy_data
_ab8500_btemp_get_ext_psy_data:         ; @ab8500_btemp_get_ext_psy_data
	.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	x21, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x22, [x0, #16]
	mov	x0, x21
	bl	_power_supply_get_drvdata
	mov	x20, x0
	ldr	w1, [x19, #8]
	ldr	x8, [x21]
	ldr	w2, [x8, #20]
	mov	x0, x22
	bl	_match_string
	tbnz	w0, #31, LBB0_18
; %bb.1:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.2:
	mov	x22, #0
	mov	w23, #1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_ab8500_btemp_periodic
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19]
	ldrsw	x9, [x8]
	cmp	x22, x9
	b.ge	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	w21, [x8, x22, lsl #2]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_power_supply_get_property
	cmp	w21, #130
	ccmp	x0, #0, #0, eq
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	w8, [x8, #16]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #8]
	ldr	w8, [x20]
	cbz	w9, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x20]
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_4
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #8]
	ldr	w8, [x20, #4]
	cbz	w9, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x20, #4]
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x20]
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x20, #4]
	b	LBB0_4
LBB0_18:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ab8500_btemp_get_ext_psy_data
.subsections_via_symbols
