	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_ssp_set_dai_fmt
_pxa_ssp_set_dai_fmt:                   ## @pxa_ssp_set_dai_fmt
	.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	(%rdi), %r13
	xorl	%eax, %eax
	cmpl	%esi, (%r13)
	je	LBB0_21
## %bb.1:
	movl	%esi, %r12d
	movq	8(%r13), %r14
	movq	_SSCR0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ssp_read_reg
	movq	_SSCR0_SSE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ssp_read_reg
	movq	_SSCR0_ECS@GOTPCREL(%rip), %rcx
	movq	_SSCR0_NCS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	orl	(%rcx), %r15d
	movq	_SSCR0_MOD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SSCR0_ACS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	$8, %edi
	callq	_SSCR1_RxTresh
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_SSCR1_TxTresh
	movl	%eax, %esi
	orl	%ebx, %esi
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	cmpl	$135, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$136, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$137, %eax
	jne	LBB0_3
## %bb.7:
	movq	_SSCR1_SCLKDIR@GOTPCREL(%rip), %rax
	movq	_SSCR1_SFRMDIR@GOTPCREL(%rip), %rcx
	orl	(%rax), %esi
	orl	(%rcx), %esi
	jmp	LBB0_9
LBB0_8:
	movq	_SSCR1_SCLKDIR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_9:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r12d, %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_3
## %bb.10:
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_13:
	movq	_SSPSP_SFRMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_12:
	movl	$2, %edi
	movl	%esi, %ebx
	callq	_SSPSP_SCMODE
	movl	%ebx, %esi
	movq	_SSPSP_SFRMP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_14
LBB0_11:
	movl	$2, %edi
	movl	%esi, %ebx
	callq	_SSPSP_SCMODE
	movl	%ebx, %esi
LBB0_14:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r12d, %ecx
	cmpl	$134, %ecx
	je	LBB0_18
## %bb.15:
	cmpl	$133, %ecx
	je	LBB0_19
## %bb.16:
	cmpl	$132, %ecx
	jne	LBB0_3
## %bb.17:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SSCR0_PSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SSCR1_TRAIL@GOTPCREL(%rip), %rdx
	movq	_SSCR1_RWOT@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_18:
	movq	_SSPSP_FSRT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_19:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SSCR0_PSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SSCR0_MOD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SSCR1_RWOT@GOTPCREL(%rip), %rdx
	movq	_SSCR1_TRAIL@GOTPCREL(%rip), %rcx
LBB0_20:
	andl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	orl	%eax, %r15d
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	orl	%esi, %ebx
	movq	_SSCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ssp_write_reg
	movq	_SSCR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ssp_write_reg
	movq	_SSPSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ssp_write_reg
	movq	%r14, %rdi
	callq	_dump_registers
	movl	%r12d, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_SSCR0,4,2                      ## @SSCR0
	.comm	_SSCR0_SSE,4,2                  ## @SSCR0_SSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't change hardware dai format: stream is in use"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SSCR0_ECS,4,2                  ## @SSCR0_ECS
	.comm	_SSCR0_NCS,4,2                  ## @SSCR0_NCS
	.comm	_SSCR0_MOD,4,2                  ## @SSCR0_MOD
	.comm	_SSCR0_ACS,4,2                  ## @SSCR0_ACS
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_SSCR1_SCLKDIR,4,2              ## @SSCR1_SCLKDIR
	.comm	_SSCR1_SFRMDIR,4,2              ## @SSCR1_SFRMDIR
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ## @SND_SOC_DAIFMT_INV_MASK
	.comm	_SSPSP_SFRMP,4,2                ## @SSPSP_SFRMP
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_SSCR0_PSP,4,2                  ## @SSCR0_PSP
	.comm	_SSCR1_RWOT,4,2                 ## @SSCR1_RWOT
	.comm	_SSCR1_TRAIL,4,2                ## @SSCR1_TRAIL
	.comm	_SSPSP_FSRT,4,2                 ## @SSPSP_FSRT
	.comm	_SSCR1,4,2                      ## @SSCR1
	.comm	_SSPSP,4,2                      ## @SSPSP
	.no_dead_strip	_pxa_ssp_set_dai_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa_ssp_set_dai_fmt
_pxa_ssp_set_dai_fmt:                   ; @pxa_ssp_set_dai_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x23, [x0]
	ldr	w8, [x23]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x1
	ldr	x20, [x23, #8]
Lloh0:
	adrp	x24, _SSCR0@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SSCR0@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_ssp_read_reg
Lloh2:
	adrp	x8, _SSCR0_SSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSCR0_SSE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:
	ldr	x0, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_ssp_read_reg
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh10:
	adrp	x8, _SSCR0_ECS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSCR0_ECS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
Lloh13:
	adrp	x8, _SSCR0_NCS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSCR0_NCS@GOTPAGEOFF]
Lloh15:
	ldr	w26, [x8]
Lloh16:
	adrp	x25, _SSCR0_MOD@GOTPAGE
Lloh17:
	ldr	x25, [x25, _SSCR0_MOD@GOTPAGEOFF]
	ldr	w27, [x25]
Lloh18:
	adrp	x8, _SSCR0_ACS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSCR0_ACS@GOTPAGEOFF]
