	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_recommended_n
_hdmi_recommended_n:                    ## @hdmi_recommended_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
	movl	%esi, %r12d
	movl	%edi, %r14d
	movq	_hdmi_rec_n_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpl	%r12d, (%rdi,%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	decl	%eax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jb	LBB0_3
LBB0_5:
	movl	%r13d, %eax
LBB0_6:
	movq	(%r15), %rcx
	cmpl	$88199, %r14d                   ## imm = 0x15887
	jle	LBB0_7
## %bb.11:
	cmpl	$176399, %r14d                  ## imm = 0x2B10F
	jg	LBB0_15
## %bb.12:
	cmpl	$88200, %r14d                   ## imm = 0x15888
	je	LBB0_20
## %bb.13:
	cmpl	$96000, %r14d                   ## imm = 0x17700
	jne	LBB0_22
## %bb.14:
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rax
	movl	8(%rax), %eax
	addl	%eax, %eax
	jmp	LBB0_23
LBB0_7:
	cmpl	$32000, %r14d                   ## imm = 0x7D00
	je	LBB0_18
## %bb.8:
	cmpl	$44100, %r14d                   ## imm = 0xAC44
	je	LBB0_19
## %bb.9:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	jne	LBB0_22
## %bb.10:
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rax
	movl	8(%rax), %eax
	jmp	LBB0_23
LBB0_15:
	cmpl	$176400, %r14d                  ## imm = 0x2B110
	je	LBB0_21
## %bb.16:
	cmpl	$192000, %r14d                  ## imm = 0x2EE00
	jne	LBB0_22
## %bb.17:
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rax
	movl	8(%rax), %eax
	shll	$2, %eax
	jmp	LBB0_23
LBB0_20:
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rax
	movl	4(%rax), %eax
	addl	%eax, %eax
	jmp	LBB0_23
LBB0_18:
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_21:
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rax
	movl	4(%rax), %eax
	shll	$2, %eax
	jmp	LBB0_23
LBB0_22:
	shll	$7, %r14d
	imulq	$274877907, %r14, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	jmp	LBB0_23
LBB0_19:
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rax
	movl	4(%rax), %eax
LBB0_23:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hdmi_rec_n_table,8,3           ## @hdmi_rec_n_table
	.no_dead_strip	_hdmi_recommended_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_recommended_n
_hdmi_recommended_n:                    ; @hdmi_recommended_n
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _hdmi_rec_n_table@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hdmi_rec_n_table@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x8, #0
	b	LBB0_6
LBB0_2:
	mov	x23, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x23]
	cmp	w8, w20
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	add	x23, x23, #16
	cmp	x22, x8
	b.lo	LBB0_3
LBB0_5:
	and	x8, x22, #0xffffffff
LBB0_6:
	ldr	x9, [x21]
	mov	w10, #22663
	movk	w10, #1, lsl #16
	cmp	w19, w10
	b.le	LBB0_11
; %bb.7:
	mov	w10, #45327
	movk	w10, #2, lsl #16
	cmp	w19, w10
	b.gt	LBB0_15
; %bb.8:
	mov	w10, #22664
	movk	w10, #1, lsl #16
	cmp	w19, w10
	b.eq	LBB0_18
; %bb.9:
	mov	w10, #30464
	movk	w10, #1, lsl #16
	cmp	w19, w10
	b.ne	LBB0_21
; %bb.10:
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #8]
	lsl	w0, w8, #1
	b	LBB0_23
LBB0_11:
	mov	w10, #32000
	cmp	w19, w10
	b.eq	LBB0_19
; %bb.12:
	mov	w10, #44100
	cmp	w19, w10
	b.eq	LBB0_22
; %bb.13:
	mov	w10, #48000
	cmp	w19, w10
	b.ne	LBB0_21
; %bb.14:
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
	ldr	w0, [x8, #8]
	b	LBB0_23
LBB0_15:
	mov	w10, #45328
	movk	w10, #2, lsl #16
	cmp	w19, w10
	b.eq	LBB0_20
; %bb.16:
	mov	w10, #60928
	movk	w10, #2, lsl #16
	cmp	w19, w10
	b.ne	LBB0_21
; %bb.17:
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #8]
	lsl	w0, w8, #2
	b	LBB0_23
LBB0_18:
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #4]
	lsl	w0, w8, #1
	b	LBB0_23
LBB0_19:
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	b	LBB0_23
LBB0_20:
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #4]
	lsl	w0, w8, #2
	b	LBB0_23
LBB0_21:
	lsl	w8, w19, #7
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #38
	b	LBB0_23
LBB0_22:
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
	ldr	w0, [x8, #4]
LBB0_23:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hdmi_rec_n_table,8,3           ; @hdmi_rec_n_table
	.no_dead_strip	_hdmi_recommended_n
.subsections_via_symbols
