	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gv100_hdmi_ctrl                ## -- Begin function gv100_hdmi_ctrl
	.p2align	4, 0x90
_gv100_hdmi_ctrl:                       ## @gv100_hdmi_ctrl
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%esi, %ebx
	movl	16(%rbp), %ecx
	movq	24(%rbp), %r13
	movq	(%rdi), %rax
	movq	(%rax), %r14
	shll	$30, %edx
	shll	$16, %r15d
	orl	%edx, %r15d
	orl	%r8d, %r15d
	movl	%esi, %r12d
	shll	$11, %r12d
	shll	$10, %ebx
	leaq	-64(%rbp), %rdi
	movq	%r9, %rsi
	movl	%ecx, %edx
	callq	_pack_hdmi_infoframe
	leaq	-88(%rbp), %rdi
	movq	%r13, %rsi
	movl	32(%rbp), %r13d
	movl	%r13d, %edx
	callq	_pack_hdmi_infoframe
	testl	$1073741824, %r15d              ## imm = 0x40000000
	jne	LBB0_2
## %bb.1:
	addl	$6383040, %r12d                 ## imm = 0x6165C0
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1073741824, %edx               ## imm = 0x40000000
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	leal	7274752(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	leal	7274688(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	addl	$7274496, %ebx                  ## imm = 0x6F0000
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_2:
	leal	7274496(%rbx), %esi
	movq	%r14, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	cmpl	$0, 16(%rbp)
	je	LBB0_4
## %bb.3:
	leal	7274504(%rbx), %esi
	movl	-64(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	7274508(%rbx), %esi
	movl	-60(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	7274512(%rbx), %esi
	movl	-56(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	7274516(%rbx), %esi
	movl	-52(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	7274520(%rbx), %esi
	movl	-48(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
LBB0_4:
	leal	7274752(%rbx), %esi
	movq	%r14, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	$65537, %edx                    ## imm = 0x10001
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	leal	7274760(%rbx), %esi
	movl	-88(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	7274764(%rbx), %esi
	movl	-84(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	7274768(%rbx), %r13d
	movl	-80(%rbp), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	leal	7274772(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	leal	7274776(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	leal	7274780(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	leal	7274784(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	leal	7274788(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
LBB0_6:
	leal	7274688(%rbx), %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	leal	7274700(%rbx), %esi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
	addl	$7274624, %ebx                  ## imm = 0x6F0080
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$-2113929216, %edx              ## imm = 0x82000000
	callq	_nvkm_wr32
	addl	$6383040, %r12d                 ## imm = 0x6165C0
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1075773567, %edx               ## imm = 0x401F007F
	movl	%r15d, %ecx
LBB0_7:
	callq	_nvkm_mask
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gv100_hdmi_ctrl                ; -- Begin function gv100_hdmi_ctrl
	.p2align	2
_gv100_hdmi_ctrl:                       ; @gv100_hdmi_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x7
	mov	x23, x6
	ldr	w21, [x29, #16]
	ldr	x8, [x0]
	lsl	w9, w3, #16
	orr	w9, w9, w2, lsl #30
	ldr	x19, [x8]
	orr	w20, w9, w4
	lsl	w24, w1, #11
	lsl	w25, w1, #10
	add	x0, sp, #24
	mov	x1, x5
	mov	x2, x6
	bl	_pack_hdmi_infoframe
	mov	x0, sp
	mov	x1, x22
	mov	x2, x21
	bl	_pack_hdmi_infoframe
	tbnz	w20, #30, LBB0_2
; %bb.1:
	add	w8, w24, #1558, lsl #12         ; =6381568
	add	w1, w8, #1472
	mov	x0, x19
	mov	w2, #1073741824
	mov	w3, #0
	bl	_nvkm_mask
	add	w8, w25, #1776, lsl #12         ; =7274496
	add	w20, w8, #192
	add	w1, w20, #64
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_nvkm_mask
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	bl	_nvkm_mask
	add	w1, w25, #1776, lsl #12         ; =7274496
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	b	LBB0_7
LBB0_2:
	mov	w26, #192
	movk	w26, #111, lsl #16
	add	w22, w25, #1776, lsl #12        ; =7274496
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	mov	w3, #0
	bl	_nvkm_mask
	cbz	w23, LBB0_4
; %bb.3:
	add	w23, w26, w25
	sub	w1, w23, #184
	ldr	w2, [sp, #24]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #180
	ldr	w2, [sp, #28]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #176
	ldr	w2, [sp, #32]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #172
	ldr	w2, [sp, #36]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #168
	ldr	w2, [sp, #40]
	mov	x0, x19
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	mov	w3, #1
	bl	_nvkm_mask
LBB0_4:
	add	w23, w26, w25
	add	w22, w23, #64
	mov	x0, x19
	mov	x1, x22
	mov	w2, #65537
	mov	w3, #0
	bl	_nvkm_mask
	cbz	w21, LBB0_6
; %bb.5:
	add	w1, w23, #72
	ldr	w2, [sp]
	mov	x0, x19
	bl	_nvkm_wr32
	add	w1, w23, #76
	ldr	w2, [sp, #4]
	mov	x0, x19
	bl	_nvkm_wr32
	add	w21, w23, #80
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #84
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #88
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #92
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #96
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	add	w1, w23, #100
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	mov	w3, #1
	bl	_nvkm_mask
LBB0_6:
	add	w21, w25, w26
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	mov	w3, #0
	bl	_nvkm_mask
	add	w1, w21, #12
	mov	x0, x19
	mov	w2, #16
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	mov	w3, #1
	bl	_nvkm_mask
	sub	w1, w21, #64
	mov	x0, x19
	mov	w2, #-2113929216
	bl	_nvkm_wr32
	add	w8, w24, #1558, lsl #12         ; =6381568
	add	w1, w8, #1472
	mov	x0, x19
	mov	w2, #127
	movk	w2, #16415, lsl #16
	mov	x3, x20
LBB0_7:
	bl	_nvkm_mask
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
