	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_charger_get_ext_psy_data
_ab8500_charger_get_ext_psy_data:       ## @ab8500_charger_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, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	16(%rax), %r15
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_to_ab8500_charger_usb_device_info
	movq	%rax, %r14
	movl	8(%r12), %esi
	movq	(%rbx), %rax
	movl	20(%rax), %edx
	movq	%r15, %rdi
	callq	_match_string
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	(%r12), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%rcx), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rax
	movl	(%rax,%rbx,4), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_power_supply_get_property
	movq	(%r12), %rcx
	cmpl	$129, %r13d
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, 16(%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	-48(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_8:
	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_charger_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_charger_get_ext_psy_data
_ab8500_charger_get_ext_psy_data:       ; @ab8500_charger_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	x20, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x22, [x20]
	mov	x0, x20
	bl	_to_ab8500_charger_usb_device_info
	mov	x20, x0
	ldr	w1, [x19, #8]
	ldr	x8, [x22]
	ldr	w2, [x8, #20]
	mov	x0, x21
	bl	_match_string
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x22, #0
	mov	w23, #19923
	movk	w23, #4194, lsl #16
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x8]
	cmp	x22, x9
	b.ge	LBB0_7
LBB0_4:                                 ; =>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
	ldr	x8, [x19]
	cmp	w21, #129
	ccmp	x0, #0, #0, eq
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #16]
	cmp	w9, #128
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [sp, #8]
	mul	x9, x9, x23
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	str	w9, [x20]
	b	LBB0_3
LBB0_7:
	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_charger_get_ext_psy_data
.subsections_via_symbols
