	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_cpu_transcoder_get_m_n
_intel_cpu_transcoder_get_m_n:          ## @intel_cpu_transcoder_get_m_n
	.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
	movq	%rcx, %r14
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movl	(%rbx), %ebx
	movq	%rax, %rdi
	callq	_INTEL_GEN
	cmpl	$5, %eax
	jl	LBB0_4
## %bb.1:
	movl	%r15d, %edi
	callq	_PIPE_LINK_M1
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, (%r13)
	movl	%r15d, %edi
	callq	_PIPE_LINK_N1
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, 4(%r13)
	movl	%r15d, %edi
	callq	_PIPE_DATA_M1
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TU_SIZE_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 8(%r13)
	movl	%r15d, %edi
	callq	_PIPE_DATA_N1
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, 12(%r13)
	movl	%r15d, %edi
	callq	_PIPE_DATA_M1
	movl	%eax, %edi
	callq	_I915_READ
	andl	(%rbx), %eax
	movq	_TU_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	incl	%eax
	movl	%eax, 16(%r13)
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_transcoder_has_m2_n2
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	%r15d, %edi
	callq	_PIPE_LINK_M2
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, (%r14)
	movl	%r15d, %edi
	callq	_PIPE_LINK_N2
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, 4(%r14)
	movl	%r15d, %edi
	callq	_PIPE_DATA_M2
	movl	%eax, %edi
	callq	_I915_READ
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 8(%r14)
	movl	%r15d, %edi
	callq	_PIPE_DATA_N2
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, 12(%r14)
	movl	%r15d, %edi
	callq	_PIPE_DATA_M2
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	callq	_PIPE_LINK_M_G4X
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, (%r13)
	movl	%ebx, %edi
	callq	_PIPE_LINK_N_G4X
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, 4(%r13)
	movl	%ebx, %edi
	callq	_PIPE_DATA_M_G4X
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TU_SIZE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 8(%r13)
	movl	%ebx, %edi
	callq	_PIPE_DATA_N_G4X
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, 12(%r13)
	movl	%ebx, %edi
	callq	_PIPE_DATA_M_G4X
	movq	%r13, %r14
LBB0_5:
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TU_SIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_TU_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	incl	%eax
	movl	%eax, 16(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TU_SIZE_MASK,4,2               ## @TU_SIZE_MASK
	.comm	_TU_SIZE_SHIFT,4,2              ## @TU_SIZE_SHIFT
	.no_dead_strip	_intel_cpu_transcoder_get_m_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_cpu_transcoder_get_m_n
_intel_cpu_transcoder_get_m_n:          ; @intel_cpu_transcoder_get_m_n
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x22, x0
	ldr	w23, [x23]
	bl	_INTEL_GEN
Lloh0:
	adrp	x25, _TU_SIZE_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TU_SIZE_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TU_SIZE_SHIFT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TU_SIZE_SHIFT@GOTPAGEOFF]
	cmp	w0, #5
	b.lt	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_PIPE_LINK_M1
	bl	_I915_READ
	str	w0, [x21]
	mov	x0, x20
	bl	_PIPE_LINK_N1
	bl	_I915_READ
	str	w0, [x21, #4]
	mov	x0, x20
	bl	_PIPE_DATA_M1
	bl	_I915_READ
	ldr	w8, [x25]
	bic	w8, w0, w8
	str	w8, [x21, #8]
	mov	x0, x20
	bl	_PIPE_DATA_N1
	bl	_I915_READ
	str	w0, [x21, #12]
	mov	x0, x20
	bl	_PIPE_DATA_M1
	bl	_I915_READ
	ldr	w8, [x25]
	and	w8, w8, w0
	ldr	w9, [x24]
	asr	w8, w8, w9
	add	w8, w8, #1
	str	w8, [x21, #16]
	cbz	x19, LBB0_6
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	bl	_transcoder_has_m2_n2
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_PIPE_LINK_M2
	bl	_I915_READ
	str	w0, [x19]
	mov	x0, x20
	bl	_PIPE_LINK_N2
	bl	_I915_READ
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_PIPE_DATA_M2
	bl	_I915_READ
	ldr	w8, [x25]
	bic	w8, w0, w8
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_PIPE_DATA_N2
	bl	_I915_READ
	str	w0, [x19, #12]
	mov	x0, x20
	bl	_PIPE_DATA_M2
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	bl	_PIPE_LINK_M_G4X
	bl	_I915_READ
	str	w0, [x21]
	mov	x0, x23
	bl	_PIPE_LINK_N_G4X
	bl	_I915_READ
	str	w0, [x21, #4]
	mov	x0, x23
	bl	_PIPE_DATA_M_G4X
	bl	_I915_READ
	ldr	w8, [x25]
	bic	w8, w0, w8
	str	w8, [x21, #8]
	mov	x0, x23
	bl	_PIPE_DATA_N_G4X
	bl	_I915_READ
	str	w0, [x21, #12]
	mov	x0, x23
	bl	_PIPE_DATA_M_G4X
	mov	x19, x21
LBB0_5:
	bl	_I915_READ
	ldr	w8, [x25]
	and	w8, w8, w0
	ldr	w9, [x24]
	asr	w8, w8, w9
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TU_SIZE_MASK,4,2               ; @TU_SIZE_MASK
	.comm	_TU_SIZE_SHIFT,4,2              ; @TU_SIZE_SHIFT
	.no_dead_strip	_intel_cpu_transcoder_get_m_n
.subsections_via_symbols
