	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_ssp_set_dai_clkdiv
_pxa_ssp_set_dai_clkdiv:                ## @pxa_ssp_set_dai_clkdiv
	.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
	movl	%edx, %r15d
	movq	(%rdi), %rax
	movq	(%rax), %r14
	cmpl	$128, %esi
	je	LBB0_10
## %bb.1:
	cmpl	$132, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$133, %esi
	jne	LBB0_11
## %bb.3:
	movq	_SSACD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ssp_read_reg
	movl	%eax, %ebx
	andl	$-8, %ebx
	movl	%r15d, %edi
	callq	_SSACD_ACDS
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	jmp	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ssp_set_scr
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	movq	_SSACD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ssp_read_reg
	movq	_SSACD_SCDB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$130, %r15d
	je	LBB0_5
## %bb.6:
	cmpl	$131, %r15d
	jne	LBB0_14
## %bb.7:
	orl	%ecx, %eax
	jmp	LBB0_8
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_5:
	notl	%ecx
	andl	%ecx, %eax
LBB0_8:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
LBB0_9:
	callq	_ssp_write_reg
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSACD,4,2                      ## @SSACD
	.comm	_SSACD_SCDB,4,2                 ## @SSACD_SCDB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SSACD_SCDX8,4,2                ## @SSACD_SCDX8
	.no_dead_strip	_pxa_ssp_set_dai_clkdiv
.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_clkdiv
_pxa_ssp_set_dai_clkdiv:                ; @pxa_ssp_set_dai_clkdiv
	.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	x20, x2
	ldr	x8, [x0]
	ldr	x19, [x8]
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #132
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #133
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x21, _SSACD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SSACD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ssp_read_reg
	and	w22, w0, #0xfffffff8
	mov	x0, x20
	bl	_SSACD_ACDS
	orr	w2, w22, w0
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_ssp_set_scr
	mov	w0, #0
	b	LBB0_13
LBB0_5:
Lloh2:
	adrp	x21, _SSACD@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SSACD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ssp_read_reg
Lloh4:
	adrp	x8, _SSACD_SCDB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SSACD_SCDB@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w20, #130
	b.eq	LBB0_9
; %bb.6:
	cmp	w20, #131
	b.ne	LBB0_11
; %bb.7:
	orr	w2, w8, w0
	b	LBB0_10
LBB0_8:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	bic	w2, w0, w8
LBB0_10:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ssp_write_reg
	mov	w0, #0
	b	LBB0_13
LBB0_11:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SSACD,4,2                      ; @SSACD
	.comm	_SSACD_SCDB,4,2                 ; @SSACD_SCDB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SSACD_SCDX8,4,2                ; @SSACD_SCDX8
	.no_dead_strip	_pxa_ssp_set_dai_clkdiv
.subsections_via_symbols
