	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_bitrate_get_default   ## -- Begin function hb_audio_bitrate_get_default
	.p2align	4, 0x90
_hb_audio_bitrate_get_default:          ## @hb_audio_bitrate_get_default
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_1
LBB0_10:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edi, %r12d
	movq	_HB_ACODEC_MASK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_10
## %bb.2:
	movl	%edx, %edi
	movl	%esi, %r15d
	movl	%edx, %ebx
	callq	_hb_mixdown_get_low_freq_channel_count
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_hb_mixdown_get_discrete_channel_count
	movl	%eax, %r13d
	movl	%eax, %r14d
	subl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r15d, %ebx
	movl	%r15d, %edi
	callq	_hb_audio_samplerate_get_sr_shift
	movl	%eax, %r15d
	leal	-128(%r12), %eax
	cmpl	$6, %eax
	ja	LBB0_8
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movl	%ebx, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmpq	*%rax
LBB0_6:
	shll	$5, %r14d
	movl	%r14d, %r13d
	jmp	LBB0_9
LBB0_8:
	shll	$4, %r14d
	leal	(%r14,%r14,4), %r13d
	movl	%ebx, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_7:
	movl	%r8d, %edi
	callq	_mixdown_get_opus_coupled_stream_count
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %edx
                                        ## kill: def $eax killed $eax def $rax
	subl	%eax, %r13d
	subl	%eax, %r13d
	leal	(%rax,%rax,2), %eax
	shll	$5, %eax
	shll	$6, %r13d
	addl	%eax, %r13d
	jmp	LBB0_9
LBB0_5:
	leal	(%r14,%r14,2), %eax
	shll	$7, %eax
	movl	%r14d, %ecx
	shll	$7, %ecx
	movl	$256, %esi                      ## imm = 0x100
	subl	%ecx, %esi
	xorl	%r13d, %r13d
	cmpl	$3, %r14d
	cmovgel	%esi, %r13d
	addl	%eax, %r13d
	jmp	LBB0_9
LBB0_4:
	movl	%r14d, %eax
	shll	$7, %eax
	xorl	%ecx, %ecx
	cmpl	$5, %r14d
	setge	%cl
	shll	$5, %ecx
	leal	(%rcx,%rax), %r13d
	addl	$-32, %r13d
LBB0_9:
	movl	%r15d, %ecx
	sarl	%cl, %r13d
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%r8d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_audio_bitrate_get_best      ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ## @HB_ACODEC_PASS_FLAG
	.comm	_HB_ACODEC_MASK,4,2             ## @HB_ACODEC_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_bitrate_get_default   ; -- Begin function hb_audio_bitrate_get_default
	.p2align	2
_hb_audio_bitrate_get_default:          ; @hb_audio_bitrate_get_default
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #-1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x21, x0
Lloh3:
	adrp	x8, _HB_ACODEC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_ACODEC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.3:
	mov	x19, x2
	mov	x20, x1
	mov	x0, x2
	bl	_hb_mixdown_get_low_freq_channel_count
	mov	x22, x0
	mov	x0, x19
	bl	_hb_mixdown_get_discrete_channel_count
	mov	x23, x0
	sub	w24, w0, w22
	mov	x0, x20
	bl	_hb_audio_samplerate_get_sr_shift
	mov	x22, x0
	sub	w8, w21, #128
	cmp	w8, #6
	b.hi	LBB0_6
; %bb.4:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_1
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	lsl	w8, w24, #5
	b	LBB0_10
LBB0_6:
	add	w8, w24, w24, lsl #2
	lsl	w8, w8, #4
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_mixdown_get_opus_coupled_stream_count
	sub	w8, w23, w0, lsl #1
	mov	w9, #96
	mul	w9, w0, w9
	add	w8, w9, w8, lsl #6
	b	LBB0_10
LBB0_8:
	mov	w8, #384
	mov	w9, #256
	sub	w9, w9, w24, lsl #7
	cmp	w24, #2
	csel	w9, w9, wzr, gt
	madd	w8, w24, w8, w9
	b	LBB0_10
LBB0_9:
	mov	w8, #-32
	cmp	w24, #5
	csel	w8, w8, wzr, lt
	add	w8, w8, w24, lsl #7
LBB0_10:
	asr	w1, w8, w22
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hb_audio_bitrate_get_best
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
                                        ; -- End function
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ; @HB_ACODEC_PASS_FLAG
	.comm	_HB_ACODEC_MASK,4,2             ; @HB_ACODEC_MASK
.subsections_via_symbols
