	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi_compute_acr               ## -- Begin function hdmi_compute_acr
	.p2align	4, 0x90
_hdmi_compute_acr:                      ## @hdmi_compute_acr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	cmpl	$88199, %esi                    ## imm = 0x15887
	jle	LBB0_4
## %bb.9:
	cmpl	$176399, %esi                   ## imm = 0x2B10F
	jg	LBB0_13
## %bb.10:
	cmpl	$88200, %esi                    ## imm = 0x15888
	je	LBB0_17
## %bb.11:
	cmpl	$96000, %esi                    ## imm = 0x17700
	jne	LBB0_2
## %bb.12:
	movl	$96, %r8d
	movl	$12288, %eax                    ## imm = 0x3000
	jmp	LBB0_19
LBB0_4:
	cmpl	$32000, %esi                    ## imm = 0x7D00
	je	LBB0_5
## %bb.6:
	cmpl	$44100, %esi                    ## imm = 0xAC44
	je	LBB0_16
## %bb.7:
	cmpl	$48000, %esi                    ## imm = 0xBB80
	jne	LBB0_2
## %bb.8:
	movl	$48, %r8d
	movl	$6144, %eax                     ## imm = 0x1800
	jmp	LBB0_19
LBB0_13:
	cmpl	$176400, %esi                   ## imm = 0x2B110
	je	LBB0_18
## %bb.14:
	cmpl	$192000, %esi                   ## imm = 0x2EE00
	jne	LBB0_2
## %bb.15:
	movl	$192, %r8d
	movl	$24576, %eax                    ## imm = 0x6000
	jmp	LBB0_19
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_17:
	movl	$98, %r8d
	movl	$12544, %eax                    ## imm = 0x3100
	jmp	LBB0_19
LBB0_5:
	movl	$32, %r8d
	movl	$4096, %eax                     ## imm = 0x1000
	jmp	LBB0_19
LBB0_16:
	movl	$49, %r8d
	movl	$6272, %eax                     ## imm = 0x1880
	jmp	LBB0_19
LBB0_18:
	movl	$196, %r8d
	movl	$25088, %eax                    ## imm = 0x6200
LBB0_19:
	movl	%eax, (%rdx)
	movslq	%edi, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	imull	%r8d, %eax
	imull	$100, %eax, %eax
	movl	%esi, %edx
	movl	$3435973837, %esi               ## imm = 0xCCCCCCCD
	imulq	%rdx, %rsi
	shrq	$35, %rsi
	cltd
	idivl	%esi
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi_compute_acr               ; -- Begin function hdmi_compute_acr
	.p2align	2
_hdmi_compute_acr:                      ; @hdmi_compute_acr
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_14
; %bb.1:
	cbz	x3, LBB0_14
; %bb.2:
	mov	w8, #22663
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.le	LBB0_7
; %bb.3:
	mov	w8, #45327
	movk	w8, #2, lsl #16
	cmp	w1, w8
	b.gt	LBB0_11
; %bb.4:
	mov	w8, #22664
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.eq	LBB0_15
; %bb.5:
	mov	w8, #30464
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.ne	LBB0_14
; %bb.6:
	mov	w9, #96
	mov	w10, #12288
	b	LBB0_19
LBB0_7:
	mov	w8, #32000
	cmp	w1, w8
	b.eq	LBB0_16
; %bb.8:
	mov	w8, #44100
	cmp	w1, w8
	b.eq	LBB0_17
; %bb.9:
	mov	w8, #48000
	cmp	w1, w8
	b.ne	LBB0_14
; %bb.10:
	mov	w9, #48
	mov	w10, #6144
	b	LBB0_19
LBB0_11:
	mov	w8, #45328
	movk	w8, #2, lsl #16
	cmp	w1, w8
	b.eq	LBB0_18
; %bb.12:
	mov	w8, #60928
	movk	w8, #2, lsl #16
	cmp	w1, w8
	b.ne	LBB0_14
; %bb.13:
	mov	w9, #192
	mov	w10, #24576
	b	LBB0_19
LBB0_14:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_15:
	mov	w9, #98
	mov	w10, #12544
	b	LBB0_19
LBB0_16:
	mov	w9, #32
	mov	w10, #4096
	b	LBB0_19
LBB0_17:
	mov	w9, #49
	mov	w10, #6272
	b	LBB0_19
LBB0_18:
	mov	w9, #196
	mov	w10, #25088
LBB0_19:
	str	w10, [x2]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x10, w0, w10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	mul	w9, w10, w9
	mov	w10, #100
	mul	w9, w9, w10
	mov	w10, #52429
	movk	w10, #52428, lsl #16
	umull	x10, w1, w10
	lsr	x10, x10, #35
	sdiv	w9, w9, w10
	str	w9, [x3]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
