	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abx500_chargalg_update_chg_curr
_abx500_chargalg_update_chg_curr:       ## @abx500_chargalg_update_chg_curr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movq	_AC_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_7
## %bb.3:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%esi, %edi
	movq	%rax, %rsi
	callq	_min
	movl	%eax, %esi
	movq	24(%rbx), %rdi
	movq	(%rdi), %rcx
LBB0_5:
	movl	%esi, 12(%rbx)
	jmp	LBB0_6
LBB0_7:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.8:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.9:
	movq	_USB_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_13
## %bb.10:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	%esi, %edi
	movq	%rax, %rsi
	callq	_min
	movl	%eax, %esi
	movq	(%rbx), %rdi
	movq	(%rdi), %rcx
LBB0_12:
	movl	%esi, 16(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_13:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_CHG,4,2                     ## @AC_CHG
	.comm	_USB_CHG,4,2                    ## @USB_CHG
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_abx500_chargalg_update_chg_curr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abx500_chargalg_update_chg_curr
_abx500_chargalg_update_chg_curr:       ; @abx500_chargalg_update_chg_curr
	.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, x0
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x2, [x0]
	cbz	x2, LBB0_6
; %bb.2:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _AC_CHG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC_CHG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x1
	mov	x1, x8
	bl	_min
	mov	x1, x0
	ldr	x0, [x19, #24]
	ldr	x2, [x0]
LBB0_5:
	str	w1, [x19, #12]
	b	LBB0_12
LBB0_6:
	ldr	x0, [x19]
	cbz	x0, LBB0_13
; %bb.7:
	ldr	x2, [x0]
	cbz	x2, LBB0_13
; %bb.8:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _USB_CHG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_CHG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.9:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x1
	mov	x1, x8
	bl	_min
	mov	x1, x0
	ldr	x0, [x19]
	ldr	x2, [x0]
LBB0_11:
	str	w1, [x19, #16]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_13:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_CHG,4,2                     ; @AC_CHG
	.comm	_USB_CHG,4,2                    ; @USB_CHG
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_abx500_chargalg_update_chg_curr
.subsections_via_symbols
