	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function magician_playback_hw_params
_magician_playback_hw_params:           ## @magician_playback_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	%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
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r12
	movq	_PXA_SSP_CLK_SCDB_4@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rsi, %rdi
	callq	_params_rate
	movq	%rbx, %rdi
	callq	_params_format
	movl	%eax, %edi
	callq	_snd_pcm_format_physical_width
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_params_rate
	cmpl	$22049, %eax                    ## imm = 0x5621
	jle	LBB0_6
## %bb.1:
	cmpl	$22050, %eax                    ## imm = 0x5622
	je	LBB0_10
## %bb.2:
	cmpl	$44100, %eax                    ## imm = 0xAC44
	je	LBB0_10
## %bb.3:
	cmpl	$48000, %eax                    ## imm = 0xBB80
	jne	LBB0_16
## %bb.4:
	cmpl	$16, %r13d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_17
## %bb.5:
	movq	_PXA_SSP_CLK_AUDIO_DIV_2@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_6:
	cmpl	$8000, %eax                     ## imm = 0x1F40
	je	LBB0_14
## %bb.7:
	cmpl	$11025, %eax                    ## imm = 0x2B11
	jne	LBB0_16
## %bb.8:
	cmpl	$16, %r13d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_11
## %bb.9:
	movq	_PXA_SSP_CLK_AUDIO_DIV_4@GOTPCREL(%rip), %rax
	movl	$5622000, -44(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x55C8F0
	jmp	LBB0_21
LBB0_10:
	cmpl	$16, %r13d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_13
LBB0_11:
	movq	_PXA_SSP_CLK_AUDIO_DIV_2@GOTPCREL(%rip), %rax
	movl	$5622000, -44(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x55C8F0
	jmp	LBB0_21
LBB0_14:
	cmpl	$16, %r13d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_19
## %bb.15:
	movq	_PXA_SSP_CLK_AUDIO_DIV_16@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_16:
	cmpl	$16, %r13d
	movq	_PXA_SSP_CLK_SCDB_1@GOTPCREL(%rip), %rcx
	movq	_PXA_SSP_CLK_AUDIO_DIV_2@GOTPCREL(%rip), %rax
	cmoveq	_PXA_SSP_CLK_AUDIO_DIV_1@GOTPCREL(%rip), %rax
	cmovnel	(%rcx), %r14d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_18
LBB0_13:
	movq	_PXA_SSP_CLK_AUDIO_DIV_1@GOTPCREL(%rip), %rax
	movl	$5622000, -44(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0x55C8F0
	jmp	LBB0_21
LBB0_17:
	movq	_PXA_SSP_CLK_AUDIO_DIV_1@GOTPCREL(%rip), %rax
LBB0_18:
	movl	$12235000, -44(%rbp)            ## 4-byte Folded Spill
                                        ## imm = 0xBAB0F8
	jmp	LBB0_21
LBB0_19:
	movq	_PXA_SSP_CLK_AUDIO_DIV_8@GOTPCREL(%rip), %rax
LBB0_20:
	movl	$32842000, -44(%rbp)            ## 4-byte Folded Spill
                                        ## imm = 0x1F52110
LBB0_21:
	movq	_SND_SOC_DAIFMT_MSB@GOTPCREL(%rip), %rcx
	movq	_SND_SOC_DAIFMT_NB_NF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%rax), %r14d
	movq	_SND_SOC_DAIFMT_CBS_CFS@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_28
## %bb.22:
	movq	_SND_SOC_DAIFMT_DSP_A@GOTPCREL(%rip), %rax
	movq	_SND_SOC_DAIFMT_NB_IF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	orl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_28
## %bb.23:
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	%r13d, %r8d
	callq	_snd_soc_dai_set_tdm_slot
	testl	%eax, %eax
	js	LBB0_28
## %bb.24:
	movq	_PXA_SSP_CLK_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SND_SOC_CLOCK_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_soc_dai_set_sysclk
	testl	%eax, %eax
	js	LBB0_28
## %bb.25:
	movq	_PXA_SSP_AUDIO_DIV_ACDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_snd_soc_dai_set_clkdiv
	testl	%eax, %eax
	js	LBB0_28
## %bb.26:
	movq	_PXA_SSP_AUDIO_DIV_SCDB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_snd_soc_dai_set_clkdiv
	testl	%eax, %eax
	js	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_snd_soc_dai_set_pll
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXA_SSP_CLK_SCDB_4,4,2         ## @PXA_SSP_CLK_SCDB_4
	.comm	_PXA_SSP_CLK_AUDIO_DIV_16,4,2   ## @PXA_SSP_CLK_AUDIO_DIV_16
	.comm	_PXA_SSP_CLK_AUDIO_DIV_8,4,2    ## @PXA_SSP_CLK_AUDIO_DIV_8
	.comm	_PXA_SSP_CLK_AUDIO_DIV_4,4,2    ## @PXA_SSP_CLK_AUDIO_DIV_4
	.comm	_PXA_SSP_CLK_AUDIO_DIV_2,4,2    ## @PXA_SSP_CLK_AUDIO_DIV_2
	.comm	_PXA_SSP_CLK_AUDIO_DIV_1,4,2    ## @PXA_SSP_CLK_AUDIO_DIV_1
	.comm	_PXA_SSP_CLK_SCDB_1,4,2         ## @PXA_SSP_CLK_SCDB_1
	.comm	_SND_SOC_DAIFMT_MSB,4,2         ## @SND_SOC_DAIFMT_MSB
	.comm	_SND_SOC_DAIFMT_NB_NF,4,2       ## @SND_SOC_DAIFMT_NB_NF
	.comm	_SND_SOC_DAIFMT_CBS_CFS,4,2     ## @SND_SOC_DAIFMT_CBS_CFS
	.comm	_SND_SOC_DAIFMT_DSP_A,4,2       ## @SND_SOC_DAIFMT_DSP_A
	.comm	_SND_SOC_DAIFMT_NB_IF,4,2       ## @SND_SOC_DAIFMT_NB_IF
	.comm	_PXA_SSP_CLK_AUDIO,4,2          ## @PXA_SSP_CLK_AUDIO
	.comm	_SND_SOC_CLOCK_OUT,4,2          ## @SND_SOC_CLOCK_OUT
	.comm	_PXA_SSP_AUDIO_DIV_ACDS,4,2     ## @PXA_SSP_AUDIO_DIV_ACDS
	.comm	_PXA_SSP_AUDIO_DIV_SCDB,4,2     ## @PXA_SSP_AUDIO_DIV_SCDB
	.no_dead_strip	_magician_playback_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function magician_playback_hw_params
_magician_playback_hw_params:           ; @magician_playback_hw_params
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	x19, x23, [x8]
Lloh0:
	adrp	x8, _PXA_SSP_CLK_SCDB_4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXA_SSP_CLK_SCDB_4@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_params_rate
	mov	x0, x21
	bl	_params_format
	bl	_snd_pcm_format_physical_width
	mov	x22, x0
	mov	x0, x21
	bl	_params_rate
	mov	w8, #22049
	cmp	w0, w8
	b.le	LBB0_5
; %bb.1:
	mov	w8, #22050
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.2:
	mov	w8, #44100
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.3:
	mov	w8, #48000
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.4:
	mov	w21, #45304
	movk	w21, #186, lsl #16
	b	LBB0_9
LBB0_5:
	mov	w8, #8000
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.6:
	mov	w8, #11025
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.7:
	mov	w21, #51440
	movk	w21, #85, lsl #16
Lloh3:
	adrp	x8, _PXA_SSP_CLK_AUDIO_DIV_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PXA_SSP_CLK_AUDIO_DIV_2@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PXA_SSP_CLK_AUDIO_DIV_4@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PXA_SSP_CLK_AUDIO_DIV_4@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	w21, #51440
	movk	w21, #85, lsl #16
LBB0_9:
Lloh7:
	adrp	x8, _PXA_SSP_CLK_AUDIO_DIV_1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PXA_SSP_CLK_AUDIO_DIV_1@GOTPAGEOFF]
Lloh9:
	adrp	x9, _PXA_SSP_CLK_AUDIO_DIV_2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PXA_SSP_CLK_AUDIO_DIV_2@GOTPAGEOFF]
