	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq2415x_sysfs_set_enable
_bq2415x_sysfs_set_enable:              ## @bq2415x_sysfs_set_enable
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_power_supply_get_drvdata
	movq	%rax, %r14
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_3:
	movq	_BQ2415X_CHARGE_TERMINATION_DISABLE@GOTPCREL(%rip), %rax
	movq	_BQ2415X_CHARGE_TERMINATION_ENABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_5:
	movq	_BQ2415X_HIGH_IMPEDANCE_DISABLE@GOTPCREL(%rip), %rax
	movq	_BQ2415X_HIGH_IMPEDANCE_ENABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_7:
	movq	_BQ2415X_OTG_PIN_DISABLE@GOTPCREL(%rip), %rax
	movq	_BQ2415X_OTG_PIN_ENABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_BQ2415X_STAT_PIN_DISABLE@GOTPCREL(%rip), %rax
	movq	_BQ2415X_STAT_PIN_ENABLE@GOTPCREL(%rip), %rcx
LBB0_10:
	cmpq	$0, -40(%rbp)
	cmoveq	%rax, %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	_bq2415x_exec_command
	testl	%eax, %eax
	cmovsl	%eax, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"charge_termination_enable"

	.comm	_BQ2415X_CHARGE_TERMINATION_ENABLE,4,2 ## @BQ2415X_CHARGE_TERMINATION_ENABLE
	.comm	_BQ2415X_CHARGE_TERMINATION_DISABLE,4,2 ## @BQ2415X_CHARGE_TERMINATION_DISABLE
L_.str.1:                               ## @.str.1
	.asciz	"high_impedance_enable"

	.comm	_BQ2415X_HIGH_IMPEDANCE_ENABLE,4,2 ## @BQ2415X_HIGH_IMPEDANCE_ENABLE
	.comm	_BQ2415X_HIGH_IMPEDANCE_DISABLE,4,2 ## @BQ2415X_HIGH_IMPEDANCE_DISABLE
L_.str.2:                               ## @.str.2
	.asciz	"otg_pin_enable"

	.comm	_BQ2415X_OTG_PIN_ENABLE,4,2     ## @BQ2415X_OTG_PIN_ENABLE
	.comm	_BQ2415X_OTG_PIN_DISABLE,4,2    ## @BQ2415X_OTG_PIN_DISABLE
L_.str.3:                               ## @.str.3
	.asciz	"stat_pin_enable"

	.comm	_BQ2415X_STAT_PIN_ENABLE,4,2    ## @BQ2415X_STAT_PIN_ENABLE
	.comm	_BQ2415X_STAT_PIN_DISABLE,4,2   ## @BQ2415X_STAT_PIN_DISABLE
	.no_dead_strip	_bq2415x_sysfs_set_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq2415x_sysfs_set_enable
_bq2415x_sysfs_set_enable:              ; @bq2415x_sysfs_set_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x22, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	bl	_power_supply_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtol
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_6:
Lloh11:
	adrp	x8, _BQ2415X_CHARGE_TERMINATION_DISABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BQ2415X_CHARGE_TERMINATION_DISABLE@GOTPAGEOFF]
Lloh13:
	adrp	x9, _BQ2415X_CHARGE_TERMINATION_ENABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BQ2415X_CHARGE_TERMINATION_ENABLE@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh15:
	adrp	x8, _BQ2415X_HIGH_IMPEDANCE_DISABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BQ2415X_HIGH_IMPEDANCE_DISABLE@GOTPAGEOFF]
Lloh17:
	adrp	x9, _BQ2415X_HIGH_IMPEDANCE_ENABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BQ2415X_HIGH_IMPEDANCE_ENABLE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh19:
	adrp	x8, _BQ2415X_OTG_PIN_DISABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BQ2415X_OTG_PIN_DISABLE@GOTPAGEOFF]
Lloh21:
	adrp	x9, _BQ2415X_OTG_PIN_ENABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BQ2415X_OTG_PIN_ENABLE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh23:
	adrp	x8, _BQ2415X_STAT_PIN_DISABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BQ2415X_STAT_PIN_DISABLE@GOTPAGEOFF]
Lloh25:
	adrp	x9, _BQ2415X_STAT_PIN_ENABLE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BQ2415X_STAT_PIN_ENABLE@GOTPAGEOFF]
LBB0_10:
	ldr	x10, [sp, #8]
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bq2415x_exec_command
	cmp	w0, #0
	csel	w0, w0, w19, lt
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"charge_termination_enable"

	.comm	_BQ2415X_CHARGE_TERMINATION_ENABLE,4,2 ; @BQ2415X_CHARGE_TERMINATION_ENABLE
	.comm	_BQ2415X_CHARGE_TERMINATION_DISABLE,4,2 ; @BQ2415X_CHARGE_TERMINATION_DISABLE
l_.str.1:                               ; @.str.1
	.asciz	"high_impedance_enable"

	.comm	_BQ2415X_HIGH_IMPEDANCE_ENABLE,4,2 ; @BQ2415X_HIGH_IMPEDANCE_ENABLE
	.comm	_BQ2415X_HIGH_IMPEDANCE_DISABLE,4,2 ; @BQ2415X_HIGH_IMPEDANCE_DISABLE
l_.str.2:                               ; @.str.2
	.asciz	"otg_pin_enable"

	.comm	_BQ2415X_OTG_PIN_ENABLE,4,2     ; @BQ2415X_OTG_PIN_ENABLE
	.comm	_BQ2415X_OTG_PIN_DISABLE,4,2    ; @BQ2415X_OTG_PIN_DISABLE
l_.str.3:                               ; @.str.3
	.asciz	"stat_pin_enable"

	.comm	_BQ2415X_STAT_PIN_ENABLE,4,2    ; @BQ2415X_STAT_PIN_ENABLE
	.comm	_BQ2415X_STAT_PIN_DISABLE,4,2   ; @BQ2415X_STAT_PIN_DISABLE
	.no_dead_strip	_bq2415x_sysfs_set_enable
.subsections_via_symbols
