	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abx500_chargalg_get_property
_abx500_chargalg_get_property:          ## @abx500_chargalg_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
	cmpl	$129, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_7
## %bb.2:
	movl	28(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	cmpl	$0, 24(%rax)
	je	LBB0_9
## %bb.4:
	movq	_POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	cmpl	$0, 20(%rax)
	je	LBB0_12
## %bb.10:
	movl	16(%rax), %ecx
	movq	8(%rax), %rax
	cmpl	(%rax), %ecx
	jle	LBB0_15
## %bb.11:
	movq	_POWER_SUPPLY_HEALTH_OVERHEAT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movl	(%rax), %eax
	movq	_STATE_SAFETY_TIMER_EXPIRED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_16
## %bb.13:
	movq	_STATE_SAFETY_TIMER_EXPIRED_INIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_16
## %bb.14:
	movq	_POWER_SUPPLY_HEALTH_GOOD@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movq	_POWER_SUPPLY_HEALTH_COLD@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_16:
	movq	_POWER_SUPPLY_HEALTH_UNSPEC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,2 ## @POWER_SUPPLY_HEALTH_OVERVOLTAGE
	.comm	_POWER_SUPPLY_HEALTH_COLD,4,2   ## @POWER_SUPPLY_HEALTH_COLD
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ## @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_STATE_SAFETY_TIMER_EXPIRED,4,2 ## @STATE_SAFETY_TIMER_EXPIRED
	.comm	_STATE_SAFETY_TIMER_EXPIRED_INIT,4,2 ## @STATE_SAFETY_TIMER_EXPIRED_INIT
	.comm	_POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,4,2 ## @POWER_SUPPLY_HEALTH_UNSPEC_FAILURE
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ## @POWER_SUPPLY_HEALTH_GOOD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_abx500_chargalg_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abx500_chargalg_get_property
_abx500_chargalg_get_property:          ; @abx500_chargalg_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
	mov	x8, x0
	cmp	w20, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_6
; %bb.2:
	mov	w0, #0
	ldr	w8, [x8, #28]
	str	w8, [x19]
	b	LBB0_7
LBB0_3:
	ldr	w9, [x8, #24]
	cbz	w9, LBB0_8
; %bb.4:
	mov	w0, #0
Lloh0:
	adrp	x8, _POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_OVERVOLTAGE@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w9, [x8, #20]
	cbz	w9, LBB0_11
; %bb.9:
	ldr	w9, [x8, #16]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_13
; %bb.10:
	mov	w0, #0
Lloh5:
	adrp	x8, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _STATE_SAFETY_TIMER_EXPIRED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _STATE_SAFETY_TIMER_EXPIRED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _STATE_SAFETY_TIMER_EXPIRED_INIT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _STATE_SAFETY_TIMER_EXPIRED_INIT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	cmp	w8, w9
	mov	w0, #0
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_14
; %bb.12:
Lloh13:
	adrp	x8, _POWER_SUPPLY_HEALTH_UNSPEC_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_UNSPEC_FAILURE@GOTPAGEOFF]
	b	LBB0_5
LBB0_13:
	mov	w0, #0
Lloh15:
	adrp	x8, _POWER_SUPPLY_HEALTH_COLD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_COLD@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
Lloh17:
	adrp	x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,2 ; @POWER_SUPPLY_HEALTH_OVERVOLTAGE
	.comm	_POWER_SUPPLY_HEALTH_COLD,4,2   ; @POWER_SUPPLY_HEALTH_COLD
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ; @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_STATE_SAFETY_TIMER_EXPIRED,4,2 ; @STATE_SAFETY_TIMER_EXPIRED
	.comm	_STATE_SAFETY_TIMER_EXPIRED_INIT,4,2 ; @STATE_SAFETY_TIMER_EXPIRED_INIT
	.comm	_POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,4,2 ; @POWER_SUPPLY_HEALTH_UNSPEC_FAILURE
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ; @POWER_SUPPLY_HEALTH_GOOD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_abx500_chargalg_get_property
.subsections_via_symbols
