	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc_get_mpeg_dma
_enc_get_mpeg_dma:                      ## @enc_get_mpeg_dma
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_SOLO_MP4E_EXT_SIZE
	cmpl	%ebx, %eax
	jae	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leal	(%r15,%rbx), %r12d
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_SIZE
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_ADDR
	movq	%rax, %r15
	movl	%ebx, %eax
	addq	%rax, %r15
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %r12d
	jbe	LBB0_4
## %bb.6:
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_SIZE
	subl	%ebx, %eax
	movl	$0, (%rsp)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_solo_p2m_dma_t
	testl	%eax, %eax
	jne	LBB0_2
## %bb.7:
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_SIZE
	movl	%eax, %eax
	subq	%r14, %rbx
	addq	%rax, %rbx
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_ADDR
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_SOLO_MP4E_EXT_SIZE
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	subl	%eax, %r8d
	movl	$0, (%rsp)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	jmp	LBB0_5
LBB0_4:
	movl	$0, (%rsp)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
LBB0_5:
	xorl	%r9d, %r9d
	callq	_solo_p2m_dma_t
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_enc_get_mpeg_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc_get_mpeg_dma
_enc_get_mpeg_dma:                      ; @enc_get_mpeg_dma
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_SOLO_MP4E_EXT_SIZE
	cmp	w0, w22
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	add	w25, w21, w22
	mov	x0, x19
	bl	_SOLO_MP4E_EXT_SIZE
	mov	x24, x0
	mov	x0, x19
	bl	_SOLO_MP4E_EXT_ADDR
	mov	w26, w22
	add	x23, x0, x26
	cmp	w25, w24
	b.ls	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_SOLO_MP4E_EXT_SIZE
	sub	w4, w0, w22
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x3, x23
	mov	w5, #0
	mov	w6, #0
	bl	_solo_p2m_dma_t
	cbz	w0, LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x3, x23
	mov	x4, x21
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_SOLO_MP4E_EXT_SIZE
	sub	x8, x20, x26
	add	x20, x8, w0, uxtw
	mov	x0, x19
	bl	_SOLO_MP4E_EXT_ADDR
	mov	x21, x0
	mov	x0, x19
	bl	_SOLO_MP4E_EXT_SIZE
	sub	w4, w25, w0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x3, x21
LBB0_7:
	mov	w5, #0
	mov	w6, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_solo_p2m_dma_t
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_enc_get_mpeg_dma
.subsections_via_symbols
