	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_buffersize
_find_buffersize:                       ## @find_buffersize
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	_JackPlaybackLatency@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdx
	callq	_jack_port_get_latency_range
	movl	-48(%rbp), %r15d
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	movl	(%rbx), %esi
	movq	%r12, %rdx
	callq	_jack_port_get_latency_range
	movl	-48(%rbp), %eax
	cmpl	%eax, %r15d
	cmovgl	%r15d, %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovgl	%eax, %ebx
	imull	-52(%rbp), %r13d                ## 4-byte Folded Reload
	imulq	$274877907, %r13, %r15          ## imm = 0x10624DD3
	shrq	$38, %r15
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_RARCH_LOG
	subl	%ebx, %r15d
	movl	(%r14), %edi
	callq	_jack_get_buffer_size
	movl	%eax, %ebx
	addl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_RARCH_LOG
	cmpl	%ebx, %r15d
	cmovgl	%r15d, %ebx
	movslq	%ebx, %rax
	shlq	$2, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JackPlaybackLatency,4,2        ## @JackPlaybackLatency
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[JACK]: Jack latency is %d frames.\n"

L_.str.1:                               ## @.str.1
	.asciz	"[JACK]: Minimum buffer size is %d frames.\n"

	.no_dead_strip	_find_buffersize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_buffersize
_find_buffersize:                       ; @find_buffersize
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x22, _JackPlaybackLatency@GOTPAGE
Lloh1:
	ldr	x22, [x22, _JackPlaybackLatency@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	bl	_jack_port_get_latency_range
	ldr	w23, [sp, #8]
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
	add	x2, sp, #8
	bl	_jack_port_get_latency_range
	ldr	w8, [sp, #8]
	cmp	w23, w8
	csel	w8, w23, w8, gt
	cmp	w8, #0
	csel	w22, w8, wzr, gt
	mul	w8, w19, w20
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x19, x8, #38
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_RARCH_LOG
	sub	w20, w19, w22
	ldr	w0, [x21]
	bl	_jack_get_buffer_size
	lsl	w19, w0, #1
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_RARCH_LOG
	cmp	w20, w19
	csel	w8, w20, w19, gt
	sbfiz	x0, x8, #2, #32
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_JackPlaybackLatency,4,2        ; @JackPlaybackLatency
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[JACK]: Jack latency is %d frames.\n"

l_.str.1:                               ; @.str.1
	.asciz	"[JACK]: Minimum buffer size is %d frames.\n"

	.no_dead_strip	_find_buffersize
.subsections_via_symbols
