	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_backup_get_prop
_wm831x_backup_get_prop:                ## @wm831x_backup_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, %r15d
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	(%rax), %rbx
	movq	_WM831X_BACKUP_CHARGER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wm831x_reg_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	cmpl	$128, %r15d
	je	LBB0_8
## %bb.2:
	cmpl	$130, %r15d
	je	LBB0_9
## %bb.3:
	cmpl	$129, %r15d
	jne	LBB0_12
## %bb.4:
	movq	_WM831X_BKUP_CHG_STS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_8:
	movq	_WM831X_AUX_BKUP_BATT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm831x_backup_read_voltage     ## TAILCALL
LBB0_9:
	movq	_WM831X_BKUP_CHG_STS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movl	$1, (%r14)
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_11:
	movl	$0, (%r14)
	jmp	LBB0_13
LBB0_7:
	movq	_POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM831X_BACKUP_CHARGER_CONTROL,4,2 ## @WM831X_BACKUP_CHARGER_CONTROL
	.comm	_WM831X_BKUP_CHG_STS,4,2        ## @WM831X_BKUP_CHG_STS
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_WM831X_AUX_BKUP_BATT,4,2       ## @WM831X_AUX_BKUP_BATT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wm831x_backup_get_prop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_backup_get_prop
_wm831x_backup_get_prop:                ; @wm831x_backup_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	x20, x1
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _WM831X_BACKUP_CHARGER_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM831X_BACKUP_CHARGER_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wm831x_reg_read
	tbnz	w0, #31, LBB0_14
; %bb.1:
	cmp	w20, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w20, #129
	b.ne	LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _WM831X_BKUP_CHG_STS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM831X_BKUP_CHG_STS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.5:
Lloh6:
	adrp	x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh8:
	adrp	x8, _WM831X_AUX_BKUP_BATT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM831X_AUX_BKUP_BATT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	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
	b	_wm831x_backup_read_voltage
LBB0_7:
Lloh11:
	adrp	x8, _WM831X_BKUP_CHG_STS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM831X_BKUP_CHG_STS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.8:
	mov	w8, #1
	b	LBB0_13
LBB0_9:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_10:
	str	wzr, [x19]
	b	LBB0_14
LBB0_11:
Lloh17:
	adrp	x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
LBB0_13:
	str	w8, [x19]
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WM831X_BACKUP_CHARGER_CONTROL,4,2 ; @WM831X_BACKUP_CHARGER_CONTROL
	.comm	_WM831X_BKUP_CHG_STS,4,2        ; @WM831X_BKUP_CHG_STS
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_WM831X_AUX_BKUP_BATT,4,2       ; @WM831X_AUX_BKUP_BATT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wm831x_backup_get_prop
.subsections_via_symbols
