	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_interval_refine_max
_snd_interval_refine_max:               ## @snd_interval_refine_max
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	%esi, %eax
	jbe	LBB0_2
## %bb.1:
	movl	%esi, (%rbx)
	movl	%edx, 4(%rbx)
LBB0_7:
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_2:
	xorl	%r14d, %r14d
	cmpl	%esi, %eax
	jne	LBB0_3
## %bb.4:
	testl	%edx, %edx
	je	LBB0_8
## %bb.5:
	cmpl	$0, 4(%rbx)
	jne	LBB0_8
## %bb.6:
	movl	$1, 4(%rbx)
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %esi
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.9:
	cmpl	$0, 4(%rbx)
	je	LBB0_11
## %bb.10:
	decl	%esi
	movl	%esi, (%rbx)
	movl	$0, 4(%rbx)
LBB0_11:
	movq	%rbx, %rdi
	callq	_snd_interval_checkempty
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_snd_interval_none
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_interval_refine_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_interval_refine_max
_snd_interval_refine_max:               ; @snd_interval_refine_max
	.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	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.ls	LBB0_2
; %bb.1:
	stp	w1, w2, [x19]
	mov	w20, #1
	b	LBB0_7
LBB0_2:
	mov	w20, #0
	b.ne	LBB0_6
; %bb.3:
	cbz	w2, LBB0_7
; %bb.4:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_7
; %bb.5:
	mov	w20, #1
	str	w20, [x19, #4]
	b	LBB0_7
LBB0_6:
	mov	x1, x8
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_10
; %bb.9:
	sub	w8, w1, #1
	stp	w8, wzr, [x19]
LBB0_10:
	mov	x0, x19
	bl	_snd_interval_checkempty
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_snd_interval_none
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_interval_refine_max
.subsections_via_symbols
