	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_av_init                 ## -- Begin function av7110_av_init
	.p2align	4, 0x90
_av7110_av_init:                        ## @av7110_av_init
	.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, %r15
	movq	_play_audio_cb@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movq	_play_video_cb@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	24(%rdi), %rbx
	movq	_IPACKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_av7110_ipack_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%r15, (%rbx)
	movq	%r12, %rdx
	movq	24(%r15), %r12
	leaq	8(%r12), %r13
	movq	_IPACKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_av7110_ipack_init
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	%r15, (%r13)
	leaq	20(%r15), %rdi
	movq	8(%r15), %rsi
	movq	_AVOUTLEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	callq	_dvb_ringbuffer_init
	leaq	16(%r15), %rdi
	movq	(%rbx), %rsi
	addq	8(%r15), %rsi
	movq	_AOUTLEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	callq	_dvb_ringbuffer_init
	movq	(%rbx), %rax
	addq	8(%r15), %rax
	addq	(%r12), %rax
	movq	_BMPLEN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	_IPACKS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$3, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%rax)
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_2:
	movq	%r12, %rdi
	callq	_av7110_ipack_free
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	_play_audio_cb,4,2              ## @play_audio_cb
	.comm	_play_video_cb,4,2              ## @play_video_cb
	.comm	_IPACKS,4,2                     ## @IPACKS
	.comm	_AVOUTLEN,8,3                   ## @AVOUTLEN
	.comm	_AOUTLEN,8,3                    ## @AOUTLEN
	.comm	_BMPLEN,8,3                     ## @BMPLEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_av_init                 ; -- Begin function av7110_av_init
	.p2align	2
_av7110_av_init:                        ; @av7110_av_init
	.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	x19, x0
Lloh0:
	adrp	x8, _play_audio_cb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _play_audio_cb@GOTPAGEOFF]
Lloh2:
	adrp	x9, _play_video_cb@GOTPAGE
Lloh3:
	ldr	x9, [x9, _play_video_cb@GOTPAGEOFF]
Lloh4:
	ldrsw	x2, [x8]
Lloh5:
	ldrsw	x21, [x9]
	ldr	x22, [x0, #24]
Lloh6:
	adrp	x24, _IPACKS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IPACKS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_av7110_ipack_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
	str	x19, [x22]
	ldr	x22, [x19, #24]
	add	x23, x22, #8
	ldr	w1, [x24]
	mov	x0, x23
	mov	x2, x21
	bl	_av7110_ipack_init
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	str	x19, [x23]
	add	x0, x19, #20
	ldr	x1, [x19, #8]
Lloh8:
	adrp	x21, _AVOUTLEN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _AVOUTLEN@GOTPAGEOFF]
	ldr	x2, [x21]
	bl	_dvb_ringbuffer_init
	add	x0, x19, #16
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
Lloh10:
	adrp	x22, _AOUTLEN@GOTPAGE
Lloh11:
	ldr	x22, [x22, _AOUTLEN@GOTPAGEOFF]
	ldr	x2, [x22]
	bl	_dvb_ringbuffer_init
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldp	x11, x10, [x19]
	add	x8, x8, x10
	add	x8, x8, x9
Lloh12:
	adrp	x9, _BMPLEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BMPLEN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x8, x8, x9
	str	x8, [x11]
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldrsw	x10, [x24]
	add	x9, x9, x10, lsl #3
	str	x9, [x8, #8]
	b	LBB0_5
LBB0_3:
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	bl	_av7110_ipack_free
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_play_audio_cb,4,2              ; @play_audio_cb
	.comm	_play_video_cb,4,2              ; @play_video_cb
	.comm	_IPACKS,4,2                     ; @IPACKS
	.comm	_AVOUTLEN,8,3                   ; @AVOUTLEN
	.comm	_AOUTLEN,8,3                    ; @AOUTLEN
	.comm	_BMPLEN,8,3                     ; @BMPLEN
.subsections_via_symbols
