	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abx500_chargalg_check_charger_enable
_abx500_chargalg_check_charger_enable:  ## @abx500_chargalg_check_charger_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.1:
	movl	24(%rdi), %eax
	movq	_USB_CHG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.5:
	movq	8(%rdi), %rax
	movq	32(%rdi), %rdi
	movq	(%rdi), %rcx
	movq	(%rax), %rsi
	movq	8(%rax), %rax
	movl	(%rax,%rsi,8), %edx
	movl	4(%rax,%rsi,8), %esi
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_2:
	movq	_AC_CHG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	16(%rdi), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	(%rax), %rcx
	movq	8(%rdi), %rdx
	movq	(%rdx), %rsi
	movq	8(%rdx), %rdi
	movl	(%rdi,%rsi,8), %edx
	movl	4(%rdi,%rsi,8), %esi
	movq	%rax, %rdi
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_CHG,4,2                    ## @USB_CHG
	.comm	_AC_CHG,4,2                     ## @AC_CHG
	.no_dead_strip	_abx500_chargalg_check_charger_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abx500_chargalg_check_charger_enable
_abx500_chargalg_check_charger_enable:  ; @abx500_chargalg_check_charger_enable
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_6
; %bb.1:
	ldr	w8, [x0, #24]
Lloh0:
	adrp	x9, _USB_CHG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB_CHG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x0, #32]
LBB0_3:
	ldr	x3, [x8]
	ldr	x9, [x0, #8]
	ldp	x9, x10, [x9]
	add	x9, x10, x9, lsl #3
	ldp	w2, w1, [x9]
	mov	x0, x8
	br	x3
LBB0_4:
Lloh3:
	adrp	x9, _AC_CHG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_CHG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x0, #16]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_3
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_CHG,4,2                    ; @USB_CHG
	.comm	_AC_CHG,4,2                     ; @AC_CHG
	.no_dead_strip	_abx500_chargalg_check_charger_enable
.subsections_via_symbols