Lloh20:
	ldr	w28, [x8]
	mov	w0, #8
	bl	_SSCR1_RxTresh
	mov	x22, x0
	mov	w0, #7
	bl	_SSCR1_TxTresh
	orr	w21, w0, w22
Lloh21:
	adrp	x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w8, w8, w19
	cmp	w8, #135
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, #136
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #137
	b.ne	LBB0_4
; %bb.9:
Lloh24:
	adrp	x8, _SSCR1_SCLKDIR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSCR1_SCLKDIR@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _SSCR1_SFRMDIR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SSCR1_SFRMDIR@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w21
	orr	w21, w8, w9
	b	LBB0_11
LBB0_10:
Lloh30:
	adrp	x8, _SSCR1_SCLKDIR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSCR1_SCLKDIR@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_11:
Lloh33:
	adrp	x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w8, w8, w19
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.12:
	mov	w22, #0
Lloh36:
	adrp	x9, lJTI0_0@PAGE
Lloh37:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
Lloh38:
	adrp	x8, _SSPSP_SFRMP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SSPSP_SFRMP@GOTPAGEOFF]
Lloh40:
	ldr	w22, [x8]
	b	LBB0_16
LBB0_14:
	mov	w0, #2
	bl	_SSPSP_SCMODE
Lloh41:
	adrp	x8, _SSPSP_SFRMP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SSPSP_SFRMP@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	orr	w22, w8, w0
	b	LBB0_16
LBB0_15:
	mov	w0, #2
	bl	_SSPSP_SCMODE
	mov	x22, x0
LBB0_16:
Lloh44:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	and	w8, w8, w19
	cmp	w8, #134
	b.eq	LBB0_20
; %bb.17:
	cmp	w8, #133
	b.eq	LBB0_21
; %bb.18:
	cmp	w8, #132
	b.ne	LBB0_4
; %bb.19:
Lloh47:
	adrp	x8, _SSCR0_PSP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SSCR0_PSP@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _SSCR1_TRAIL@GOTPAGE
Lloh51:
	ldr	x9, [x9, _SSCR1_TRAIL@GOTPAGEOFF]
Lloh52:
	adrp	x10, _SSCR1_RWOT@GOTPAGE
Lloh53:
	ldr	x10, [x10, _SSCR1_RWOT@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
Lloh54:
	adrp	x8, _SSPSP_FSRT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SSPSP_FSRT@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_21:
	ldr	w8, [x25]
Lloh57:
	adrp	x9, _SSCR0_PSP@GOTPAGE
Lloh58:
	ldr	x9, [x9, _SSCR0_PSP@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh60:
	adrp	x9, _SSCR1_RWOT@GOTPAGE
Lloh61:
	ldr	x9, [x9, _SSCR1_RWOT@GOTPAGEOFF]
Lloh62:
	adrp	x10, _SSCR1_TRAIL@GOTPAGE
Lloh63:
	ldr	x10, [x10, _SSCR1_TRAIL@GOTPAGEOFF]
LBB0_22:
	ldp	w11, w12, [sp, #8]              ; 8-byte Folded Reload
	orr	w11, w26, w11
	orr	w11, w11, w27
	orr	w11, w11, w28
	and	w11, w11, w12
	ldr	w10, [x10]
	ldr	w9, [x9]
	orr	w9, w9, w10
	orr	w21, w9, w21
	orr	w2, w8, w11
	ldr	w1, [x24]
	mov	x0, x20
	bl	_ssp_write_reg
Lloh64:
	adrp	x8, _SSCR1@GOTPAGE
Lloh65:
	ldr	x8, [x8, _SSCR1@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_ssp_write_reg
Lloh67:
	adrp	x8, _SSPSP@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SSPSP@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_ssp_write_reg
	mov	x0, x20
	bl	_dump_registers
	mov	w0, #0
	str	w19, [x23]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_16-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_15-LBB0_13)>>2
                                        ; -- End function
	.comm	_SSCR0,4,2                      ; @SSCR0
	.comm	_SSCR0_SSE,4,2                  ; @SSCR0_SSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't change hardware dai format: stream is in use"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SSCR0_ECS,4,2                  ; @SSCR0_ECS
	.comm	_SSCR0_NCS,4,2                  ; @SSCR0_NCS
	.comm	_SSCR0_MOD,4,2                  ; @SSCR0_MOD
	.comm	_SSCR0_ACS,4,2                  ; @SSCR0_ACS
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_SSCR1_SCLKDIR,4,2              ; @SSCR1_SCLKDIR
	.comm	_SSCR1_SFRMDIR,4,2              ; @SSCR1_SFRMDIR
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ; @SND_SOC_DAIFMT_INV_MASK
	.comm	_SSPSP_SFRMP,4,2                ; @SSPSP_SFRMP
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_SSCR0_PSP,4,2                  ; @SSCR0_PSP
	.comm	_SSCR1_RWOT,4,2                 ; @SSCR1_RWOT
	.comm	_SSCR1_TRAIL,4,2                ; @SSCR1_TRAIL
	.comm	_SSPSP_FSRT,4,2                 ; @SSPSP_FSRT
	.comm	_SSCR1,4,2                      ; @SSCR1
	.comm	_SSPSP,4,2                      ; @SSPSP
	.no_dead_strip	_pxa_ssp_set_dai_fmt
.subsections_via_symbols
