	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_ssp_hw_params
_pxa_ssp_hw_params:                     ## @pxa_ssp_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
	subq	$24, %rsp
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	movq	%rsi, %rdi
	callq	_params_channels
	movl	%eax, %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_params_format
	movl	%eax, %edi
	callq	_snd_pcm_format_physical_width
	movl	%eax, %r15d
	movq	_SSTSA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ssp_read_reg
	andl	$15, %eax
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	%r13d, %ebx
	movq	%r15, %r13
	movq	%r12, %r15
	movl	%eax, %r12d
	callq	_kfree
	movl	%r12d, %eax
	movq	%r15, %r12
	movq	%r13, %r15
	movl	%ebx, %r13d
LBB0_2:
	cmpl	$2, %r13d
	sete	%dl
	cmpl	$1, %eax
	movl	%eax, %r13d
	setne	%cl
	andb	%dl, %cl
	cmpl	$32, %r15d
	sete	%al
	orb	%cl, %al
	movzbl	%al, %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	%r12, %rdi
	callq	_ssp_get_dma_params
	movq	%rax, (%r14)
	movq	_SSCR0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ssp_read_reg
	movq	_SSCR0_SSE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	testl	%eax, (%rcx)
	jne	LBB0_19
## %bb.3:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ssp_read_reg
	movq	_SSCR0_DSS@GOTPCREL(%rip), %rcx
	movq	_SSCR0_EDSS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ssp_write_reg
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ssp_read_reg
	movl	%eax, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_params_format
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$131, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_10
## %bb.6:
	movl	$16, %edi
	callq	_SSCR0_DataSize
	orl	%eax, %r13d
	jmp	LBB0_10
LBB0_8:
	movl	(%rbx), %ebx
	orl	%r13d, %ebx
	movl	$16, %edi
	jmp	LBB0_9
LBB0_7:
	movl	(%rbx), %ebx
	orl	%r13d, %ebx
	movl	$8, %edi
LBB0_9:
	callq	_SSCR0_DataSize
	movl	%eax, %r13d
	orl	%ebx, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_ssp_write_reg
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.11:
	movq	_SSPSP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ssp_read_reg
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_ssp_get_scr
	cmpl	$4, %eax
	jne	LBB0_14
## %bb.12:
	cmpl	$16, %r15d
	je	LBB0_13
LBB0_14:
	leal	1(%r15), %edi
	callq	_SSPSP_SFRMWDTH
	orl	%eax, %ebx
	leal	(%r15,%r15), %edi
	addl	$2, %edi
	callq	_SSPSP_SFRMDLY
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_SSPSP_DMYSTRT
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_ssp_write_reg
LBB0_15:
	movq	_SSCR0_MOD@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_18
## %bb.16:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.17:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
	jmp	LBB0_19
LBB0_18:
	movq	%r12, %rdi
	callq	_dump_registers
	xorl	%edx, %edx
LBB0_19:
	movl	%edx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSTSA,4,2                      ## @SSTSA
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SSCR0,4,2                      ## @SSCR0
	.comm	_SSCR0_SSE,4,2                  ## @SSCR0_SSE
	.comm	_SSCR0_DSS,4,2                  ## @SSCR0_DSS
	.comm	_SSCR0_EDSS,4,2                 ## @SSCR0_EDSS
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_SSPSP,4,2                      ## @SSPSP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SSCR0_MOD,4,2                  ## @SSCR0_MOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No TDM timeslot configured\n"

	.comm	_SSCR0_FPCKE,4,2                ## @SSCR0_FPCKE
	.no_dead_strip	_pxa_ssp_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa_ssp_hw_params
_pxa_ssp_hw_params:                     ; @pxa_ssp_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	x22, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x26, [x8]
	ldr	x25, [x26, #8]
	ldr	x19, [x25, #8]
	mov	x0, x1
	bl	_params_channels
	mov	x23, x0
	mov	x0, x22
	bl	_params_format
	bl	_snd_pcm_format_physical_width
	mov	x20, x0
Lloh0:
	adrp	x8, _SSTSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSTSA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ssp_read_reg
	and	w24, w0, #0xf
	ldr	x0, [x26]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_kfree
LBB0_2:
	cmp	w23, #2
	ccmp	w24, #1, #4, eq
	mov	w8, #32
	ccmp	w20, w8, #4, eq
	cset	w1, eq
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w2, eq
	mov	x0, x19
	bl	_ssp_get_dma_params
	str	x0, [x26]
Lloh6:
	adrp	x23, _SSCR0@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SSCR0@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ssp_read_reg
Lloh8:
	adrp	x8, _SSCR0_SSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSCR0_SSE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_18
LBB0_4:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ssp_read_reg
Lloh11:
	adrp	x8, _SSCR0_DSS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSCR0_DSS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x26, _SSCR0_EDSS@GOTPAGE
Lloh15:
	ldr	x26, [x26, _SSCR0_EDSS@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ssp_write_reg
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ssp_read_reg
	mov	x21, x0
	mov	x0, x22
	bl	_params_format
	cmp	w0, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w0, #130
	b.eq	LBB0_9
; %bb.6:
	cmp	w0, #131
	b.ne	LBB0_11
; %bb.7:
	mov	w0, #16
	bl	_SSCR0_DataSize
	orr	w21, w0, w21
	b	LBB0_11
LBB0_8:
	ldr	w22, [x26]
	mov	w0, #16
	b	LBB0_10
LBB0_9:
	ldr	w22, [x26]
	mov	w0, #8
LBB0_10:
	bl	_SSCR0_DataSize
	orr	w8, w22, w21
	orr	w21, w8, w0
LBB0_11:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_ssp_write_reg
	ldr	w8, [x25]
Lloh16:
	adrp	x9, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.12:
Lloh19:
	adrp	x23, _SSPSP@GOTPAGE
Lloh20:
	ldr	x23, [x23, _SSPSP@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ssp_read_reg
	mov	x22, x0
	mov	x0, x19
	bl	_ssp_get_scr
	cmp	w0, #4
	ccmp	w20, #16, #0, eq
	b.eq	LBB0_17
; %bb.13:
	add	w20, w20, #1
	mov	x0, x20
	bl	_SSPSP_SFRMWDTH
	orr	w22, w0, w22
	lsl	w0, w20, #1
	bl	_SSPSP_SFRMDLY
	orr	w20, w22, w0
	mov	w0, #1
	bl	_SSPSP_DMYSTRT
	orr	w2, w20, w0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ssp_write_reg
LBB0_14:
Lloh21:
	adrp	x8, _SSCR0_MOD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSCR0_MOD@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, #0
	ccmp	w24, #0, #0, ne
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_dump_registers
	b	LBB0_3
LBB0_16:
	ldr	x0, [x19]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_17:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SSTSA,4,2                      ; @SSTSA
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SSCR0,4,2                      ; @SSCR0
	.comm	_SSCR0_SSE,4,2                  ; @SSCR0_SSE
	.comm	_SSCR0_DSS,4,2                  ; @SSCR0_DSS
	.comm	_SSCR0_EDSS,4,2                 ; @SSCR0_EDSS
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_SSPSP,4,2                      ; @SSPSP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SSCR0_MOD,4,2                  ; @SSCR0_MOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No TDM timeslot configured\n"

	.comm	_SSCR0_FPCKE,4,2                ; @SSCR0_FPCKE
	.no_dead_strip	_pxa_ssp_hw_params
.subsections_via_symbols
