	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_bitrate_get_best      ## -- Begin function hb_audio_bitrate_get_best
	.p2align	4, 0x90
_hb_audio_bitrate_get_best:             ## @hb_audio_bitrate_get_best
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	leaq	-16(%rbp), %rax
	leaq	-12(%rbp), %r8
	movl	%edx, %esi
	movl	%ecx, %edx
	movq	%rax, %rcx
	callq	_hb_audio_bitrate_get_limits
	movl	-12(%rbp), %eax
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movl	-16(%rbp), %eax
	cmpl	%eax, %ebx
	cmovlel	%eax, %ebx
	movl	%ebx, %edi
	callq	_hb_audio_bitrate_find_closest
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_bitrate_get_best      ; -- Begin function hb_audio_bitrate_get_best
	.p2align	2
_hb_audio_bitrate_get_best:             ; @hb_audio_bitrate_get_best
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x3
	mov	x19, x1
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x1, x2
	mov	x2, x8
	bl	_hb_audio_bitrate_get_limits
	ldp	w8, w9, [sp, #8]
	cmp	w8, w19
	csel	w8, w8, w19, lt
	cmp	w8, w9
	csel	w0, w8, w9, gt
	bl	_hb_audio_bitrate_find_closest
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
