	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshiba_acpi_add
_toshiba_acpi_add:                      ## @toshiba_acpi_add
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_toshiba_acpi@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, %r14
	movq	_TOSHIBA_ACPI_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_info
	movl	16(%r14), %edi
	callq	_find_hci_method
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$240, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r15
	movq	%r14, 72(%rax)
	movq	%r12, (%rax)
	movq	_MISC_DYNAMIC_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	216(%r15), %rdi
	movl	%eax, 232(%r15)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 216(%r15)
	movq	_toshiba_acpi_fops@GOTPCREL(%rip), %rax
	movq	%rax, 224(%r15)
	callq	_misc_register
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_4
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movq	%r15, 8(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	leaq	208(%r15), %rsi
	movq	%r15, %rdi
	callq	_toshiba_function_keys_get
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 8(%r15)
	movq	$0, 200(%r15)
	movq	%r15, %rdi
	callq	_toshiba_acpi_setup_keyboard
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_13:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_get_tr_backlight_status
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 12(%r15)
	movq	%r15, %rdi
	callq	_toshiba_acpi_setup_backlight
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_34
## %bb.14:
	movq	%r15, %rdi
	callq	_toshiba_illumination_available
	cmpq	$0, 192(%r15)
	je	LBB0_17
## %bb.15:
	leaq	168(%r15), %rsi
	leaq	L_.str.5(%rip), %rax
	movq	%rax, 168(%r15)
	movl	$1, 176(%r15)
	movq	_toshiba_illumination_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 184(%r15)
	movq	_toshiba_illumination_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 180(%r15)
	movq	%r14, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movl	$1, 16(%r15)
LBB0_17:
	movq	%r15, %rdi
	callq	_toshiba_eco_mode_available
	cmpq	$0, 160(%r15)
	je	LBB0_20
## %bb.18:
	leaq	136(%r15), %rsi
	leaq	L_.str.6(%rip), %rax
	movq	%rax, 136(%r15)
	movl	$1, 144(%r15)
	movq	_toshiba_eco_mode_set_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 152(%r15)
	movq	_toshiba_eco_mode_get_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 148(%r15)
	movq	72(%r15), %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movl	$1, 20(%r15)
LBB0_20:
	movq	%r15, %rdi
	callq	_toshiba_kbd_illum_available
	cmpq	$0, 128(%r15)
	je	LBB0_25
## %bb.21:
	movq	24(%r15), %rax
	movq	_SCI_KBD_MODE_FNZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:
	cmpl	$2, 32(%r15)
	jne	LBB0_25
LBB0_23:
	movq	%r15, %rsi
	addq	$104, %rsi
	leaq	L_.str.7(%rip), %rax
	movq	%rax, 104(%r15)
	movq	_LED_BRIGHT_HW_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%r15)
	movl	$1, 112(%r15)
	movq	_toshiba_kbd_backlight_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%r15)
	movq	_toshiba_kbd_backlight_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%r15)
	movq	72(%r15), %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_25
## %bb.24:
	movl	$1, 36(%r15)
LBB0_25:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_toshiba_touchpad_get
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 40(%r15)
	movq	%r15, %rdi
	callq	_toshiba_accelerometer_available
	cmpq	$0, 96(%r15)
	je	LBB0_30
