	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rme9652_set_interrupt_interval
_rme9652_set_interrupt_interval:        ## @rme9652_set_interrupt_interval
	.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	%esi, %ebx
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	(%r15), %r12d
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_rme9652_stop
LBB0_2:
	xorl	%edi, %edi
	cmpl	$128, %ebx
	jb	LBB0_5
## %bb.3:
	shrl	$7, %ebx
	xorl	%edi, %edi
	movl	%ebx, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incl	%edi
	shrl	%eax
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_4
LBB0_5:
	movq	_RME9652_latency@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r15)
	callq	_rme9652_encode_latency
	orl	8(%r15), %eax
	movl	%eax, 8(%r15)
	movq	_RME9652_control_register@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_rme9652_write
	movq	%r15, %rdi
	callq	_rme9652_compute_period_size
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_rme9652_start
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RME9652_latency,4,2            ## @RME9652_latency
	.comm	_RME9652_control_register,4,2   ## @RME9652_control_register
	.no_dead_strip	_rme9652_set_interrupt_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rme9652_set_interrupt_interval
_rme9652_set_interrupt_interval:        ; @rme9652_set_interrupt_interval
	.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	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w22, [x20]
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_rme9652_stop
LBB0_2:
	cmp	w21, #128
	b.hs	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	lsr	w8, w21, #7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w0, #1
	lsr	w9, w8, #1
	cmp	w8, #1
	mov	x8, x9
	b.hi	LBB0_5
LBB0_6:
Lloh0:
	adrp	x8, _RME9652_latency@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RME9652_latency@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	str	w8, [x20, #8]
	bl	_rme9652_encode_latency
	ldr	w8, [x20, #8]
	orr	w2, w8, w0
	str	w2, [x20, #8]
Lloh3:
	adrp	x8, _RME9652_control_register@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RME9652_control_register@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rme9652_write
	mov	x0, x20
	bl	_rme9652_compute_period_size
	cbz	w22, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_rme9652_start
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RME9652_latency,4,2            ; @RME9652_latency
	.comm	_RME9652_control_register,4,2   ; @RME9652_control_register
	.no_dead_strip	_rme9652_set_interrupt_interval
.subsections_via_symbols
