	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_get_bitrate                ## -- Begin function mp3_get_bitrate
	.p2align	4, 0x90
_mp3_get_bitrate:                       ## @mp3_get_bitrate
	.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	%r12
	pushq	%rbx
	subq	$2064, %rsp                     ## imm = 0x810
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-2096(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_memset
	movq	_SEEK_SET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$2048, %edx                     ## imm = 0x800
	movq	%r15, %rcx
	callq	_fread
	movl	$-1, %ebx
	cmpl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_5
## %bb.1:
	leaq	-2096(%rbp), %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_try_get_bitrate
	testl	%eax, %eax
	jg	LBB0_4
## %bb.2:
	movl	%r14d, %esi
	shrl	$31, %esi
	addl	%r14d, %esi
	sarl	%esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_fseek
	leaq	-2096(%rbp), %rdi
	movl	$1, %esi
	movl	$2048, %edx                     ## imm = 0x800
	movq	%r15, %rcx
	callq	_fread
	cmpl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_4
## %bb.3:
	leaq	-2096(%rbp), %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_try_get_bitrate
LBB0_4:
	testl	%eax, %eax
	movl	$-1, %ebx
	cmovgl	%eax, %ebx
LBB0_5:
	movl	(%r12), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$2064, %rsp                     ## imm = 0x810
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_get_bitrate                ; -- Begin function mp3_get_bitrate
	.p2align	2
_mp3_get_bitrate:                       ; @mp3_get_bitrate
	.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
	sub	sp, sp, #2064
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #2048
	bl	_memset
Lloh3:
	adrp	x21, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_fseek
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #2048
	mov	x3, x19
	bl	_fread
	cmp	w0, #2048
	b.ne	LBB0_5
; %bb.1:
	add	x0, sp, #8
	mov	w1, #2048
	bl	_try_get_bitrate
	cmp	w0, #0
	b.gt	LBB0_4
; %bb.2:
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w1, w8, #1
	ldr	w2, [x21]
	mov	x0, x19
	bl	_fseek
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #2048
	mov	x3, x19
	bl	_fread
	cmp	w0, #2048
	b.ne	LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	w1, #2048
	bl	_try_get_bitrate
LBB0_4:
	cmp	w0, #0
	csinv	w20, w0, wzr, gt
	b	LBB0_6
LBB0_5:
	mov	w20, #-1
LBB0_6:
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_fseek
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	add	sp, sp, #2064
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
