	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcxhr_clock_rate_get
_pcxhr_clock_rate_get:                  ## @pcxhr_clock_rate_get
	.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, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	leaq	8(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpl	$-2, (%r12)
	jl	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	movq	_PCXHR_CLOCK_TYPE_INTERNAL@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %eax
	movl	%eax, -44(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	leaq	1(%rbx), %rax
	movslq	(%r12), %rcx
	addq	$2, %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_pcxhr_get_external_clock
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax
	jmp	LBB0_6
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCXHR_CLOCK_TYPE_INTERNAL,4,2  ## @PCXHR_CLOCK_TYPE_INTERNAL
	.no_dead_strip	_pcxhr_clock_rate_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcxhr_clock_rate_get
_pcxhr_clock_rate_get:                  ; @pcxhr_clock_rate_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	bl	_snd_kcontrol_chip
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x21]
	cmn	w8, #2
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
Lloh0:
	adrp	x23, _PCXHR_CLOCK_TYPE_INTERNAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PCXHR_CLOCK_TYPE_INTERNAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #4]
	str	w8, [sp, #12]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19]
	str	w8, [x9, x22, lsl #2]
	add	x8, x22, #1
	ldrsw	x9, [x21]
	add	x9, x9, #2
	cmp	x22, x9
	mov	x22, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	x22, x8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_pcxhr_get_external_clock
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	b	LBB0_3
LBB0_7:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCXHR_CLOCK_TYPE_INTERNAL,4,2  ; @PCXHR_CLOCK_TYPE_INTERNAL
	.no_dead_strip	_pcxhr_clock_rate_get
.subsections_via_symbols
