	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_reg_acr
_hdmi_reg_acr:                          ## @hdmi_reg_acr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %eax
	movq	%rdi, %r14
	imull	$954437177, %esi, %ecx          ## imm = 0x38E38E39
	addl	$238609294, %ecx                ## imm = 0xE38E38E
	shll	$7, %eax
	cmpl	$477218589, %ecx                ## imm = 0x1C71C71D
	movl	$30000, %ecx                    ## imm = 0x7530
	movl	$27000, %ebx                    ## imm = 0x6978
	cmovbl	%ecx, %ebx
	movl	$900, %ecx                      ## imm = 0x384
	movl	$1000, %esi                     ## imm = 0x3E8
	cmovbl	%ecx, %esi
	cltd
	idivl	%esi
	movq	_HDMI_ACR_N0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$3, %edx
	movl	%eax, %ecx
	callq	_hdmi_reg_writev
	movq	_HDMI_ACR_MCTS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	movl	%ebx, %ecx
	callq	_hdmi_reg_writev
	movq	_HDMI_ACR_CTS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	movl	%ebx, %ecx
	callq	_hdmi_reg_writev
	movq	_HDMI_ACR_CON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hdmi_reg_writeb                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_ACR_N0,4,2                ## @HDMI_ACR_N0
	.comm	_HDMI_ACR_MCTS0,4,2             ## @HDMI_ACR_MCTS0
	.comm	_HDMI_ACR_CTS0,4,2              ## @HDMI_ACR_CTS0
	.comm	_HDMI_ACR_CON,4,2               ## @HDMI_ACR_CON
	.no_dead_strip	_hdmi_reg_acr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_reg_acr
_hdmi_reg_acr:                          ; @hdmi_reg_acr
	.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, x0
	mov	w8, #36409
	movk	w8, #14563, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	add	w8, w8, w8, lsl #3
	mov	w9, #27000
	mov	w10, #30000
	cmp	w1, w8
	csel	w20, w10, w9, eq
	lsl	w8, w1, #7
	mov	w9, #1000
	mov	w10, #900
	csel	w9, w10, w9, eq
	sdiv	w3, w8, w9
Lloh0:
	adrp	x8, _HDMI_ACR_N0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_ACR_N0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_hdmi_reg_writev
Lloh3:
	adrp	x8, _HDMI_ACR_MCTS0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_ACR_MCTS0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	x3, x20
	bl	_hdmi_reg_writev
Lloh6:
	adrp	x8, _HDMI_ACR_CTS0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_ACR_CTS0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	x3, x20
	bl	_hdmi_reg_writev
Lloh9:
	adrp	x8, _HDMI_ACR_CON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDMI_ACR_CON@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hdmi_reg_writeb
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_ACR_N0,4,2                ; @HDMI_ACR_N0
	.comm	_HDMI_ACR_MCTS0,4,2             ; @HDMI_ACR_MCTS0
	.comm	_HDMI_ACR_CTS0,4,2              ; @HDMI_ACR_CTS0
	.comm	_HDMI_ACR_CON,4,2               ; @HDMI_ACR_CON
	.no_dead_strip	_hdmi_reg_acr
.subsections_via_symbols
