	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp288_charger_usb_get_property
_axp288_charger_usb_get_property:       ## @axp288_charger_usb_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	_power_supply_get_drvdata
	addl	$-128, %ebx
	cmpl	$7, %ebx
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	cmpl	$0, 16(%rax)
	jne	LBB0_6
## %bb.3:
	movq	%rax, %rdi
	callq	_axp288_charger_is_present
	testl	%eax, %eax
	jns	LBB0_13
	jmp	LBB0_15
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_5:
	cmpl	$0, 16(%rax)
	je	LBB0_16
LBB0_6:
	movl	$0, (%r14)
	jmp	LBB0_14
LBB0_7:
	movq	%rax, %rdi
	callq	_axp288_charger_get_vbus_inlmt
	testl	%eax, %eax
	jns	LBB0_13
	jmp	LBB0_15
LBB0_8:
	movq	%rax, %rdi
	callq	_axp288_get_charger_health
	jmp	LBB0_13
LBB0_9:
	imull	$1000, 12(%rax), %eax           ## imm = 0x3E8
	jmp	LBB0_13
LBB0_10:
	imull	$1000, 8(%rax), %eax            ## imm = 0x3E8
	jmp	LBB0_13
LBB0_11:
	imull	$1000, 4(%rax), %eax            ## imm = 0x3E8
	jmp	LBB0_13
LBB0_12:
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
LBB0_13:
	movl	%eax, (%r14)
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	movq	%rax, %rdi
	callq	_axp288_charger_is_online
	testl	%eax, %eax
	jns	LBB0_13
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-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
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.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
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_axp288_charger_usb_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp288_charger_usb_get_property
_axp288_charger_usb_get_property:       ; @axp288_charger_usb_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	_power_supply_get_drvdata
	sub	w9, w20, #128
	cmp	w9, #7
	b.hi	LBB0_4
; %bb.1:
	mov	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:
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_6
; %bb.3:
	mov	x0, x8
	bl	_axp288_charger_is_present
	tbz	w0, #31, LBB0_15
	b	LBB0_16
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_5:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_14
LBB0_6:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_16
LBB0_7:
	mov	x0, x8
	bl	_axp288_charger_get_vbus_inlmt
	tbz	w0, #31, LBB0_15
	b	LBB0_16
LBB0_8:
	mov	x0, x8
	bl	_axp288_get_charger_health
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_16
LBB0_9:
	mov	w0, #0
	ldr	w8, [x8, #12]
	b	LBB0_13
LBB0_10:
	mov	w0, #0
	ldr	w8, [x8, #8]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
	ldr	w8, [x8, #4]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
	ldr	w8, [x8]
LBB0_13:
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x19]
	b	LBB0_16
LBB0_14:
	mov	x0, x8
	bl	_axp288_charger_is_online
	tbnz	w0, #31, LBB0_16
LBB0_15:
	str	w0, [x19]
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-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
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_axp288_charger_usb_get_property
.subsections_via_symbols
