	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_q2intfloat                  ## -- Begin function av_q2intfloat
	.p2align	4, 0x90
_av_q2intfloat:                         ## @av_q2intfloat
	.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	%rdi, %rax
	shrq	$32, %rax
	movl	%eax, %r15d
	negl	%r15d
	setb	%cl
	movl	%edi, %r14d
	negl	%r14d
	cmovsl	%edi, %r14d
	testl	%edi, %edi
	cmovnsl	%eax, %r15d
	setne	%dl
	orb	%cl, %dl
	movzbl	%dl, %ecx
	shll	$22, %ecx
	addl	$-4194304, %ecx                 ## imm = 0xFFC00000
	movl	%eax, %r13d
	negl	%r13d
	cmovsl	%eax, %r13d
	movl	$2139095040, %ebx               ## imm = 0x7F800000
	cmovael	%ecx, %ebx
	jae	LBB0_9
## %bb.1:
	testl	%edi, %edi
	je	LBB0_9
## %bb.2:
	movl	%r14d, %edi
	callq	_av_log2
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_av_log2
	subl	%eax, %r12d
	addl	$23, %r12d
	js	LBB0_4
## %bb.3:
	movl	$1, %esi
	movl	%r12d, %ecx
	shlq	%cl, %rsi
	movl	%r13d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	jmp	LBB0_5
LBB0_4:
	movl	%r12d, %ecx
	negb	%cl
	movl	%r14d, %edx
	shll	%cl, %edx
	movl	%r13d, %edi
	movl	$1, %esi
LBB0_5:
	callq	_av_rescale
	andl	$-2147483648, %r15d             ## imm = 0x80000000
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%ecx, %ecx
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	setge	%cl
	subl	%ecx, %r12d
	xorl	%r15d, %r15d
	cmpl	$8388608, %eax                  ## imm = 0x800000
	setl	%r15b
	addl	%r12d, %r15d
	js	LBB0_7
## %bb.6:
	movl	$1, %esi
	movl	%r15d, %ecx
	shlq	%cl, %rsi
	movl	%r13d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_8
LBB0_7:
	movl	%r15d, %ecx
	negb	%cl
	shll	%cl, %r14d
	movl	%r13d, %edi
	movl	$1, %esi
LBB0_8:
	movl	%r14d, %edx
	callq	_av_rescale
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	setl	%dil
	callq	_av_assert1
	xorl	%edi, %edi
	cmpl	$8388608, %ebx                  ## imm = 0x800000
	setge	%dil
	callq	_av_assert1
	shll	$23, %r15d
	movl	$1258291200, %eax               ## imm = 0x4B000000
	subl	%r15d, %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	addl	$-8388608, %ebx                 ## imm = 0xFF800000
	orl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_av_q2intfloat                  ; -- Begin function av_q2intfloat
	.p2align	2
_av_q2intfloat:                         ; @av_q2intfloat
	.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
	lsr	x9, x0, #32
	cmp	w0, #0
	cneg	w22, w9, lt
	cneg	w19, w0, mi
	orr	w8, w9, w0
	mov	w10, #-4194304
	cmp	w8, #0
	csel	w8, wzr, w10, ne
	mov	w10, #2139095040
	cmp	w9, #0
	csel	w8, w10, w8, ne
	cneg	w20, w9, mi
	cbz	w9, LBB0_9
; %bb.1:
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_av_log2
	mov	x21, x0
	mov	x0, x20
	bl	_av_log2
	sub	w8, w21, w0
	adds	w23, w8, #23
	b.mi	LBB0_4
; %bb.3:
	mov	w8, #1
	lsl	x1, x8, x23
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x19
	b	LBB0_5
LBB0_4:
	neg	w8, w23
	lsl	w2, w19, w8
	mov	x0, x20
	mov	w1, #1
LBB0_5:
	bl	_av_rescale
	and	w21, w22, #0x80000000
	mov	w8, #16777215
	cmp	w0, w8
	cset	w8, gt
	sub	w8, w23, w8
	cmp	w0, #2048, lsl #12              ; =8388608
	cinc	w22, w8, lt
	tbnz	w22, #31, LBB0_7
; %bb.6:
	mov	w8, #1
	lsl	x1, x8, x22
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x19
	b	LBB0_8
LBB0_7:
	neg	w8, w22
	lsl	w2, w19, w8
	mov	x0, x20
	mov	w1, #1
LBB0_8:
	bl	_av_rescale
	mov	x19, x0
	mov	w8, #16777216
	cmp	w0, w8
	cset	w0, lt
	bl	_av_assert1
	subs	w19, w19, #2048, lsl #12        ; =8388608
	cset	w0, ge
	bl	_av_assert1
	mov	w8, #1258291200
	sub	w8, w8, w22, lsl #23
	orr	w8, w8, w21
	orr	w8, w8, w19
LBB0_9:
	mov	x0, x8
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
