	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_mp3
_handle_mp3:                            ## @handle_mp3
	.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
	movl	%esi, %r15d
	movq	_cdd@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_ftell
	movl	%eax, %r12d
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mp3_get_bitrate
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.2:
	cmpl	$7, %eax
	jle	LBB0_3
## %bb.4:
	movslq	%r15d, %rax
	shlq	$4, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, 8(%rdx,%rax)
	movq	$0, (%rdx,%rax)
	imull	$75, %r12d, %eax
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_3:
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%r15d
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_elprintf
	movq	%rbx, %rdi
	callq	_fclose
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cdd,8,3                        ## @cdd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EL_STATUS,4,2                  ## @EL_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"track %2i: mp3 bitrate %i"

	.no_dead_strip	_handle_mp3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_mp3
_handle_mp3:                            ; @handle_mp3
	.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
	mov	x20, x1
Lloh0:
	adrp	x8, _cdd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cdd@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
	mov	x22, x0
	mov	x0, x19
	bl	_ftell
	mov	x21, x0
Lloh8:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_fseek
	mov	x0, x19
	mov	x1, x21
	bl	_mp3_get_bitrate
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w3, w8, #3
	cmp	w22, #0
	ccmp	w0, #7, #4, eq
	b.gt	LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	w2, w20, #1
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elprintf
	mov	x0, x19
	bl	_fclose
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	sxtw	x8, w20
	add	x8, x23, x8, lsl #4
	stp	xzr, x19, [x8]
	mov	w8, #75
	mul	w8, w21, w8
	mov	w9, #1000
	mul	w9, w3, w9
	sdiv	w0, w8, w9
LBB0_5:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_cdd,8,3                        ; @cdd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EL_STATUS,4,2                  ; @EL_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"track %2i: mp3 bitrate %i"

	.no_dead_strip	_handle_mp3
.subsections_via_symbols
