	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77650_charger_get_property
_max77650_charger_get_property:         ## @max77650_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	cmpl	$130, %ebx
	je	LBB0_16
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_14
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_24
## %bb.3:
	movl	(%rax), %edi
	movq	_MAX77650_REG_STAT_CHG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_25
## %bb.4:
	movl	-20(%rbp), %edi
	callq	_MAX77650_CHARGER_CHG_CHARGING
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:
	movl	-20(%rbp), %edi
	callq	_MAX77650_CHG_DETAILS_BITS
	addl	$-131, %eax
	cmpl	$11, %eax
	ja	LBB0_13
## %bb.9:
	movl	$1016, %ecx                     ## imm = 0x3F8
	btl	%eax, %ecx
	jae	LBB0_10
LBB0_5:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_16:
	movl	(%rax), %edi
	movq	_MAX77650_REG_STAT_CHG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_25
## %bb.17:
	movl	-20(%rbp), %edi
	callq	_MAX77650_CHARGER_CHG_CHARGING
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movl	-20(%rbp), %edi
	callq	_MAX77650_CHG_DETAILS_BITS
	addl	$-134, %eax
	cmpl	$6, %eax
	ja	LBB0_23
## %bb.20:
	movl	$103, %ecx
	btl	%eax, %ecx
	jae	LBB0_22
## %bb.21:
	movq	_POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_14:
	movl	(%rax), %edi
	movq	_MAX77650_REG_STAT_CHG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_25
## %bb.15:
	movl	-20(%rbp), %edi
	callq	_MAX77650_CHARGER_CHG_CHARGING
	jmp	LBB0_7
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_25
LBB0_18:
	movq	_POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_22:
	movq	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	movl	$1031, %ecx                     ## imm = 0x407
	btl	%eax, %ecx
	jae	LBB0_12
## %bb.11:
	movq	_POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_23:
	movq	_POWER_SUPPLY_CHARGE_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_13:
	movq	_POWER_SUPPLY_STATUS_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
LBB0_7:
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_25:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX77650_REG_STAT_CHG_B,4,2    ## @MAX77650_REG_STAT_CHG_B
	.comm	_POWER_SUPPLY_STATUS_CHARGING,8,3 ## @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,8,3 ## @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_FULL,8,3   ## @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_UNKNOWN,8,3 ## @POWER_SUPPLY_STATUS_UNKNOWN
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,8,3 ## @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,8,3 ## @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,8,3 ## @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_UNKNOWN,8,3 ## @POWER_SUPPLY_CHARGE_TYPE_UNKNOWN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max77650_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 max77650_charger_get_property
_max77650_charger_get_property:         ; @max77650_charger_get_property
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_power_supply_get_drvdata
	cmp	w20, #130
	b.eq	LBB0_8
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_13
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_15
; %bb.3:
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _MAX77650_REG_STAT_CHG_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX77650_REG_STAT_CHG_B@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_25
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_MAX77650_CHARGER_CHG_CHARGING
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_MAX77650_CHG_DETAILS_BITS
	sub	w8, w0, #131
	cmp	w8, #11
	b.hi	LBB0_21
; %bb.6:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x3f8
	b.eq	LBB0_18
LBB0_7:
	mov	w0, #0
Lloh3:
	adrp	x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
	b	LBB0_23
LBB0_8:
	ldr	w0, [x0]
Lloh5:
	adrp	x8, _MAX77650_REG_STAT_CHG_B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX77650_REG_STAT_CHG_B@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_25
; %bb.9:
	ldr	w0, [sp, #12]
	bl	_MAX77650_CHARGER_CHG_CHARGING
	cbz	x0, LBB0_16
; %bb.10:
	ldr	w0, [sp, #12]
	bl	_MAX77650_CHG_DETAILS_BITS
	sub	w8, w0, #134
	cmp	w8, #6
	b.hi	LBB0_20
; %bb.11:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #103
	tst	w8, w9
	b.eq	LBB0_17
; %bb.12:
	mov	w0, #0
Lloh8:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGEOFF]
	b	LBB0_23
LBB0_13:
	ldr	w0, [x0]
Lloh10:
	adrp	x8, _MAX77650_REG_STAT_CHG_B@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX77650_REG_STAT_CHG_B@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_25
; %bb.14:
	ldr	w0, [sp, #12]
	bl	_MAX77650_CHARGER_CHG_CHARGING
	mov	x8, x0
	mov	w0, #0
	b	LBB0_24
LBB0_15:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_16:
Lloh16:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGEOFF]
	b	LBB0_23
LBB0_17:
	mov	w0, #0
Lloh18:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPAGEOFF]
	b	LBB0_23
LBB0_18:
	mov	w9, #1031
	tst	w8, w9
	b.eq	LBB0_22
; %bb.19:
	mov	w0, #0
Lloh20:
	adrp	x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
	mov	w0, #0
Lloh22:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_UNKNOWN@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
	mov	w0, #0
Lloh24:
	adrp	x8, _POWER_SUPPLY_STATUS_UNKNOWN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_UNKNOWN@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
	mov	w0, #0
Lloh26:
	adrp	x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
LBB0_23:
	ldr	x8, [x8]
LBB0_24:
	str	x8, [x19]
LBB0_25:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX77650_REG_STAT_CHG_B,4,2    ; @MAX77650_REG_STAT_CHG_B
	.comm	_POWER_SUPPLY_STATUS_CHARGING,8,3 ; @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,8,3 ; @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_FULL,8,3   ; @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_UNKNOWN,8,3 ; @POWER_SUPPLY_STATUS_UNKNOWN
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,8,3 ; @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,8,3 ; @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,8,3 ; @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_UNKNOWN,8,3 ; @POWER_SUPPLY_CHARGE_TYPE_UNKNOWN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_max77650_charger_get_property
.subsections_via_symbols
