	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g84_hdmi_ctrl                  ## -- Begin function g84_hdmi_ctrl
	.p2align	4, 0x90
_g84_hdmi_ctrl:                         ## @g84_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	32(%rbp), %r12d
	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
	shll	$11, %ebx
	leaq	-64(%rbp), %rdi
	movq	%r9, %rsi
	movl	%ecx, %edx
	callq	_pack_hdmi_infoframe
	leaq	-88(%rbp), %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_pack_hdmi_infoframe
	testl	$1073741824, %r15d              ## imm = 0x40000000
	jne	LBB0_2
## %bb.1:
	leal	6383012(%rbx), %esi
	movq	%r14, %rdi
	movl	$1073741824, %edx               ## imm = 0x40000000
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	leal	6382908(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	leal	6382880(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	addl	$6382848, %ebx                  ## imm = 0x616500
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_2:
	leal	6382880(%rbx), %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	cmpl	$0, 16(%rbp)
	je	LBB0_4
## %bb.3:
	leal	6382888(%rbx), %esi
	movl	-64(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	6382892(%rbx), %esi
	movl	-60(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	6382896(%rbx), %esi
	movl	-56(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	6382900(%rbx), %esi
	movl	-52(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	6382904(%rbx), %esi
	movl	-48(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
LBB0_4:
	orl	$520093696, %r15d               ## imm = 0x1F000000
	leal	6382848(%rbx), %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	leal	6382856(%rbx), %esi
	movq	%r14, %rdi
	movl	$655748, %edx                   ## imm = 0xA0184
	callq	_nvkm_wr32
	leal	6382860(%rbx), %esi
	movq	%r14, %rdi
	movl	$113, %edx
	callq	_nvkm_wr32
	leal	6382864(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
	leal	6382908(%rbx), %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$65537, %edx                    ## imm = 0x10001
	movl	$65536, %ecx                    ## imm = 0x10000
	callq	_nvkm_mask
	cmpl	$0, 32(%rbp)
	je	LBB0_6
## %bb.5:
	leal	6382916(%rbx), %esi
	movl	-88(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	6382920(%rbx), %esi
	movl	-84(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	6382924(%rbx), %esi
	movl	-80(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$65537, %edx                    ## imm = 0x10001
	movl	$65537, %ecx                    ## imm = 0x10001
	callq	_nvkm_mask
LBB0_6:
	leal	6383056(%rbx), %esi
	movq	%r14, %rdi
	movl	$458753, %edx                   ## imm = 0x70001
	movl	$65537, %ecx                    ## imm = 0x10001
	callq	_nvkm_mask
	leal	6382952(%rbx), %esi
	movq	%r14, %rdi
	movl	$65793, %edx                    ## imm = 0x10101
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	leal	6382968(%rbx), %esi
	movq	%r14, %rdi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$-2147483648, %ecx              ## imm = 0x80000000
	callq	_nvkm_mask
	movq	%r14, %rdi
	movl	$6386492, %esi                  ## imm = 0x61733C
	movl	$1048576, %edx                  ## imm = 0x100000
	movl	$1048576, %ecx                  ## imm = 0x100000
	callq	_nvkm_mask
	movq	%r14, %rdi
	movl	$6386492, %esi                  ## imm = 0x61733C
	movl	$268435456, %edx                ## imm = 0x10000000
	movl	$268435456, %ecx                ## imm = 0x10000000
	callq	_nvkm_mask
	movq	%r14, %rdi
	movl	$6386492, %esi                  ## imm = 0x61733C
	movl	$1048576, %edx                  ## imm = 0x100000
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	addl	$6383012, %ebx                  ## imm = 0x6165A4
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1595867263, %edx               ## imm = 0x5F1F007F
	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	_g84_hdmi_ctrl                  ; -- Begin function g84_hdmi_ctrl
	.p2align	2
_g84_hdmi_ctrl:                         ; @g84_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	x20, x7
	mov	x23, x6
	ldr	w21, [x29, #16]
	ldr	x8, [x0]
	ldr	x19, [x8]
	lsl	w8, w3, #16
	orr	w8, w8, w2, lsl #30
	orr	w22, w8, w4
	lsl	w25, w1, #11
	add	x0, sp, #24
	mov	x1, x5
	mov	x2, x6
	bl	_pack_hdmi_infoframe
	mov	x0, sp
	mov	x1, x20
	mov	x2, x21
	bl	_pack_hdmi_infoframe
	tbnz	w22, #30, LBB0_2
; %bb.1:
	add	w8, w25, #1559, lsl #12         ; =6385664
	add	w20, w8, #828
	sub	w1, w20, #3480
	mov	x0, x19
	mov	w2, #1073741824
	mov	w3, #0
	bl	_nvkm_mask
	sub	w1, w20, #3584
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_nvkm_mask
	sub	w1, w20, #3612
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_nvkm_mask
	sub	w1, w20, #3644
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	b	LBB0_7
LBB0_2:
	orr	w20, w22, #0x1f000000
	mov	w26, #29500
	movk	w26, #97, lsl #16
	add	w8, w25, w26
	sub	w22, w8, #3612
	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, #3604
	ldr	w2, [sp, #24]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #3600
	ldr	w2, [sp, #28]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #3596
	ldr	w2, [sp, #32]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #3592
	ldr	w2, [sp, #36]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #3588
	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:
	mov	w24, #65537
	add	w23, w26, w25
	sub	w22, w23, #3644
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	mov	w3, #0
	bl	_nvkm_mask
	sub	w1, w23, #3636
	mov	x0, x19
	mov	w2, #388
	movk	w2, #10, lsl #16
	bl	_nvkm_wr32
	sub	w1, w23, #3632
	mov	x0, x19
	mov	w2, #113
	bl	_nvkm_wr32
	sub	w1, w23, #3628
	mov	x0, x19
	mov	w2, #0
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	mov	w3, #1
	bl	_nvkm_mask
	sub	w22, w23, #3584
	mov	x0, x19
	mov	x1, x22
	mov	w2, #65537
	mov	w3, #65536
	bl	_nvkm_mask
	cbz	w21, LBB0_6
; %bb.5:
	sub	w1, w23, #3576
	ldr	w2, [sp]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #3572
	ldr	w2, [sp, #4]
	mov	x0, x19
	bl	_nvkm_wr32
	sub	w1, w23, #3568
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x22
	mov	w2, #65537
	mov	w3, #65537
	bl	_nvkm_mask
LBB0_6:
	sub	w1, w23, #3436
	orr	w2, w24, #0x60000
	mov	x0, x19
	mov	w3, #65537
	bl	_nvkm_mask
	sub	w1, w23, #3540
	add	w2, w24, #256
	mov	x0, x19
	mov	w3, #0
	bl	_nvkm_mask
	sub	w1, w23, #3524
	mov	x0, x19
	mov	w2, #-2147483648
	mov	w3, #-2147483648
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #29500
	movk	w1, #97, lsl #16
	mov	w2, #1048576
	mov	w3, #1048576
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #29500
	movk	w1, #97, lsl #16
	mov	w2, #268435456
	mov	w3, #268435456
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #29500
	movk	w1, #97, lsl #16
	mov	w2, #1048576
	mov	w3, #0
	bl	_nvkm_mask
	sub	w1, w23, #3480
	mov	x0, x19
	mov	w2, #127
	movk	w2, #24351, 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
