	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8925_bat_get_prop
_max8925_bat_get_prop:                  ## @max8925_bat_get_prop
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_24
## %bb.1:
	movq	%rax, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	cmpl	$0, (%r15)
	je	LBB0_18
## %bb.4:
	movq	_MEASURE_VMBATT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_start_measure
	testl	%eax, %eax
	js	LBB0_18
## %bb.5:
	imull	$2000, %eax, %eax               ## imm = 0x7D0
	jmp	LBB0_6
LBB0_24:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_25
LBB0_17:
	cmpl	$0, (%r15)
	je	LBB0_18
## %bb.19:
	movl	12(%r15), %edi
	movq	_MAX8925_CHG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max8925_reg_read
	movl	%eax, %ecx
	cmpl	$0, 8(%r15)
	jne	LBB0_21
## %bb.20:
	cmpl	$0, 4(%r15)
	je	LBB0_23
LBB0_21:
	movq	_POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_MAX8925_CHG_STAT_EN_MASK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_26
## %bb.22:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_2:
	movl	(%r15), %eax
LBB0_6:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_7:
	cmpl	$0, (%r15)
	je	LBB0_18
## %bb.8:
	movq	_MEASURE_ISNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_start_measure
	testl	%eax, %eax
	js	LBB0_18
## %bb.9:
	imull	$6250, %eax, %ecx               ## imm = 0x186A
	leal	-3125(%rcx), %edx
	xorl	%eax, %eax
	cmpl	$3126, %ecx                     ## imm = 0xC36
	cmovll	%eax, %edx
	movl	%edx, (%r14)
	jmp	LBB0_26
LBB0_10:
	cmpl	$0, (%r15)
	je	LBB0_18
## %bb.11:
	movl	12(%r15), %edi
	movq	_MAX8925_CHG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max8925_reg_read
	movl	%eax, %ecx
	movq	_MAX8925_CHG_STAT_MODE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	sarl	$2, %ecx
	xorl	%eax, %eax
	cmpl	$3, %ecx
	ja	LBB0_26
## %bb.12:
	leaq	LJTI0_1(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_15:
	movq	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_18:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
LBB0_25:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_13:
	movq	_POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_16:
	movq	_POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_POWER_SUPPLY_STATUS_DISCHARGING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_17
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_10
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
LJTI0_1:
	.long	L0_1_set_15
	.long	L0_1_set_13
	.long	L0_1_set_15
	.long	L0_1_set_16
	.end_data_region
                                        ## -- End function
	.comm	_MEASURE_VMBATT,4,2             ## @MEASURE_VMBATT
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_MEASURE_ISNS,4,2               ## @MEASURE_ISNS
	.comm	_MAX8925_CHG_STATUS,4,2         ## @MAX8925_CHG_STATUS
	.comm	_MAX8925_CHG_STAT_MODE_MASK,4,2 ## @MAX8925_CHG_STAT_MODE_MASK
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_MAX8925_CHG_STAT_EN_MASK,4,2   ## @MAX8925_CHG_STAT_EN_MASK
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ## @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_max8925_bat_get_prop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8925_bat_get_prop
_max8925_bat_get_prop:                  ; @max8925_bat_get_prop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_19
; %bb.3:
Lloh2:
	adrp	x8, _MEASURE_VMBATT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEASURE_VMBATT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_start_measure
	tbnz	w0, #31, LBB0_19
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #2000
	mul	w8, w8, w9
	b	LBB0_26
LBB0_5:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_20
LBB0_6:
	ldr	w8, [x20]
	cbz	w8, LBB0_19
; %bb.7:
	ldr	w0, [x20, #12]
Lloh7:
	adrp	x8, _MAX8925_CHG_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX8925_CHG_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_max8925_reg_read
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_9
; %bb.8:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_24
LBB0_9:
Lloh10:
	adrp	x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh13:
	adrp	x8, _MAX8925_CHG_STAT_EN_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX8925_CHG_STAT_EN_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_21
; %bb.10:
	mov	w0, #0
Lloh16:
	adrp	x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
	b	LBB0_25
LBB0_11:
	mov	w0, #0
	ldr	w8, [x20]
	b	LBB0_26
LBB0_12:
	ldr	w8, [x20]
	cbz	w8, LBB0_19
; %bb.13:
Lloh18:
	adrp	x8, _MEASURE_ISNS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MEASURE_ISNS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_start_measure
	tbnz	w0, #31, LBB0_19
; %bb.14:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #6250
	mul	w8, w8, w9
	subs	w8, w8, #3125
	csel	w8, w8, wzr, gt
	b	LBB0_26
LBB0_15:
	ldr	w8, [x20]
	cbz	w8, LBB0_19
; %bb.16:
	ldr	w0, [x20, #12]
Lloh21:
	adrp	x8, _MAX8925_CHG_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX8925_CHG_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_max8925_reg_read
Lloh24:
	adrp	x8, _MAX8925_CHG_STAT_MODE_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX8925_CHG_STAT_MODE_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w8, w8, w0
	asr	w8, w8, #2
	cmp	w8, #3
	b.hi	LBB0_21
; %bb.17:
Lloh27:
	adrp	x9, lJTI0_1@PAGE
Lloh28:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_18:
	mov	w0, #0
Lloh29:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPAGEOFF]
	b	LBB0_25
LBB0_19:
Lloh31:
	adrp	x8, _ENODATA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_27
LBB0_21:
	mov	w0, #0
	b	LBB0_27
LBB0_22:
	mov	w0, #0
Lloh33:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
	mov	w0, #0
Lloh35:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
	mov	w0, #0
Lloh37:
	adrp	x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGE
Lloh38:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
LBB0_26:
	str	w8, [x19]
LBB0_27:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_22-LBB0_18)>>2
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_23-LBB0_18)>>2
                                        ; -- End function
	.comm	_MEASURE_VMBATT,4,2             ; @MEASURE_VMBATT
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_MEASURE_ISNS,4,2               ; @MEASURE_ISNS
	.comm	_MAX8925_CHG_STATUS,4,2         ; @MAX8925_CHG_STATUS
	.comm	_MAX8925_CHG_STAT_MODE_MASK,4,2 ; @MAX8925_CHG_STAT_MODE_MASK
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_MAX8925_CHG_STAT_EN_MASK,4,2   ; @MAX8925_CHG_STAT_EN_MASK
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ; @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_max8925_bat_get_prop
.subsections_via_symbols