LBB0_10:
	cmp	w22, #16
	csel	x8, x9, x8, eq
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x8, _PXA_SSP_CLK_AUDIO_DIV_8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PXA_SSP_CLK_AUDIO_DIV_8@GOTPAGEOFF]
Lloh13:
	adrp	x9, _PXA_SSP_CLK_AUDIO_DIV_16@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PXA_SSP_CLK_AUDIO_DIV_16@GOTPAGEOFF]
	cmp	w22, #16
	csel	x8, x9, x8, eq
	mov	w21, #8464
	movk	w21, #501, lsl #16
	b	LBB0_13
LBB0_12:
	mov	w21, #45304
	movk	w21, #186, lsl #16
Lloh15:
	adrp	x8, _PXA_SSP_CLK_SCDB_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PXA_SSP_CLK_SCDB_1@GOTPAGEOFF]
Lloh17:
	adrp	x9, _PXA_SSP_CLK_AUDIO_DIV_2@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PXA_SSP_CLK_AUDIO_DIV_2@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x10, _PXA_SSP_CLK_AUDIO_DIV_1@GOTPAGE
Lloh21:
	ldr	x10, [x10, _PXA_SSP_CLK_AUDIO_DIV_1@GOTPAGEOFF]
	cmp	w22, #16
	csel	w20, w20, w8, eq
	csel	x8, x10, x9, eq
