	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_opregion_get_panel_type  ## -- Begin function intel_opregion_get_panel_type
	.p2align	4, 0x90
_intel_opregion_get_panel_type:         ## @intel_opregion_get_panel_type
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SWSCI_GBDA_PANEL_DETAILS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rcx
	xorl	%edx, %edx
	callq	_swsci
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_9
LBB0_2:
	movzbl	-19(%rbp), %ebx
	cmpl	$17, %ebx
	jb	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.6:
	movq	_intel_use_opregion_panel_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	decl	%ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r14d
	movl	%r14d, %ebx
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWSCI_GBDA_PANEL_DETAILS,4,2   ## @SWSCI_GBDA_PANEL_DETAILS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get panel details from OpRegion (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid OpRegion panel type 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"No panel type in OpRegion\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_intel_use_opregion_panel_type,4,2 ## @intel_use_opregion_panel_type
L_.str.3:                               ## @.str.3
	.asciz	"Ignoring OpRegion panel type (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_opregion_get_panel_type  ; -- Begin function intel_opregion_get_panel_type
	.p2align	2
_intel_opregion_get_panel_type:         ; @intel_opregion_get_panel_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _SWSCI_GBDA_PANEL_DETAILS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWSCI_GBDA_PANEL_DETAILS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	w2, #0
	bl	_swsci
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
	str	x19, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_10
LBB0_2:
	ldrb	w19, [sp, #13]
	cmp	w19, #17
	b.lo	LBB0_4
; %bb.3:
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	cbz	w19, LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _intel_use_opregion_panel_type@GOTPAGE
Lloh10:
	ldr	x8, [x8, _intel_use_opregion_panel_type@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_dmi_check_system
	sub	w19, w19, #1
	cbnz	w0, LBB0_10
; %bb.6:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_DRM_DEBUG_KMS
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SWSCI_GBDA_PANEL_DETAILS,4,2   ; @SWSCI_GBDA_PANEL_DETAILS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get panel details from OpRegion (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid OpRegion panel type 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"No panel type in OpRegion\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_intel_use_opregion_panel_type,4,2 ; @intel_use_opregion_panel_type
l_.str.3:                               ; @.str.3
	.asciz	"Ignoring OpRegion panel type (%d)\n"

.subsections_via_symbols
