	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_ssp_set_dai_sysclk
_pxa_ssp_set_dai_sysclk:                ## @pxa_ssp_set_dai_sysclk
	.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
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	movq	_SSCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ssp_read_reg
	movl	%eax, %r14d
	movq	_SSCR0_ECS@GOTPCREL(%rip), %rax
	movq	_SSCR0_NCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_SSCR0_MOD@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_SSCR0_ACS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rdi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, %r13d
	callq	_dev_dbg
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_10
## %bb.1:
	notl	%r15d
	andl	%r15d, %r14d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	movl	%r14d, %r12d
	jmpq	*%rcx
LBB0_3:
	xorl	%eax, %eax
	callq	_cpu_is_pxa25x
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	$1843200, (%r14)                ## imm = 0x1C2000
	jmp	LBB0_8
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_16
LBB0_2:
	movq	_SSCR0_MOD@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, (%r14)
	movq	_SSCR0_NCS@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_SSCR0_MOD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, (%r14)
	movq	_SSCR0_ECS@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %r12d
LBB0_8:
	movq	_SSCR0@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_12:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_cpu_is_pxa3xx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_clk_disable
LBB0_14:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_ssp_read_reg
	orl	%eax, %r12d
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_ssp_write_reg
	xorl	%eax, %eax
	callq	_cpu_is_pxa3xx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_clk_enable
LBB0_16:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	$0, (%r14)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_ssp_set_scr
	movq	_SSCR0_ACS@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_SSCR0@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	$13000000, (%r14)               ## imm = 0xC65D40
	jmp	LBB0_8
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_SSCR0,4,2                      ## @SSCR0
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pxa_ssp_set_dai_sysclk id: %d, clk_id %d, freq %u\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_pxa_ssp_set_dai_sysclk
.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_sysclk
_pxa_ssp_set_dai_sysclk:                ; @pxa_ssp_set_dai_sysclk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x24, [x0, #8]
	ldr	x19, [x24, #8]
Lloh0:
	adrp	x8, _SSCR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSCR0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ssp_read_reg
	mov	x21, x0
Lloh3:
	adrp	x8, _SSCR0_ECS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSCR0_ECS@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x8, _SSCR0_NCS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSCR0_NCS@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
Lloh9:
	adrp	x8, _SSCR0_MOD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSCR0_MOD@GOTPAGEOFF]
Lloh11:
	ldr	w25, [x8]
Lloh12:
	adrp	x8, _SSCR0_ACS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSCR0_ACS@GOTPAGEOFF]
Lloh14:
	ldr	w28, [x8]
	ldr	x0, [x19, #8]
	ldr	w2, [x23]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x22
	mov	x4, x20
	bl	_dev_dbg
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.1:
	orr	w9, w27, w26
	orr	w9, w9, w25
	orr	w9, w9, w28
	bic	w21, w21, w9
Lloh17:
	adrp	x9, lJTI0_0@PAGE
Lloh18:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	bl	_cpu_is_pxa25x
	cbz	w0, LBB0_16
; %bb.3:
	mov	w8, #8192
	movk	w8, #28, lsl #16
	str	w8, [x24]
	b	LBB0_10
LBB0_4:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_5:
Lloh22:
	adrp	x8, _SSCR0_MOD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSCR0_MOD@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	str	w20, [x24]
Lloh24:
	adrp	x8, _SSCR0_NCS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSCR0_NCS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _SSCR0_MOD@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SSCR0_MOD@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w21
	orr	w21, w8, w9
	b	LBB0_10
LBB0_7:
	str	w20, [x24]
Lloh30:
	adrp	x8, _SSCR0_ECS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSCR0_ECS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	str	wzr, [x24]
	mov	x0, x19
	mov	w1, #1
	bl	_ssp_set_scr
Lloh32:
	adrp	x8, _SSCR0_ACS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SSCR0_ACS@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_10:
Lloh34:
	adrp	x20, _SSCR0@GOTPAGE
Lloh35:
	ldr	x20, [x20, _SSCR0@GOTPAGEOFF]
	bl	_cpu_is_pxa3xx
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	bl	_clk_disable
LBB0_12:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ssp_read_reg
	orr	w2, w0, w21
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ssp_write_reg
	bl	_cpu_is_pxa3xx
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	bl	_clk_enable
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w8, #23872
	movk	w8, #198, lsl #16
	str	w8, [x24]
	b	LBB0_10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_SSCR0,4,2                      ; @SSCR0
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pxa_ssp_set_dai_sysclk id: %d, clk_id %d, freq %u\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_pxa_ssp_set_dai_sysclk
.subsections_via_symbols
