	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __set_charger
___set_charger:                         ## @__set_charger
	.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	%rdi, %rbx
	movq	16(%rdi), %r14
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, %edi
	callq	*%rax
LBB0_3:
	movl	8(%rbx), %edi
	movq	_MAX8925_CHG_CNTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_max8925_set_bits
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_6
LBB0_4:
	movl	8(%rbx), %edi
	movq	_MAX8925_CHG_CNTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edx
	movl	$128, %ecx
	callq	_max8925_set_bits
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rbx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	callq	*%rcx
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX8925_CHG_CNTL1,4,2          ## @MAX8925_CHG_CNTL1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enable charger"

L_.str.2:                               ## @.str.2
	.asciz	"Disable charger"

	.no_dead_strip	___set_charger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __set_charger
___set_charger:                         ; @__set_charger
	.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	x20, [x0, #16]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #1
	blr	x8
LBB0_3:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _MAX8925_CHG_CNTL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX8925_CHG_CNTL1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #128
	mov	w3, #0
	bl	_max8925_set_bits
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, _MAX8925_CHG_CNTL1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX8925_CHG_CNTL1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #128
	mov	w3, #128
	bl	_max8925_set_bits
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #0
	blr	x8
LBB0_6:
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_7:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX8925_CHG_CNTL1,4,2          ; @MAX8925_CHG_CNTL1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enable charger"

l_.str.2:                               ; @.str.2
	.asciz	"Disable charger"

	.no_dead_strip	___set_charger
.subsections_via_symbols
