	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_audio_bandwidth_hdmi
_check_audio_bandwidth_hdmi:            ## @check_audio_bandwidth_hdmi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%r8d, %r8d
	cmpl	$3, %esi
	jl	LBB0_12
## %bb.1:
	movl	(%rdi), %eax
	cmpl	$270000, %eax                   ## imm = 0x41EB0
	jg	LBB0_9
## %bb.2:
	cmpl	$576, 4(%rdi)                   ## imm = 0x240
	jg	LBB0_12
## %bb.3:
	cmpq	$0, 32(%rdi)
	je	LBB0_4
LBB0_6:
	cmpq	$0, 32(%rdi)
	je	LBB0_11
## %bb.7:
	movl	$1, %r9d
	cmpl	$2, 8(%rdi)
	jne	LBB0_11
## %bb.8:
	xorl	%r10d, %r10d
	jmp	LBB0_14
LBB0_9:
	cmpl	$540000, %eax                   ## imm = 0x83D60
	ja	LBB0_12
## %bb.10:
	cmpl	$576, 4(%rdi)                   ## imm = 0x240
	jg	LBB0_12
LBB0_11:
	xorl	%r8d, %r8d
	cmpq	$0, 32(%rdi)
	sete	%r8b
LBB0_12:
	xorl	%r10d, %r10d
LBB0_13:
	xorl	%r9d, %r9d
LBB0_14:
	movl	8(%rdi), %eax
	movl	12(%rdi), %esi
	subl	16(%rdi), %esi
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	imull	%esi, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %eax
	addl	$-740, %eax                     ## imm = 0xFD1C
	leal	(%rcx,%rcx,4), %ecx
	addl	$-709, %ecx                     ## imm = 0xFD3B
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$5, %ecx
	movl	20(%rdi), %eax
	imull	4(%rdi), %eax
	imull	%ecx, %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	24(%rdi), %edi
	cmpl	$130, %edi
	je	LBB0_17
## %bb.15:
	cmpl	$129, %edi
	je	LBB0_18
## %bb.16:
	cmpl	$128, %edi
	shll	$2, %eax
	jmp	LBB0_19
LBB0_17:
	leal	(%rax,%rax,4), %eax
	jmp	LBB0_19
LBB0_18:
	addl	%eax, %eax
	leal	(%rax,%rax,2), %eax
LBB0_19:
	movb	$1, %dil
	cmpl	$352800, %eax                   ## imm = 0x56220
	jge	LBB0_21
## %bb.20:
	movl	$1, %r10d
	testq	%rdx, %rdx
	jne	LBB0_27
	jmp	LBB0_35
LBB0_21:
	cmpl	$384000, %eax                   ## imm = 0x5DC00
	jae	LBB0_23
## %bb.22:
	movl	$1, %r9d
	testq	%rdx, %rdx
	jne	LBB0_27
	jmp	LBB0_35
LBB0_23:
	cmpl	$705600, %eax                   ## imm = 0xAC440
	jae	LBB0_25
## %bb.24:
	xorl	%edi, %edi
	testq	%rdx, %rdx
	jne	LBB0_27
LBB0_35:
	popq	%rbp
	retq
LBB0_25:
	cmpl	$768000, %eax                   ## imm = 0xBB800
	movl	$1, %eax
	cmovbl	%eax, %r8d
	testq	%rdx, %rdx
	je	LBB0_35
LBB0_27:
	testl	%r8d, %r8d
	je	LBB0_29
## %bb.28:
	movq	$0, 24(%rdx)
LBB0_29:
	testb	%dil, %dil
	jne	LBB0_31
## %bb.30:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdx)
LBB0_31:
	testl	%r9d, %r9d
	je	LBB0_33
## %bb.32:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdx)
	movq	$0, 24(%rdx)
LBB0_33:
	testl	%r10d, %r10d
	je	LBB0_35
## %bb.34:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdx)
	movups	%xmm0, (%rdx)
	popq	%rbp
	retq
LBB0_4:
	movl	8(%rdi), %eax
	cmpl	$4, %eax
	je	LBB0_6
