	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivb_modeset_global_resources
_ivb_modeset_global_resources:          ## @ivb_modeset_global_resources
	.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
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_PIPE_B@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_to_intel_crtc
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_PIPE_C@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_to_intel_crtc
	cmpl	$0, (%r12)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r15), %rdi
	callq	_FDI_RX_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_FDI_RX_ENABLE@GOTPCREL(%rip), %rbx
	andl	(%rbx), %eax
	movl	%eax, %edi
	callq	_WARN_ON
	movq	(%r14), %rdi
	callq	_FDI_RX_CTL
	movl	%eax, %edi
	callq	_I915_READ
	andl	(%rbx), %eax
	movl	%eax, %edi
	callq	_WARN_ON
	movq	_SOUTH_CHICKEN1@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ
	movq	_FDI_BC_BIFURCATION_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	(%r14), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPE_B,8,3                     ## @PIPE_B
	.comm	_PIPE_C,8,3                     ## @PIPE_C
	.comm	_FDI_RX_ENABLE,4,2              ## @FDI_RX_ENABLE
	.comm	_SOUTH_CHICKEN1,4,2             ## @SOUTH_CHICKEN1
	.comm	_FDI_BC_BIFURCATION_SELECT,4,2  ## @FDI_BC_BIFURCATION_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabling fdi C rx\n"

	.no_dead_strip	_ivb_modeset_global_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivb_modeset_global_resources
_ivb_modeset_global_resources:          ; @ivb_modeset_global_resources
	.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
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _PIPE_B@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PIPE_B@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	x8, [x20]
Lloh2:
	adrp	x20, _PIPE_C@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PIPE_C@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_to_intel_crtc
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	x0, [x21]
	bl	_FDI_RX_CTL
	bl	_I915_READ
Lloh4:
	adrp	x19, _FDI_RX_ENABLE@GOTPAGE
Lloh5:
	ldr	x19, [x19, _FDI_RX_ENABLE@GOTPAGEOFF]
	ldr	w8, [x19]
	and	w0, w8, w0
	bl	_WARN_ON
	ldr	x0, [x20]
	bl	_FDI_RX_CTL
	bl	_I915_READ
	ldr	w8, [x19]
	and	w0, w8, w0
	bl	_WARN_ON
Lloh6:
	adrp	x20, _SOUTH_CHICKEN1@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SOUTH_CHICKEN1@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
Lloh8:
	adrp	x8, _FDI_BC_BIFURCATION_SELECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FDI_BC_BIFURCATION_SELECT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w19, w0, w8
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w0, [x20]
	mov	x1, x19
	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	_I915_WRITE
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPE_B,8,3                     ; @PIPE_B
	.comm	_PIPE_C,8,3                     ; @PIPE_C
	.comm	_FDI_RX_ENABLE,4,2              ; @FDI_RX_ENABLE
	.comm	_SOUTH_CHICKEN1,4,2             ; @SOUTH_CHICKEN1
	.comm	_FDI_BC_BIFURCATION_SELECT,4,2  ; @FDI_BC_BIFURCATION_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabling fdi C rx\n"

	.no_dead_strip	_ivb_modeset_global_resources
.subsections_via_symbols
