	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_read_seek
_rtmp_read_seek:                        ## @rtmp_read_seek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_AVSEEK_FLAG_BYTE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.9:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movl	%edx, %ebx
	movq	(%rdi), %r14
	testl	%esi, %esi
	jns	LBB0_6
## %bb.2:
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	jne	LBB0_3
## %bb.4:
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_AV_ROUND_DOWN@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_av_rescale_rnd
	movl	%eax, %ebx
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_RTMP_SendSeek
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ## @AVSEEK_FLAG_BYTE
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ## @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ## @AV_ROUND_UP
	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.no_dead_strip	_rtmp_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_read_seek
_rtmp_read_seek:                        ; @rtmp_read_seek
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _AVSEEK_FLAG_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_2:
	mov	x19, x2
	ldr	x20, [x0]
	tbz	w1, #31, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _AV_TIME_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_TIME_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
Lloh11:
	adrp	x9, _AV_ROUND_DOWN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_ROUND_DOWN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _AV_ROUND_UP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AV_ROUND_UP@GOTPAGEOFF]
	tst	w8, w3
	csel	x8, x10, x9, eq
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #1000
	bl	_av_rescale_rnd
	mov	x19, x0
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_RTMP_SendSeek
Lloh16:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w19, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ; @AVSEEK_FLAG_BYTE
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ; @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ; @AV_ROUND_UP
	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.no_dead_strip	_rtmp_read_seek
.subsections_via_symbols
