	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_interval_refine            ## -- Begin function snd_interval_refine
	.p2align	4, 0x90
_snd_interval_refine:                   ## @snd_interval_refine
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_interval_empty
	movl	%eax, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_28
## %bb.1:
	movq	(%rbx), %rcx
	movq	(%r15), %rax
	cmpq	%rax, %rcx
	jge	LBB0_3
## %bb.2:
	movq	%rax, (%rbx)
	movl	8(%r15), %ecx
	movl	%ecx, 8(%rbx)
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_3:
	xorl	%r14d, %r14d
	cmpq	%rax, %rcx
	jne	LBB0_7
## %bb.4:
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
## %bb.5:
	cmpl	$0, 8(%r15)
	je	LBB0_7
## %bb.6:
	movl	$1, 8(%rbx)
	movl	$1, %r14d
LBB0_7:
	movq	%rcx, %rax
LBB0_8:
	movq	16(%rbx), %rdx
	movq	16(%r15), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_10
## %bb.9:
	movq	%rcx, 16(%rbx)
	movl	24(%r15), %edx
	movl	%edx, 24(%rbx)
	movl	$1, %r14d
	cmpl	$0, 28(%rbx)
	je	LBB0_16
LBB0_18:
	cmpl	$0, 8(%rbx)
	je	LBB0_20
LBB0_19:
	incq	%rax
	movq	%rax, (%rbx)
	movl	$0, 8(%rbx)
LBB0_20:
	cmpl	$0, 24(%rbx)
	je	LBB0_26
## %bb.21:
	decq	%rcx
	movq	%rcx, 16(%rbx)
	movl	$0, 24(%rbx)
LBB0_26:
	movq	%rbx, %rdi
	callq	_snd_interval_checkempty
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	movq	%rbx, %rdi
	callq	_snd_interval_none
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	jne	LBB0_14
## %bb.11:
	cmpl	$0, 24(%rbx)
	jne	LBB0_14
## %bb.12:
	cmpl	$0, 24(%r15)
	je	LBB0_14
## %bb.13:
	movl	$1, 24(%rbx)
	movl	$1, %r14d
LBB0_14:
	movq	%rdx, %rcx
	cmpl	$0, 28(%rbx)
	jne	LBB0_18
LBB0_16:
	cmpl	$0, 28(%r15)
	je	LBB0_22
## %bb.17:
	movl	$1, 28(%rbx)
	movl	$1, %r14d
	cmpl	$0, 8(%rbx)
	jne	LBB0_19
	jmp	LBB0_20
LBB0_22:
	cmpl	$0, 8(%rbx)
	jne	LBB0_26
## %bb.23:
	cmpl	$0, 24(%rbx)
	jne	LBB0_26
## %bb.24:
	cmpq	%rcx, %rax
	jne	LBB0_26
## %bb.25:
	movl	$1, 28(%rbx)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_interval_refine            ; -- Begin function snd_interval_refine
	.p2align	2
_snd_interval_refine:                   ; @snd_interval_refine
	.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	x19, x0
	bl	_snd_interval_empty
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_19
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
	str	x9, [x19]
	ldr	w8, [x21, #8]
	str	w8, [x19, #8]
	mov	w20, #1
	mov	x8, x9
	b	LBB0_6
LBB0_3:
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_27
LBB0_5:
	mov	w20, #0
LBB0_6:
	ldr	x9, [x19, #16]
	ldr	x10, [x21, #16]
	cmp	x9, x10
	b.le	LBB0_8
; %bb.7:
	str	x10, [x19, #16]
	ldr	w9, [x21, #24]
	str	w9, [x19, #24]
	mov	w20, #1
	mov	x9, x10
	b	LBB0_12
LBB0_8:
	b.ne	LBB0_12
; %bb.9:
	ldr	w10, [x19, #24]
	cbnz	w10, LBB0_12
; %bb.10:
	ldr	w10, [x21, #24]
	cbz	w10, LBB0_12
; %bb.11:
	mov	w20, #1
	str	w20, [x19, #24]
LBB0_12:
	ldr	w10, [x19, #28]
	cbz	w10, LBB0_21
; %bb.13:
	ldr	w10, [x19, #8]
	cbz	w10, LBB0_15
LBB0_14:
	add	x8, x8, #1
	str	x8, [x19]
	str	wzr, [x19, #8]
LBB0_15:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_17
; %bb.16:
	sub	x8, x9, #1
	str	x8, [x19, #16]
	str	wzr, [x19, #24]
LBB0_17:
	mov	x0, x19
	bl	_snd_interval_checkempty
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x19
	bl	_snd_interval_none
LBB0_19:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_20:
	mov	x0, x20
	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
LBB0_21:
	ldr	w10, [x21, #28]
	cbz	w10, LBB0_23
; %bb.22:
	mov	w20, #1
	str	w20, [x19, #28]
	ldr	w10, [x19, #8]
	cbnz	w10, LBB0_14
	b	LBB0_15
LBB0_23:
	ldr	w10, [x19, #8]
	cbnz	w10, LBB0_17
; %bb.24:
	ldr	w10, [x19, #24]
	cbnz	w10, LBB0_17
; %bb.25:
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.26:
	mov	w8, #1
	str	w8, [x19, #28]
	b	LBB0_17
LBB0_27:
	ldr	w9, [x21, #8]
	cbz	w9, LBB0_5
; %bb.28:
	mov	w20, #1
	str	w20, [x19, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
