	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibx_sanitize_pch_hdmi_port
_ibx_sanitize_pch_hdmi_port:            ## @ibx_sanitize_pch_hdmi_port
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edx, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_SDVO_PIPE_SEL_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	andl	%ebx, %r12d
	movq	_PIPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDVO_PIPE_SEL
	cmpl	%eax, %r12d
	jne	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r15d, %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_PIPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDVO_PIPE_SEL
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVO_ENABLE,4,2                ## @SDVO_ENABLE
	.comm	_SDVO_PIPE_SEL_MASK,4,2         ## @SDVO_PIPE_SEL_MASK
	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sanitizing transcoder select for HDMI %c\n"

	.no_dead_strip	_ibx_sanitize_pch_hdmi_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibx_sanitize_pch_hdmi_port
_ibx_sanitize_pch_hdmi_port:            ; @ibx_sanitize_pch_hdmi_port
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x0, x2
	bl	_I915_READ
Lloh0:
	adrp	x8, _SDVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDVO_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x22, _SDVO_PIPE_SEL_MASK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SDVO_PIPE_SEL_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w24, w8, w0
Lloh5:
	adrp	x23, _PIPE_A@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PIPE_A@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_SDVO_PIPE_SEL
	cmp	w24, w0
	b.ne	LBB0_3
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x21
	bl	_port_name
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x22]
	bic	w20, w20, w8
	ldr	w0, [x23]
	bl	_SDVO_PIPE_SEL
	orr	w1, w0, w20
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
	.comm	_SDVO_PIPE_SEL_MASK,4,2         ; @SDVO_PIPE_SEL_MASK
	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sanitizing transcoder select for HDMI %c\n"

	.no_dead_strip	_ibx_sanitize_pch_hdmi_port
.subsections_via_symbols