## %bb.5:
	movl	$1, %r10d
	cmpl	$2, %eax
	je	LBB0_6
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_check_audio_bandwidth_hdmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_audio_bandwidth_hdmi
_check_audio_bandwidth_hdmi:            ; @check_audio_bandwidth_hdmi
	.cfi_startproc
; %bb.0:
	cmp	w1, #3
	b.lt	LBB0_10
; %bb.1:
	ldr	w8, [x0]
	mov	w9, #7856
	movk	w9, #4, lsl #16
	cmp	w8, w9
	b.gt	LBB0_7
; %bb.2:
	ldr	w8, [x0, #4]
	cmp	w8, #576
	b.gt	LBB0_10
; %bb.3:
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_28
LBB0_4:
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	w8, [x0, #8]
	cmp	w8, #2
	b.ne	LBB0_9
; %bb.6:
	mov	w8, #0
	mov	w10, #0
	mov	w9, #1
	b	LBB0_11
LBB0_7:
	mov	w9, #15712
	movk	w9, #8, lsl #16
	cmp	w8, w9
	b.hi	LBB0_10
; %bb.8:
	ldr	w8, [x0, #4]
	cmp	w8, #576
	b.gt	LBB0_10
LBB0_9:
	mov	w8, #0
	mov	w9, #0
	ldr	x10, [x0, #32]
	cmp	x10, #0
	cset	w10, eq
	b	LBB0_11
LBB0_10:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
LBB0_11:
	ldp	w11, w12, [x0, #12]
	sub	w11, w11, w12
	ldp	w13, w12, [x0, #4]
	cmp	w12, #0
	csinc	w12, w12, wzr, ne
	mul	w11, w11, w12
	add	w11, w11, w11, lsl #2
	lsl	w11, w11, #1
	sub	w12, w11, #740
	sub	w11, w11, #709
	cmp	w12, #0
	csel	w11, w11, w12, lt
	asr	w11, w11, #5
	ldp	w12, w14, [x0, #20]
	mul	w12, w12, w13
	mul	w11, w12, w11
	mov	w12, #26215
	movk	w12, #26214, lsl #16
	smull	x11, w11, w12
	lsr	x12, x11, #63
	asr	x11, x11, #34
	add	w11, w11, w12
	add	w12, w11, w11, lsl #2
	add	w13, w11, w11, lsl #1
	lsl	w13, w13, #1
	lsl	w11, w11, #2
	cmp	w14, #128
	csel	w11, w11, w11, ne
	cmp	w14, #129
	csel	w11, w13, w11, eq
	cmp	w14, #130
	csel	w11, w12, w11, eq
	mov	w12, #25120
	movk	w12, #5, lsl #16
	cmp	w11, w12
	b.ge	LBB0_13
; %bb.12:
	mov	w8, #1
	b	LBB0_19
LBB0_13:
	lsr	w12, w11, #10
	cmp	w12, #375
	b.hs	LBB0_15
; %bb.14:
	mov	w9, #1
	b	LBB0_19
LBB0_15:
	mov	w12, #50240
	movk	w12, #10, lsl #16
	cmp	w11, w12
	b.hs	LBB0_18
; %bb.16:
	mov	w11, #0
	cbnz	x2, LBB0_20
LBB0_17:
	ret
LBB0_18:
	lsr	w11, w11, #11
	cmp	w11, #375
	csinc	w10, w10, wzr, hs
LBB0_19:
	mov	w11, #1
	cbz	x2, LBB0_17
LBB0_20:
	cbz	w10, LBB0_22
; %bb.21:
	str	xzr, [x2, #24]
LBB0_22:
	tbnz	w11, #0, LBB0_24
; %bb.23:
	stp	xzr, xzr, [x2, #16]
LBB0_24:
	cbz	w9, LBB0_26
; %bb.25:
	stp	xzr, xzr, [x2, #8]
	str	xzr, [x2, #24]
LBB0_26:
	cbz	w8, LBB0_17
; %bb.27:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x2]
	ret
LBB0_28:
	ldr	w8, [x0, #8]
	cmp	w8, #4
	b.eq	LBB0_4
; %bb.29:
	cmp	w8, #2
	b.eq	LBB0_4
; %bb.30:
	mov	w9, #0
	mov	w10, #0
	mov	w8, #1
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_check_audio_bandwidth_hdmi
.subsections_via_symbols
