	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_charger_get_property
_cpcap_charger_get_property:            ## @cpcap_charger_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
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	(%rax), %ecx
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_8
## %bb.3:
	movq	%rax, %rdi
	callq	_cpcap_charger_get_charge_voltage
	jmp	LBB0_7
LBB0_4:
	movl	(%rax), %eax
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movl	%edx, (%r14)
	jmp	LBB0_12
LBB0_5:
	movl	(%rax), %ecx
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_8
## %bb.6:
	movq	%rax, %rdi
	callq	_cpcap_charger_get_charge_current
LBB0_7:
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	jmp	LBB0_11
LBB0_8:
	movl	$0, (%r14)
	jmp	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	movl	%eax, (%r14)
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cpcap_charger_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_charger_get_property
_cpcap_charger_get_property:            ; @cpcap_charger_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
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	sub	w9, w20, #128
	cmp	w9, #3
	b.hi	LBB0_9
; %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]
Lloh2:
	adrp	x10, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh3:
	ldr	x10, [x10, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x8
	bl	_cpcap_charger_get_charge_voltage
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w8, eq
	b	LBB0_11
LBB0_5:
	ldr	w9, [x8]
Lloh8:
	adrp	x10, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh9:
	ldr	x10, [x10, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x8
	bl	_cpcap_charger_get_charge_current
LBB0_7:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #1000
	mul	w8, w8, w9
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_12
LBB0_9:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	ldr	w8, [x8]
LBB0_11:
	str	w8, [x19]
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cpcap_charger_get_property
.subsections_via_symbols