LBB0_13:
	ldr	w24, [x8]
Lloh22:
	adrp	x8, _SND_SOC_DAIFMT_MSB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MSB@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _SND_SOC_DAIFMT_NB_NF@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SND_SOC_DAIFMT_NB_NF@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x25, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGE
Lloh29:
	ldr	x25, [x25, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x23
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_20
; %bb.14:
Lloh30:
	adrp	x8, _SND_SOC_DAIFMT_DSP_A@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SND_SOC_DAIFMT_DSP_A@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _SND_SOC_DAIFMT_NB_IF@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SND_SOC_DAIFMT_NB_IF@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_20
; %bb.15:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	w3, #1
	mov	x4, x22
	bl	_snd_soc_dai_set_tdm_slot
	tbnz	w0, #31, LBB0_20
; %bb.16:
Lloh36:
	adrp	x8, _PXA_SSP_CLK_AUDIO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PXA_SSP_CLK_AUDIO@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _SND_SOC_CLOCK_OUT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SND_SOC_CLOCK_OUT@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_soc_dai_set_sysclk
	tbnz	w0, #31, LBB0_20
; %bb.17:
Lloh42:
	adrp	x8, _PXA_SSP_AUDIO_DIV_ACDS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PXA_SSP_AUDIO_DIV_ACDS@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	bl	_snd_soc_dai_set_clkdiv
	tbnz	w0, #31, LBB0_20
; %bb.18:
Lloh45:
	adrp	x8, _PXA_SSP_AUDIO_DIV_SCDB@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PXA_SSP_AUDIO_DIV_SCDB@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_dai_set_clkdiv
	tbnz	w0, #31, LBB0_20
; %bb.19:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	x3, x21
	bl	_snd_soc_dai_set_pll
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_PXA_SSP_CLK_SCDB_4,4,2         ; @PXA_SSP_CLK_SCDB_4
	.comm	_PXA_SSP_CLK_AUDIO_DIV_16,4,2   ; @PXA_SSP_CLK_AUDIO_DIV_16
	.comm	_PXA_SSP_CLK_AUDIO_DIV_8,4,2    ; @PXA_SSP_CLK_AUDIO_DIV_8
	.comm	_PXA_SSP_CLK_AUDIO_DIV_4,4,2    ; @PXA_SSP_CLK_AUDIO_DIV_4
	.comm	_PXA_SSP_CLK_AUDIO_DIV_2,4,2    ; @PXA_SSP_CLK_AUDIO_DIV_2
	.comm	_PXA_SSP_CLK_AUDIO_DIV_1,4,2    ; @PXA_SSP_CLK_AUDIO_DIV_1
	.comm	_PXA_SSP_CLK_SCDB_1,4,2         ; @PXA_SSP_CLK_SCDB_1
	.comm	_SND_SOC_DAIFMT_MSB,4,2         ; @SND_SOC_DAIFMT_MSB
	.comm	_SND_SOC_DAIFMT_NB_NF,4,2       ; @SND_SOC_DAIFMT_NB_NF
	.comm	_SND_SOC_DAIFMT_CBS_CFS,4,2     ; @SND_SOC_DAIFMT_CBS_CFS
	.comm	_SND_SOC_DAIFMT_DSP_A,4,2       ; @SND_SOC_DAIFMT_DSP_A
	.comm	_SND_SOC_DAIFMT_NB_IF,4,2       ; @SND_SOC_DAIFMT_NB_IF
	.comm	_PXA_SSP_CLK_AUDIO,4,2          ; @PXA_SSP_CLK_AUDIO
	.comm	_SND_SOC_CLOCK_OUT,4,2          ; @SND_SOC_CLOCK_OUT
	.comm	_PXA_SSP_AUDIO_DIV_ACDS,4,2     ; @PXA_SSP_AUDIO_DIV_ACDS
	.comm	_PXA_SSP_AUDIO_DIV_SCDB,4,2     ; @PXA_SSP_AUDIO_DIV_SCDB
	.no_dead_strip	_magician_playback_hw_params
.subsections_via_symbols
