	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshiba_panel_power_on_set
_toshiba_panel_power_on_set:            ## @toshiba_panel_power_on_set
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sci_open
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_SCI_PANEL_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_sci_write
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_sci_close
	movq	_TOS_FAILURE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_7
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movq	_TOS_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_5
## %bb.8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_TOS_SUCCESS@GOTPCREL(%rip), %rcx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpq	(%rcx), %r14
	cmovel	%esi, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SCI_PANEL_POWER_ON,4,2         ## @SCI_PANEL_POWER_ON
	.comm	_TOS_FAILURE,8,3                ## @TOS_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACPI call to set Panel Power ON failed\n"

	.comm	_TOS_NOT_SUPPORTED,8,3          ## @TOS_NOT_SUPPORTED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TOS_SUCCESS,8,3                ## @TOS_SUCCESS
	.no_dead_strip	_toshiba_panel_power_on_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshiba_panel_power_on_set
_toshiba_panel_power_on_set:            ; @toshiba_panel_power_on_set
	.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, x1
	mov	x20, x0
	bl	_sci_open
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SCI_PANEL_POWER_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCI_PANEL_POWER_ON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_sci_write
	mov	x19, x0
	mov	x0, x20
	bl	_sci_close
Lloh3:
	adrp	x8, _TOS_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TOS_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _TOS_NOT_SUPPORTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TOS_NOT_SUPPORTED@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_7
; %bb.5:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _TOS_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TOS_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _EIO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	x19, x8
	csneg	w0, wzr, w9, eq
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SCI_PANEL_POWER_ON,4,2         ; @SCI_PANEL_POWER_ON
	.comm	_TOS_FAILURE,8,3                ; @TOS_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACPI call to set Panel Power ON failed\n"

	.comm	_TOS_NOT_SUPPORTED,8,3          ; @TOS_NOT_SUPPORTED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TOS_SUCCESS,8,3                ; @TOS_SUCCESS
	.no_dead_strip	_toshiba_panel_power_on_set
.subsections_via_symbols
