	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_set_vc_payload_alloc ## -- Begin function intel_ddi_set_vc_payload_alloc
	.p2align	4, 0x90
_intel_ddi_set_vc_payload_alloc:        ## @intel_ddi_set_vc_payload_alloc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_intel_crtc
	movl	(%rax), %edi
	callq	_to_i915
	movl	(%rbx), %r15d
	movl	%r15d, %edi
	callq	_TRANS_DDI_FUNC_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TRANS_DDI_DP_VC_PAYLOAD_ALLOC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%eax, %ecx
	notl	%ebx
	andl	%eax, %ebx
	cmpl	$1, %r14d
	cmovel	%ecx, %ebx
	movl	%r15d, %edi
	callq	_TRANS_DDI_FUNC_CTL
	movl	%eax, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANS_DDI_DP_VC_PAYLOAD_ALLOC,4,2 ## @TRANS_DDI_DP_VC_PAYLOAD_ALLOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_set_vc_payload_alloc ; -- Begin function intel_ddi_set_vc_payload_alloc
	.p2align	2
_intel_ddi_set_vc_payload_alloc:        ; @intel_ddi_set_vc_payload_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_intel_crtc
	ldr	w0, [x0]
	bl	_to_i915
	ldr	w20, [x20]
	mov	x0, x20
	bl	_TRANS_DDI_FUNC_CTL
	bl	_I915_READ
Lloh0:
	adrp	x8, _TRANS_DDI_DP_VC_PAYLOAD_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANS_DDI_DP_VC_PAYLOAD_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w19, #1
	csel	w19, w9, w8, eq
	mov	x0, x20
	bl	_TRANS_DDI_FUNC_CTL
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANS_DDI_DP_VC_PAYLOAD_ALLOC,4,2 ; @TRANS_DDI_DP_VC_PAYLOAD_ALLOC
.subsections_via_symbols
