	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_prepare_ddi_buffers
_intel_prepare_ddi_buffers:             ## @intel_prepare_ddi_buffers
	.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	%esi, %r14d
	testl	%edx, %edx
	setne	%r13b
	movq	_hsw_ddi_translations_fdi@GOTPCREL(%rip), %r15
	movq	_hsw_ddi_translations_dp@GOTPCREL(%rip), %rax
	cmovneq	%r15, %rax
	movq	(%rax), %r12
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rbx
	cmovneq	%rax, %rbx
	movl	%esi, %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_DRM_DEBUG_DRIVER
	movq	_PORT_E@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	setne	%al
	andb	%r13b, %al
	movzbl	%al, %ebx
	movl	%r14d, %edi
	callq	_port_name
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_WARN
	movl	%r14d, %edi
	callq	_DDI_BUF_TRANS
	movl	%eax, %r14d
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %esi
	movl	%r14d, %edi
	callq	_I915_WRITE
	addl	$4, %r14d
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hsw_ddi_translations_fdi,8,3   ## @hsw_ddi_translations_fdi
	.comm	_hsw_ddi_translations_dp,8,3    ## @hsw_ddi_translations_dp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing DDI buffers for port %c in %s mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"FDI"

L_.str.2:                               ## @.str.2
	.asciz	"DP"

	.comm	_PORT_E,4,2                     ## @PORT_E
L_.str.3:                               ## @.str.3
	.asciz	"Programming port %c in FDI mode, this probably will not work.\n"

	.no_dead_strip	_intel_prepare_ddi_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_prepare_ddi_buffers
_intel_prepare_ddi_buffers:             ; @intel_prepare_ddi_buffers
	.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, x1
	cmp	w2, #0
	cset	w23, ne
Lloh0:
	adrp	x21, _hsw_ddi_translations_fdi@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hsw_ddi_translations_fdi@GOTPAGEOFF]
Lloh2:
	adrp	x8, _hsw_ddi_translations_dp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hsw_ddi_translations_dp@GOTPAGEOFF]
	csel	x8, x21, x8, ne
	ldr	x22, [x8]
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x20, x9, x8, ne
	mov	x0, x1
	bl	_port_name
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEBUG_DRIVER
Lloh10:
	adrp	x8, _PORT_E@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PORT_E@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w8, ne
	and	w20, w23, w8
	mov	x0, x19
	bl	_port_name
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_WARN
	mov	x0, x19
	bl	_DDI_BUF_TRANS
	mov	x19, x0
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, x20, lsl #2]
	mov	x0, x19
	bl	_I915_WRITE
	add	w19, w19, #4
	add	x20, x20, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	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
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hsw_ddi_translations_fdi,8,3   ; @hsw_ddi_translations_fdi
	.comm	_hsw_ddi_translations_dp,8,3    ; @hsw_ddi_translations_dp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing DDI buffers for port %c in %s mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"FDI"

l_.str.2:                               ; @.str.2
	.asciz	"DP"

	.comm	_PORT_E,4,2                     ; @PORT_E
l_.str.3:                               ; @.str.3
	.asciz	"Programming port %c in FDI mode, this probably will not work.\n"

	.no_dead_strip	_intel_prepare_ddi_buffers
.subsections_via_symbols
