	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_output_clock
_set_output_clock:                      ## @set_output_clock
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movslq	%esi, %rbx
	movq	%rbx, %rdi
	callq	_DE_ACT
	cmpl	$129, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r14d
	jne	LBB0_7
## %bb.3:
	movq	_LAYLA20_OUTPUT_CLOCK_WORD@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_LAYLA20_OUTPUT_CLOCK_SUPER@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_wait_handshake
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_DE_ACT
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movl	%r14d, (%r15)
	movq	%r15, %rdi
	callq	_clear_handshake
	movq	_DSP_VC_UPDATE_CLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_vector                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LAYLA20_OUTPUT_CLOCK_SUPER,4,2 ## @LAYLA20_OUTPUT_CLOCK_SUPER
	.comm	_LAYLA20_OUTPUT_CLOCK_WORD,4,2  ## @LAYLA20_OUTPUT_CLOCK_WORD
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"set_output_clock wrong clock\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DSP_VC_UPDATE_CLOCKS,4,2       ## @DSP_VC_UPDATE_CLOCKS
	.no_dead_strip	_set_output_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_output_clock
_set_output_clock:                      ; @set_output_clock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	sxtw	x0, w20
	bl	_DE_ACT
	cmp	w20, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _LAYLA20_OUTPUT_CLOCK_WORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LAYLA20_OUTPUT_CLOCK_WORD@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _LAYLA20_OUTPUT_CLOCK_SUPER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LAYLA20_OUTPUT_CLOCK_SUPER@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_wait_handshake
	cbz	x0, LBB0_8
; %bb.5:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DE_ACT
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	str	w0, [x8]
	str	w20, [x19]
	mov	x0, x19
	bl	_clear_handshake
Lloh10:
	adrp	x8, _DSP_VC_UPDATE_CLOCKS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DSP_VC_UPDATE_CLOCKS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_send_vector
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LAYLA20_OUTPUT_CLOCK_SUPER,4,2 ; @LAYLA20_OUTPUT_CLOCK_SUPER
	.comm	_LAYLA20_OUTPUT_CLOCK_WORD,4,2  ; @LAYLA20_OUTPUT_CLOCK_WORD
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"set_output_clock wrong clock\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DSP_VC_UPDATE_CLOCKS,4,2       ; @DSP_VC_UPDATE_CLOCKS
	.no_dead_strip	_set_output_clock
.subsections_via_symbols
