	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_opregion_notify_encoder  ## -- Begin function intel_opregion_notify_encoder
	.p2align	4, 0x90
_intel_opregion_notify_encoder:         ## @intel_opregion_notify_encoder
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_HAS_DDI
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	cmpl	$130, %edx
	jne	LBB0_5
## %bb.3:
	movq	_PORT_E@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	$0, (%rax)
	setne	%dl
	leal	(%rdx,%rdx,2), %ecx
	orl	$16, %ecx
	leal	1024(%rdx), %eax
	testl	%r12d, %r12d
	cmovnel	%edx, %eax
LBB0_4:
	movq	_DISPLAY_TYPE_INTERNAL_FLAT_PANEL@GOTPCREL(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	4(%rbx), %ecx
	movl	$1, %esi
	shll	%cl, %esi
	movq	_PORT_E@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	(%rax), %ecx
	leal	19(%rcx,%rcx,2), %eax
	cmovel	%r15d, %esi
	movl	$16, %ecx
	cmovnel	%eax, %ecx
	movl	%esi, %eax
	orl	$1024, %eax                     ## imm = 0x400
	testl	%r12d, %r12d
	cmovnel	%esi, %eax
	leal	-128(%rdx), %edi
	cmpl	$6, %edi
	ja	LBB0_9
## %bb.6:
	movq	_DISPLAY_TYPE_CRT@GOTPCREL(%rip), %rsi
	leaq	LJTI0_0(%rip), %rbx
	movslq	(%rbx,%rdi,4), %rdi
	addq	%rbx, %rdi
	jmpq	*%rdi
LBB0_7:
	movq	_DISPLAY_TYPE_EXTERNAL_FLAT_PANEL@GOTPCREL(%rip), %rsi
LBB0_8:
	movl	(%rsi), %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	_SWSCI_SBCB_DISPLAY_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_swsci                          ## TAILCALL
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_WARN_ONCE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_PORT_E,4,2                     ## @PORT_E
	.comm	_DISPLAY_TYPE_CRT,4,2           ## @DISPLAY_TYPE_CRT
	.comm	_DISPLAY_TYPE_EXTERNAL_FLAT_PANEL,4,2 ## @DISPLAY_TYPE_EXTERNAL_FLAT_PANEL
	.comm	_DISPLAY_TYPE_INTERNAL_FLAT_PANEL,4,2 ## @DISPLAY_TYPE_INTERNAL_FLAT_PANEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported intel_encoder type %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SWSCI_SBCB_DISPLAY_POWER_STATE,4,2 ## @SWSCI_SBCB_DISPLAY_POWER_STATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_opregion_notify_encoder  ; -- Begin function intel_opregion_notify_encoder
	.p2align	2
_intel_opregion_notify_encoder:         ; @intel_opregion_notify_encoder
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	mov	x19, x0
	bl	_HAS_DDI
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w2, [x21]
	cmp	w2, #130
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _PORT_E@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_E@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #19
	mov	w10, #16
	cmp	w8, #0
	csel	w8, w10, w9, eq
	cset	w9, ne
	orr	w10, w9, #0x400
	cmp	w20, #0
	csel	w9, w10, w9, eq
LBB0_3:
Lloh3:
	adrp	x10, _DISPLAY_TYPE_INTERNAL_FLAT_PANEL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DISPLAY_TYPE_INTERNAL_FLAT_PANEL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w8, [x21, #4]
Lloh5:
	adrp	x9, _PORT_E@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PORT_E@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w10, w10, w8
	add	w11, w8, w8, lsl #1
	add	w11, w11, #19
	cmp	w8, w9
	csel	w9, wzr, w10, eq
	mov	w8, #16
	csel	w8, w8, w11, eq
	orr	w10, w9, #0x400
	cmp	w20, #0
	csel	w9, w10, w9, eq
	sub	w11, w2, #128
	cmp	w11, #6
	b.hi	LBB0_8
; %bb.5:
Lloh8:
	adrp	x10, _DISPLAY_TYPE_CRT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DISPLAY_TYPE_CRT@GOTPAGEOFF]
Lloh10:
	adrp	x12, lJTI0_0@PAGE
Lloh11:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_3
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_6:
Lloh12:
	adrp	x10, _DISPLAY_TYPE_EXTERNAL_FLAT_PANEL@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DISPLAY_TYPE_EXTERNAL_FLAT_PANEL@GOTPAGEOFF]
LBB0_7:
	ldr	w10, [x10]
	lsl	w8, w10, w8
Lloh14:
	adrp	x10, _SWSCI_SBCB_DISPLAY_POWER_STATE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SWSCI_SBCB_DISPLAY_POWER_STATE@GOTPAGEOFF]
	orr	w2, w8, w9
Lloh16:
	ldr	w1, [x10]
	mov	x0, x19
	mov	x3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_swsci
LBB0_8:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_PORT_E,4,2                     ; @PORT_E
	.comm	_DISPLAY_TYPE_CRT,4,2           ; @DISPLAY_TYPE_CRT
	.comm	_DISPLAY_TYPE_EXTERNAL_FLAT_PANEL,4,2 ; @DISPLAY_TYPE_EXTERNAL_FLAT_PANEL
	.comm	_DISPLAY_TYPE_INTERNAL_FLAT_PANEL,4,2 ; @DISPLAY_TYPE_INTERNAL_FLAT_PANEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported intel_encoder type %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SWSCI_SBCB_DISPLAY_POWER_STATE,4,2 ; @SWSCI_SBCB_DISPLAY_POWER_STATE
.subsections_via_symbols
