	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp813_ac_power_set_property
_axp813_ac_power_set_property:          ## @axp813_ac_power_set_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	%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
	callq	_power_supply_get_drvdata
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_7
## %bb.2:
	movl	(%r14), %edi
	leal	-4700001(%rdi), %ecx
	cmpl	$-700002, %ecx                  ## imm = 0xFFF5519E
	jbe	LBB0_7
## %bb.3:
	movl	(%rax), %r14d
	movq	_AXP813_ACIN_PATH_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_AXP813_VHOLD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_AXP813_VHOLD_UV_TO_BIT
	jmp	LBB0_4
LBB0_5:
	movl	(%r14), %edi
	leal	-4000001(%rdi), %ecx
	cmpl	$-2500002, %ecx                 ## imm = 0xFFD9DA5E
	ja	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%rax), %r14d
	movq	_AXP813_ACIN_PATH_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_AXP813_CURR_LIMIT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_AXP813_CURR_LIMIT_UA_TO_BIT
LBB0_4:
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AXP813_ACIN_PATH_CTRL,4,2      ## @AXP813_ACIN_PATH_CTRL
	.comm	_AXP813_VHOLD_MASK,4,2          ## @AXP813_VHOLD_MASK
	.comm	_AXP813_CURR_LIMIT_MASK,4,2     ## @AXP813_CURR_LIMIT_MASK
	.no_dead_strip	_axp813_ac_power_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp813_ac_power_set_property
_axp813_ac_power_set_property:          ; @axp813_ac_power_set_property
	.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
	bl	_power_supply_get_drvdata
	cmp	w20, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	sub	w9, w8, #1147, lsl #12          ; =4698112
	sub	w9, w9, #1889
	mov	w10, #20894
	movk	w10, #65525, lsl #16
	cmp	w9, w10
	b.ls	LBB0_5
; %bb.3:
	ldr	w19, [x0]
Lloh0:
	adrp	x9, _AXP813_ACIN_PATH_CTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AXP813_ACIN_PATH_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x9]
Lloh3:
	adrp	x9, _AXP813_VHOLD_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AXP813_VHOLD_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x9]
	mov	x0, x8
	bl	_AXP813_VHOLD_UV_TO_BIT
	b	LBB0_7
LBB0_4:
	ldr	w8, [x19]
	sub	w9, w8, #976, lsl #12           ; =3997696
	sub	w9, w9, #2305
	mov	w10, #55902
	movk	w10, #65497, lsl #16
	cmp	w9, w10
	b.hi	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_6:
	ldr	w19, [x0]
Lloh9:
	adrp	x9, _AXP813_ACIN_PATH_CTRL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AXP813_ACIN_PATH_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x9]
Lloh12:
	adrp	x9, _AXP813_CURR_LIMIT_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AXP813_CURR_LIMIT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x9]
	mov	x0, x8
	bl	_AXP813_CURR_LIMIT_UA_TO_BIT
LBB0_7:
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	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	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AXP813_ACIN_PATH_CTRL,4,2      ; @AXP813_ACIN_PATH_CTRL
	.comm	_AXP813_VHOLD_MASK,4,2          ; @AXP813_VHOLD_MASK
	.comm	_AXP813_CURR_LIMIT_MASK,4,2     ; @AXP813_CURR_LIMIT_MASK
	.no_dead_strip	_axp813_ac_power_set_property
.subsections_via_symbols
