	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbg_read_seek2
_sbg_read_seek2:                        ## @sbg_read_seek2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%esi, %esi
	jg	LBB0_5
## %bb.1:
	testl	%r9d, %r9d
	jne	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	testl	%esi, %esi
	jns	LBB0_4
## %bb.3:
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movl	%ecx, %edi
	callq	_av_rescale_q
	movl	%eax, %ecx
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.no_dead_strip	_sbg_read_seek2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbg_read_seek2
_sbg_read_seek2:                        ; @sbg_read_seek2
	.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
	cmp	w1, #0
	b.gt	LBB0_5
; %bb.1:
	cbnz	w5, LBB0_5
; %bb.2:
	mov	x19, x0
	tbz	w1, #31, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w2, [x8, #4]
	mov	x0, x3
	bl	_av_rescale_q
	mov	x3, x0
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	w3, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.no_dead_strip	_sbg_read_seek2
.subsections_via_symbols