## %bb.26:
	movl	$240, %edi
	callq	_iio_device_alloc
	movq	%rax, 88(%r15)
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	88(%r15), %rax
	movq	_toshiba_iio_accel_info@GOTPCREL(%rip), %rcx
	movq	%rcx, 32(%rax)
	leaq	L_.str.10(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%r14, 24(%rax)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_toshiba_iio_accel_channels@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, 12(%rax)
	callq	_ARRAY_SIZE
	movq	88(%r15), %rdi
	movl	%eax, 8(%rdi)
	callq	_iio_device_register
	testl	%eax, %eax
	jns	LBB0_30
## %bb.28:
	leaq	L_.str.11(%rip), %rdi
	callq	_pr_err
	movq	88(%r15), %rdi
	callq	_iio_device_free
	jmp	LBB0_30
LBB0_29:
	leaq	L_.str.8(%rip), %rdi
	callq	_pr_err
LBB0_30:
	movq	%r15, %rdi
	callq	_toshiba_usb_sleep_charge_available
	leaq	-44(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_toshiba_usb_rapid_charge_get
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 44(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_toshiba_usb_sleep_music_get
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 48(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_toshiba_panel_power_on_get
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 52(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_toshiba_usb_three_get
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 56(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_get_video_status
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 60(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_get_fan_status
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 64(%r15)
	movq	%r15, %rdi
	callq	_toshiba_wwan_available
	cmpq	$0, 80(%r15)
	je	LBB0_32
## %bb.31:
	movq	%r15, %rdi
	callq	_toshiba_acpi_setup_wwan_rfkill
LBB0_32:
	movq	%r15, %rdi
	callq	_toshiba_cooling_method_available
	movq	%r15, %rdi
	callq	_print_supported_features
	movq	72(%r15), %rdi
	movq	_toshiba_attr_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_35
## %bb.33:
	movl	%eax, %ebx
	movl	$0, 68(%r15)
LBB0_34:
	movq	%r14, %rdi
	callq	_toshiba_acpi_remove
	jmp	LBB0_4
LBB0_35:
	movl	$1, 68(%r15)
	movq	%r15, %rdi
	callq	_create_toshiba_proc_entries
	movq	%r15, (%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_toshiba_acpi,8,3               ## @toshiba_acpi
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Toshiba Laptop ACPI Extras version %s\n"

	.comm	_TOSHIBA_ACPI_VERSION,4,2       ## @TOSHIBA_ACPI_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"HCI interface not found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MISC_DYNAMIC_MINOR,4,2         ## @MISC_DYNAMIC_MINOR
L_.str.2:                               ## @.str.2
	.asciz	"toshiba_acpi"

	.comm	_toshiba_acpi_fops,4,2          ## @toshiba_acpi_fops
L_.str.3:                               ## @.str.3
	.asciz	"Failed to register miscdevice\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to activate hotkeys\n"

L_.str.5:                               ## @.str.5
	.asciz	"toshiba::illumination"

	.comm	_toshiba_illumination_set,4,2   ## @toshiba_illumination_set
	.comm	_toshiba_illumination_get,4,2   ## @toshiba_illumination_get
L_.str.6:                               ## @.str.6
	.asciz	"toshiba::eco_mode"

	.comm	_toshiba_eco_mode_set_status,4,2 ## @toshiba_eco_mode_set_status
	.comm	_toshiba_eco_mode_get_status,4,2 ## @toshiba_eco_mode_get_status
	.comm	_SCI_KBD_MODE_FNZ,8,3           ## @SCI_KBD_MODE_FNZ
L_.str.7:                               ## @.str.7
	.asciz	"toshiba::kbd_backlight"

	.comm	_LED_BRIGHT_HW_CHANGED,4,2      ## @LED_BRIGHT_HW_CHANGED
	.comm	_toshiba_kbd_backlight_set,4,2  ## @toshiba_kbd_backlight_set
	.comm	_toshiba_kbd_backlight_get,4,2  ## @toshiba_kbd_backlight_get
L_.str.8:                               ## @.str.8
	.asciz	"Unable to allocate iio device\n"

L_.str.9:                               ## @.str.9
	.asciz	"Registering Toshiba accelerometer iio device\n"

	.comm	_toshiba_iio_accel_info,4,2     ## @toshiba_iio_accel_info
L_.str.10:                              ## @.str.10
	.asciz	"Toshiba accelerometer"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_toshiba_iio_accel_channels,4,2 ## @toshiba_iio_accel_channels
L_.str.11:                              ## @.str.11
	.asciz	"Unable to register iio device\n"

	.comm	_toshiba_attr_group,4,2         ## @toshiba_attr_group
	.no_dead_strip	_toshiba_acpi_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshiba_acpi_add
_toshiba_acpi_add:                      ; @toshiba_acpi_add
	.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
Lloh0:
	adrp	x22, _toshiba_acpi@GOTPAGE
Lloh1:
	ldr	x22, [x22, _toshiba_acpi@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	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
LBB0_4:
	mov	x19, x0
Lloh4:
	adrp	x8, _TOSHIBA_ACPI_VERSION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TOSHIBA_ACPI_VERSION@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	w0, [x19, #16]
	bl	_find_hci_method
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #240
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x20, x0
	str	x19, [x0, #72]
	str	x21, [x0]
Lloh12:
	adrp	x8, _MISC_DYNAMIC_MINOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MISC_DYNAMIC_MINOR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x0, #232]
Lloh15:
	adrp	x8, l_.str.2@PAGE
Lloh16:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x0, #216]!
Lloh17:
	adrp	x8, _toshiba_acpi_fops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _toshiba_acpi_fops@GOTPAGEOFF]
	str	x8, [x20, #224]
	bl	_misc_register
	cbz	w0, LBB0_10
; %bb.7:
	mov	x21, x0
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	mov	x0, x20
	bl	_kfree
	b	LBB0_3
LBB0_8:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	str	x20, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	add	x1, x20, #208
	mov	x0, x20
	bl	_toshiba_function_keys_get
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #8]
	str	xzr, [x20, #200]
	mov	x0, x20
	bl	_toshiba_acpi_setup_keyboard
	cbz	x0, LBB0_12
; %bb.11:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
LBB0_12:
	add	x1, sp, #12
	mov	x0, x20
	bl	_get_tr_backlight_status
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #12]
	mov	x0, x20
	bl	_toshiba_acpi_setup_backlight
	mov	x21, x0
	cbnz	w0, LBB0_33
; %bb.13:
	mov	x0, x20
	bl	_toshiba_illumination_available
	ldr	x8, [x20, #192]
	cbz	x8, LBB0_16
; %bb.14:
Lloh29:
	adrp	x8, l_.str.5@PAGE
Lloh30:
	add	x8, x8, l_.str.5@PAGEOFF
	mov	x1, x20
	str	x8, [x1, #168]!
	mov	w21, #1
Lloh31:
	adrp	x8, _toshiba_illumination_set@GOTPAGE
Lloh32:
	ldr	x8, [x8, _toshiba_illumination_set@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x1, #16]
Lloh34:
	adrp	x8, _toshiba_illumination_get@GOTPAGE
Lloh35:
	ldr	x8, [x8, _toshiba_illumination_get@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	stp	w21, w8, [x1, #8]
	mov	x0, x19
	bl	_led_classdev_register
	cbnz	w0, LBB0_16
; %bb.15:
	str	w21, [x20, #16]
LBB0_16:
	mov	x0, x20
	bl	_toshiba_eco_mode_available
	ldr	x8, [x20, #160]
	cbz	x8, LBB0_19
; %bb.17:
Lloh37:
	adrp	x8, l_.str.6@PAGE
Lloh38:
	add	x8, x8, l_.str.6@PAGEOFF
	mov	x1, x20
	str	x8, [x1, #136]!
	mov	w21, #1
Lloh39:
	adrp	x8, _toshiba_eco_mode_set_status@GOTPAGE
Lloh40:
	ldr	x8, [x8, _toshiba_eco_mode_set_status@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x1, #16]
Lloh42:
	adrp	x8, _toshiba_eco_mode_get_status@GOTPAGE
Lloh43:
	ldr	x8, [x8, _toshiba_eco_mode_get_status@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	stp	w21, w8, [x1, #8]
	ldur	x0, [x1, #-64]
	bl	_led_classdev_register
	cbnz	w0, LBB0_19
; %bb.18:
	str	w21, [x20, #20]
LBB0_19:
	mov	x0, x20
	bl	_toshiba_kbd_illum_available
	ldr	x8, [x20, #128]
	cbz	x8, LBB0_24
; %bb.20:
	ldr	x8, [x20, #24]
Lloh45:
	adrp	x9, _SCI_KBD_MODE_FNZ@GOTPAGE
Lloh46:
	ldr	x9, [x9, _SCI_KBD_MODE_FNZ@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.21:
	ldr	w8, [x20, #32]
	cmp	w8, #2
	b.ne	LBB0_24
LBB0_22:
Lloh48:
	adrp	x8, l_.str.7@PAGE
Lloh49:
	add	x8, x8, l_.str.7@PAGEOFF
	mov	x1, x20
	str	x8, [x1, #104]!
Lloh50:
	adrp	x8, _LED_BRIGHT_HW_CHANGED@GOTPAGE
Lloh51:
	ldr	x8, [x8, _LED_BRIGHT_HW_CHANGED@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	mov	w21, #1
Lloh53:
	adrp	x9, _toshiba_kbd_backlight_set@GOTPAGE
Lloh54:
	ldr	x9, [x9, _toshiba_kbd_backlight_set@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #16]
Lloh56:
	adrp	x8, _toshiba_kbd_backlight_get@GOTPAGE
Lloh57:
	ldr	x8, [x8, _toshiba_kbd_backlight_get@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	stp	w21, w8, [x1, #8]
	ldur	x0, [x1, #-32]
	bl	_led_classdev_register
	cbnz	w0, LBB0_24
; %bb.23:
	str	w21, [x20, #36]
LBB0_24:
	add	x1, sp, #12
	mov	x0, x20
	bl	_toshiba_touchpad_get
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #40]
	mov	x0, x20
	bl	_toshiba_accelerometer_available
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_29
; %bb.25:
	mov	w0, #240
	bl	_iio_device_alloc
	str	x0, [x20, #88]
	cbz	x0, LBB0_28
; %bb.26:
Lloh59:
	adrp	x0, l_.str.9@PAGE
Lloh60:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_info
Lloh61:
	adrp	x8, _toshiba_iio_accel_info@GOTPAGE
Lloh62:
	ldr	x8, [x8, _toshiba_iio_accel_info@GOTPAGEOFF]
Lloh63:
	adrp	x9, l_.str.10@PAGE
Lloh64:
	add	x9, x9, l_.str.10@PAGEOFF
	ldr	x10, [x20, #88]
	str	x9, [x10]
	stp	x19, x8, [x10, #24]
Lloh65:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
Lloh68:
	adrp	x9, _toshiba_iio_accel_channels@GOTPAGE
Lloh69:
	ldr	x9, [x9, _toshiba_iio_accel_channels@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x9]
	stp	w0, w8, [x10, #12]
	bl	_ARRAY_SIZE
	ldr	x8, [x20, #88]
	str	w0, [x8, #8]
	mov	x0, x8
	bl	_iio_device_register
	tbz	w0, #31, LBB0_29
; %bb.27:
Lloh71:
	adrp	x0, l_.str.11@PAGE
Lloh72:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_pr_err
	ldr	x0, [x20, #88]
	bl	_iio_device_free
	b	LBB0_29
LBB0_28:
Lloh73:
	adrp	x0, l_.str.8@PAGE
Lloh74:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_err
LBB0_29:
	mov	x0, x20
	bl	_toshiba_usb_sleep_charge_available
	add	x1, sp, #12
	mov	x0, x20
	bl	_toshiba_usb_rapid_charge_get
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #44]
	add	x1, sp, #12
	mov	x0, x20
	bl	_toshiba_usb_sleep_music_get
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #48]
	add	x1, sp, #12
	mov	x0, x20
	bl	_toshiba_panel_power_on_get
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #52]
	add	x1, sp, #12
	mov	x0, x20
	bl	_toshiba_usb_three_get
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #56]
	add	x1, sp, #12
	mov	x0, x20
	bl	_get_video_status
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #60]
	add	x1, sp, #12
	mov	x0, x20
	bl	_get_fan_status
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #64]
	mov	x0, x20
	bl	_toshiba_wwan_available
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_31
; %bb.30:
	mov	x0, x20
	bl	_toshiba_acpi_setup_wwan_rfkill
LBB0_31:
	mov	x0, x20
	bl	_toshiba_cooling_method_available
	mov	x0, x20
	bl	_print_supported_features
	ldr	x0, [x20, #72]
Lloh75:
	adrp	x1, _toshiba_attr_group@GOTPAGE
Lloh76:
	ldr	x1, [x1, _toshiba_attr_group@GOTPAGEOFF]
	bl	_sysfs_create_group
	mov	x21, x0
	cbz	w0, LBB0_34
; %bb.32:
	str	wzr, [x20, #68]
LBB0_33:
	mov	x0, x19
	bl	_toshiba_acpi_remove
	b	LBB0_3
LBB0_34:
	mov	w8, #1
	str	w8, [x20, #68]
	mov	x0, x20
	bl	_create_toshiba_proc_entries
	str	x20, [x22]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_toshiba_acpi,8,3               ; @toshiba_acpi
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Toshiba Laptop ACPI Extras version %s\n"

	.comm	_TOSHIBA_ACPI_VERSION,4,2       ; @TOSHIBA_ACPI_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"HCI interface not found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MISC_DYNAMIC_MINOR,4,2         ; @MISC_DYNAMIC_MINOR
l_.str.2:                               ; @.str.2
	.asciz	"toshiba_acpi"

	.comm	_toshiba_acpi_fops,4,2          ; @toshiba_acpi_fops
l_.str.3:                               ; @.str.3
	.asciz	"Failed to register miscdevice\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to activate hotkeys\n"

l_.str.5:                               ; @.str.5
	.asciz	"toshiba::illumination"

	.comm	_toshiba_illumination_set,4,2   ; @toshiba_illumination_set
	.comm	_toshiba_illumination_get,4,2   ; @toshiba_illumination_get
l_.str.6:                               ; @.str.6
	.asciz	"toshiba::eco_mode"

	.comm	_toshiba_eco_mode_set_status,4,2 ; @toshiba_eco_mode_set_status
	.comm	_toshiba_eco_mode_get_status,4,2 ; @toshiba_eco_mode_get_status
	.comm	_SCI_KBD_MODE_FNZ,8,3           ; @SCI_KBD_MODE_FNZ
l_.str.7:                               ; @.str.7
	.asciz	"toshiba::kbd_backlight"

	.comm	_LED_BRIGHT_HW_CHANGED,4,2      ; @LED_BRIGHT_HW_CHANGED
	.comm	_toshiba_kbd_backlight_set,4,2  ; @toshiba_kbd_backlight_set
	.comm	_toshiba_kbd_backlight_get,4,2  ; @toshiba_kbd_backlight_get
l_.str.8:                               ; @.str.8
	.asciz	"Unable to allocate iio device\n"

l_.str.9:                               ; @.str.9
	.asciz	"Registering Toshiba accelerometer iio device\n"

	.comm	_toshiba_iio_accel_info,4,2     ; @toshiba_iio_accel_info
l_.str.10:                              ; @.str.10
	.asciz	"Toshiba accelerometer"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_toshiba_iio_accel_channels,4,2 ; @toshiba_iio_accel_channels
l_.str.11:                              ; @.str.11
	.asciz	"Unable to register iio device\n"

	.comm	_toshiba_attr_group,4,2         ; @toshiba_attr_group
	.no_dead_strip	_toshiba_acpi_add
.subsections_via_symbols
