	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_sleep_charge_store
_usb_sleep_charge_store:                ## @usb_sleep_charge_store
	.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	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtoint
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	-28(%rbp), %eax
	cmpl	$4, %eax
	jb	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_3:
	movl	(%r15), %esi
	jae	LBB0_10
## %bb.4:
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_SCI_USB_CHARGE_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_SCI_USB_CHARGE_ALTERNATE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_SCI_USB_CHARGE_AUTO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_SCI_USB_CHARGE_TYPICAL@GOTPCREL(%rip), %rax
LBB0_9:
	orl	(%rax), %esi
LBB0_10:
	movq	%r15, %rdi
	callq	_toshiba_usb_sleep_charge_set
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	%r14d, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCI_USB_CHARGE_DISABLED,4,2    ## @SCI_USB_CHARGE_DISABLED
	.comm	_SCI_USB_CHARGE_ALTERNATE,4,2   ## @SCI_USB_CHARGE_ALTERNATE
	.comm	_SCI_USB_CHARGE_AUTO,4,2        ## @SCI_USB_CHARGE_AUTO
	.comm	_SCI_USB_CHARGE_TYPICAL,4,2     ## @SCI_USB_CHARGE_TYPICAL
	.no_dead_strip	_usb_sleep_charge_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_sleep_charge_store
_usb_sleep_charge_store:                ; @usb_sleep_charge_store
	.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	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtoint
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.lo	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_3:
	ldr	w1, [x20]
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.4:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh5:
	adrp	x8, _SCI_USB_CHARGE_DISABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCI_USB_CHARGE_DISABLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _SCI_USB_CHARGE_ALTERNATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCI_USB_CHARGE_ALTERNATE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _SCI_USB_CHARGE_AUTO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCI_USB_CHARGE_AUTO@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _SCI_USB_CHARGE_TYPICAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCI_USB_CHARGE_TYPICAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	orr	w1, w8, w1
LBB0_10:
	mov	x0, x20
	bl	_toshiba_usb_sleep_charge_set
	cmp	w0, #0
	csel	w0, w19, w0, eq
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCI_USB_CHARGE_DISABLED,4,2    ; @SCI_USB_CHARGE_DISABLED
	.comm	_SCI_USB_CHARGE_ALTERNATE,4,2   ; @SCI_USB_CHARGE_ALTERNATE
	.comm	_SCI_USB_CHARGE_AUTO,4,2        ; @SCI_USB_CHARGE_AUTO
	.comm	_SCI_USB_CHARGE_TYPICAL,4,2     ; @SCI_USB_CHARGE_TYPICAL
	.no_dead_strip	_usb_sleep_charge_store
.subsections_via_symbols
