	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_hdmi_audio_hw_params
_msm_hdmi_audio_hw_params:              ## @msm_hdmi_audio_hw_params
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movl	8(%rbx), %ecx
	movl	(%rbx), %edx
	movl	4(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_DRM_DEV_DEBUG
	movl	4(%rbx), %eax
	addl	$-2, %eax
	cmpl	$7, %eax
	jae	LBB0_1
## %bb.2:
	movl	$85, %ecx
	btl	%eax, %ecx
	jb	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_3:
	cltq
	leaq	l_switch.table.msm_hdmi_audio_hw_params.2(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	movl	(%rcx), %r14d
	movl	(%rbx), %edx
	cmpl	$88199, %edx                    ## imm = 0x15887
	jle	LBB0_4
## %bb.9:
	cmpl	$176399, %edx                   ## imm = 0x2B10F
	jg	LBB0_13
## %bb.10:
	cmpl	$88200, %edx                    ## imm = 0x15888
	je	LBB0_16
## %bb.11:
	cmpl	$96000, %edx                    ## imm = 0x17700
	jne	LBB0_18
## %bb.12:
	movq	_HDMI_SAMPLE_RATE_96KHZ@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_4:
	cmpl	$32000, %edx                    ## imm = 0x7D00
	je	LBB0_5
## %bb.6:
	cmpl	$44100, %edx                    ## imm = 0xAC44
	je	LBB0_19
## %bb.7:
	cmpl	$48000, %edx                    ## imm = 0xBB80
	jne	LBB0_18
## %bb.8:
	movq	_HDMI_SAMPLE_RATE_48KHZ@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_13:
	cmpl	$176400, %edx                   ## imm = 0x2B110
	je	LBB0_17
## %bb.14:
	cmpl	$192000, %edx                   ## imm = 0x2EE00
	jne	LBB0_18
## %bb.15:
	movq	_HDMI_SAMPLE_RATE_192KHZ@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_16:
	movq	_HDMI_SAMPLE_RATE_88_2KHZ@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_5:
	movq	_HDMI_SAMPLE_RATE_32KHZ@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_17:
	movq	_HDMI_SAMPLE_RATE_176_4KHZ@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_DRM_DEV_ERROR
	jmp	LBB0_1
LBB0_19:
	movq	_HDMI_SAMPLE_RATE_44_1KHZ@GOTPCREL(%rip), %rcx
LBB0_20:
	leaq	l_switch.table.msm_hdmi_audio_hw_params(%rip), %rdx
	movl	(%rdx,%rax,4), %r12d
	movl	(%rcx), %esi
	movq	%r15, %rdi
	callq	_msm_hdmi_audio_set_sample_rate
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_msm_hdmi_audio_info_setup
LBB0_21:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u Hz, %d bit, %d channels\n"

	.comm	_MSM_HDMI_AUDIO_CHANNEL_2,4,2   ## @MSM_HDMI_AUDIO_CHANNEL_2
	.comm	_MSM_HDMI_AUDIO_CHANNEL_4,4,2   ## @MSM_HDMI_AUDIO_CHANNEL_4
	.comm	_MSM_HDMI_AUDIO_CHANNEL_6,4,2   ## @MSM_HDMI_AUDIO_CHANNEL_6
	.comm	_MSM_HDMI_AUDIO_CHANNEL_8,4,2   ## @MSM_HDMI_AUDIO_CHANNEL_8
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HDMI_SAMPLE_RATE_32KHZ,4,2     ## @HDMI_SAMPLE_RATE_32KHZ
	.comm	_HDMI_SAMPLE_RATE_44_1KHZ,4,2   ## @HDMI_SAMPLE_RATE_44_1KHZ
	.comm	_HDMI_SAMPLE_RATE_48KHZ,4,2     ## @HDMI_SAMPLE_RATE_48KHZ
	.comm	_HDMI_SAMPLE_RATE_88_2KHZ,4,2   ## @HDMI_SAMPLE_RATE_88_2KHZ
	.comm	_HDMI_SAMPLE_RATE_96KHZ,4,2     ## @HDMI_SAMPLE_RATE_96KHZ
	.comm	_HDMI_SAMPLE_RATE_176_4KHZ,4,2  ## @HDMI_SAMPLE_RATE_176_4KHZ
	.comm	_HDMI_SAMPLE_RATE_192KHZ,4,2    ## @HDMI_SAMPLE_RATE_192KHZ
L_.str.1:                               ## @.str.1
	.asciz	"rate[%d] not supported!\n"

	.no_dead_strip	_msm_hdmi_audio_hw_params
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.msm_hdmi_audio_hw_params
l_switch.table.msm_hdmi_audio_hw_params:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.long	11                              ## 0xb
	.long	0                               ## 0x0
	.long	31                              ## 0x1f

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.msm_hdmi_audio_hw_params.2
l_switch.table.msm_hdmi_audio_hw_params.2:
	.quad	_MSM_HDMI_AUDIO_CHANNEL_2
	.quad	_MSM_HDMI_AUDIO_CHANNEL_2
	.quad	_MSM_HDMI_AUDIO_CHANNEL_4
	.quad	_MSM_HDMI_AUDIO_CHANNEL_2
	.quad	_MSM_HDMI_AUDIO_CHANNEL_6
	.quad	_MSM_HDMI_AUDIO_CHANNEL_2
	.quad	_MSM_HDMI_AUDIO_CHANNEL_8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_hdmi_audio_hw_params
_msm_hdmi_audio_hw_params:              ; @msm_hdmi_audio_hw_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x3
	mov	x21, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	ldp	w4, w3, [x22, #4]
	ldr	w2, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_DRM_DEV_DEBUG
	ldr	w8, [x22, #4]
	sub	w8, w8, #2
	cmp	w8, #7
	b.hs	LBB0_2
; %bb.1:
	mov	w9, #85
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_3:
Lloh5:
	adrp	x9, l_switch.table.msm_hdmi_audio_hw_params.2@PAGE
Lloh6:
	add	x9, x9, l_switch.table.msm_hdmi_audio_hw_params.2@PAGEOFF
	ldr	x9, [x9, w8, sxtw #3]
	ldr	w20, [x9]
	ldr	w2, [x22]
	mov	w9, #22663
	movk	w9, #1, lsl #16
	cmp	w2, w9
	b.le	LBB0_8
; %bb.4:
	mov	w9, #45327
	movk	w9, #2, lsl #16
	cmp	w2, w9
	b.gt	LBB0_12
; %bb.5:
	mov	w9, #22664
	movk	w9, #1, lsl #16
	cmp	w2, w9
	b.eq	LBB0_15
; %bb.6:
	mov	w9, #30464
	movk	w9, #1, lsl #16
	cmp	w2, w9
	b.ne	LBB0_18
; %bb.7:
Lloh7:
	adrp	x9, _HDMI_SAMPLE_RATE_96KHZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HDMI_SAMPLE_RATE_96KHZ@GOTPAGEOFF]
	b	LBB0_20
LBB0_8:
	mov	w9, #32000
	cmp	w2, w9
	b.eq	LBB0_16
; %bb.9:
	mov	w9, #44100
	cmp	w2, w9
	b.eq	LBB0_19
; %bb.10:
	mov	w9, #48000
	cmp	w2, w9
	b.ne	LBB0_18
; %bb.11:
Lloh9:
	adrp	x9, _HDMI_SAMPLE_RATE_48KHZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDMI_SAMPLE_RATE_48KHZ@GOTPAGEOFF]
	b	LBB0_20
LBB0_12:
	mov	w9, #45328
	movk	w9, #2, lsl #16
	cmp	w2, w9
	b.eq	LBB0_17
; %bb.13:
	mov	w9, #60928
	movk	w9, #2, lsl #16
	cmp	w2, w9
	b.ne	LBB0_18
; %bb.14:
Lloh11:
	adrp	x9, _HDMI_SAMPLE_RATE_192KHZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HDMI_SAMPLE_RATE_192KHZ@GOTPAGEOFF]
	b	LBB0_20
LBB0_15:
Lloh13:
	adrp	x9, _HDMI_SAMPLE_RATE_88_2KHZ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HDMI_SAMPLE_RATE_88_2KHZ@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
Lloh15:
	adrp	x9, _HDMI_SAMPLE_RATE_32KHZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HDMI_SAMPLE_RATE_32KHZ@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
Lloh17:
	adrp	x9, _HDMI_SAMPLE_RATE_176_4KHZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HDMI_SAMPLE_RATE_176_4KHZ@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_DRM_DEV_ERROR
	b	LBB0_2
LBB0_19:
Lloh21:
	adrp	x9, _HDMI_SAMPLE_RATE_44_1KHZ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HDMI_SAMPLE_RATE_44_1KHZ@GOTPAGEOFF]
LBB0_20:
Lloh23:
	adrp	x10, l_switch.table.msm_hdmi_audio_hw_params@PAGE
Lloh24:
	add	x10, x10, l_switch.table.msm_hdmi_audio_hw_params@PAGEOFF
	ldr	w21, [x10, w8, sxtw #2]
	ldr	w1, [x9]
	mov	x0, x19
	bl	_msm_hdmi_audio_set_sample_rate
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	mov	x3, x21
	mov	w4, #0
	mov	w5, #0
	bl	_msm_hdmi_audio_info_setup
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u Hz, %d bit, %d channels\n"

	.comm	_MSM_HDMI_AUDIO_CHANNEL_2,4,2   ; @MSM_HDMI_AUDIO_CHANNEL_2
	.comm	_MSM_HDMI_AUDIO_CHANNEL_4,4,2   ; @MSM_HDMI_AUDIO_CHANNEL_4
	.comm	_MSM_HDMI_AUDIO_CHANNEL_6,4,2   ; @MSM_HDMI_AUDIO_CHANNEL_6
	.comm	_MSM_HDMI_AUDIO_CHANNEL_8,4,2   ; @MSM_HDMI_AUDIO_CHANNEL_8
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HDMI_SAMPLE_RATE_32KHZ,4,2     ; @HDMI_SAMPLE_RATE_32KHZ
	.comm	_HDMI_SAMPLE_RATE_44_1KHZ,4,2   ; @HDMI_SAMPLE_RATE_44_1KHZ
	.comm	_HDMI_SAMPLE_RATE_48KHZ,4,2     ; @HDMI_SAMPLE_RATE_48KHZ
	.comm	_HDMI_SAMPLE_RATE_88_2KHZ,4,2   ; @HDMI_SAMPLE_RATE_88_2KHZ
	.comm	_HDMI_SAMPLE_RATE_96KHZ,4,2     ; @HDMI_SAMPLE_RATE_96KHZ
	.comm	_HDMI_SAMPLE_RATE_176_4KHZ,4,2  ; @HDMI_SAMPLE_RATE_176_4KHZ
	.comm	_HDMI_SAMPLE_RATE_192KHZ,4,2    ; @HDMI_SAMPLE_RATE_192KHZ
l_.str.1:                               ; @.str.1
	.asciz	"rate[%d] not supported!\n"

	.no_dead_strip	_msm_hdmi_audio_hw_params
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.msm_hdmi_audio_hw_params
l_switch.table.msm_hdmi_audio_hw_params:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.long	11                              ; 0xb
	.long	0                               ; 0x0
	.long	31                              ; 0x1f

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.msm_hdmi_audio_hw_params.2
l_switch.table.msm_hdmi_audio_hw_params.2:
	.quad	_MSM_HDMI_AUDIO_CHANNEL_2
	.quad	_MSM_HDMI_AUDIO_CHANNEL_2
	.quad	_MSM_HDMI_AUDIO_CHANNEL_4
	.quad	_MSM_HDMI_AUDIO_CHANNEL_2
	.quad	_MSM_HDMI_AUDIO_CHANNEL_6
	.quad	_MSM_HDMI_AUDIO_CHANNEL_2
	.quad	_MSM_HDMI_AUDIO_CHANNEL_8

.subsections_via_symbols
