	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_audio_ioctl
_dvb_audio_ioctl:                       ## @dvb_audio_ioctl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_dprintk
	cmpl	$141, %r12d
	je	LBB0_3
## %bb.1:
	movq	_O_ACCMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	addl	$-128, %r12d
	cmpl	$17, %r12d
	ja	LBB0_11
## %bb.8:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	xorl	%ebx, %ebx
	jmpq	*%rcx
LBB0_9:
	movl	40(%r14), %eax
	movq	_AUDIO_SOURCE_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_40
## %bb.10:
	movq	_RP_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_av7110_av_stop
	jmp	LBB0_41
LBB0_11:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_51
LBB0_13:
	testq	%r15, %r15
	jne	LBB0_44
## %bb.14:
	movq	_AUDIO_CMD_UNMUTE@GOTPCREL(%rip), %rax
	jmp	LBB0_45
LBB0_15:
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%r14, %rdi
	callq	_av7110_set_volume
	jmp	LBB0_50
LBB0_16:
	movl	20(%r14), %edi
	callq	_FW_VERSION
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	cmpl	$9761, %eax                     ## imm = 0x2621
	cmovgel	%edx, %ebx
	movl	%r15d, 32(%r14)
	jmp	LBB0_51
LBB0_17:
	movl	%r15d, 28(%r14)
	testq	%r15, %r15
	jne	LBB0_47
## %bb.18:
	movq	_AUDIO_CMD_SYNC_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_48
LBB0_19:
	movl	%r15d, 40(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_51
LBB0_20:
	movl	40(%r14), %eax
	movq	_AUDIO_SOURCE_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_22
## %bb.21:
	movq	_RP_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_av7110_av_start_play
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_51
LBB0_22:
	movq	_AUDIO_CMD_UNMUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_51
## %bb.23:
	movq	_AUDIO_PLAYING@GOTPCREL(%rip), %rax
	jmp	LBB0_43
LBB0_24:
	movq	_AUDIO_CMD_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_51
## %bb.25:
	movq	_AUDIO_PAUSED@GOTPCREL(%rip), %rax
	jmp	LBB0_43
LBB0_26:
	leaq	24(%r14), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_51
LBB0_27:
	movl	20(%r14), %edi
	callq	_FW_VERSION
	movq	_AUDIO_CAP_LPCM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$9760, %eax                     ## imm = 0x2620
	jle	LBB0_29
## %bb.28:
	movq	_AUDIO_CAP_DTS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AUDIO_CAP_AC3@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_29:
	movq	_AUDIO_CAP_MP1@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AUDIO_CAP_MP2@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_51
LBB0_30:
	movq	48(%r14), %rax
	movq	_AUDIO_PAUSED@GOTPCREL(%rip), %rcx
	movl	$0, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_51
## %bb.31:
	movq	_AUDIO_PLAYING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r14)
	movq	_AUDIO_CMD_UNMUTE@GOTPCREL(%rip), %rax
	movq	_AUDIO_CMD_PCM16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	jmp	LBB0_49
LBB0_32:
	leaq	16(%r14), %rdi
	callq	_dvb_ringbuffer_flush_spinlock_wakeup
	movq	8(%r14), %rdi
	callq	_av7110_ipack_reset
	movl	4(%r14), %eax
	movq	_RP_AV@GOTPCREL(%rip), %rcx
	movl	$0, %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_51
## %bb.33:
	movq	_COMTYPE_REC_PLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___Play@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AV_PES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$2, %ecx
	xorl	%r9d, %r9d
	callq	_av7110_fw_cmd
	jmp	LBB0_50
LBB0_34:
	movl	%r15d, 36(%r14)
	cmpl	$140, %r15d
	je	LBB0_52
## %bb.35:
	cmpl	$139, %r15d
	je	LBB0_55
## %bb.36:
	cmpl	$129, %r15d
	jne	LBB0_59
## %bb.37:
	movq	_AUDIO_CMD_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_51
## %bb.38:
	movl	56(%r14), %eax
	movq	_DVB_ADAC_CRYSTAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_64
## %bb.39:
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$2, %edx
	movl	$73, %ecx
	jmp	LBB0_58
LBB0_40:
	movq	_AUDIO_CMD_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
LBB0_41:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_51
## %bb.42:
	movq	_AUDIO_STOPPED@GOTPCREL(%rip), %rax
LBB0_43:
	movq	(%rax), %rax
	movq	%rax, 48(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_51
LBB0_44:
	movq	_AUDIO_CMD_MUTE@GOTPCREL(%rip), %rax
LBB0_45:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_51
## %bb.46:
	movl	%r15d, 24(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_51
LBB0_47:
	movq	_AUDIO_CMD_SYNC_ON@GOTPCREL(%rip), %rax
LBB0_48:
	movl	(%rax), %esi
LBB0_49:
	movq	%r14, %rdi
	callq	_audcom
LBB0_50:
	movl	%eax, %ebx
LBB0_51:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_52:
	movq	_AUDIO_CMD_MONO_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_51
## %bb.53:
	movl	56(%r14), %eax
	movq	_DVB_ADAC_CRYSTAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_60
## %bb.54:
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$2, %edx
	movl	$74, %ecx
	jmp	LBB0_58
LBB0_55:
	movq	_AUDIO_CMD_MONO_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_51
## %bb.56:
	movl	56(%r14), %eax
	movq	_DVB_ADAC_CRYSTAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_62
## %bb.57:
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$2, %edx
	movl	$69, %ecx
LBB0_58:
	callq	_i2c_writereg
	xorl	%ebx, %ebx
	jmp	LBB0_51
LBB0_59:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_60:
	movq	_DVB_ADAC_MSP34x5@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_67
## %bb.61:
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$512, %ecx                      ## imm = 0x200
	jmp	LBB0_66
LBB0_62:
	movq	_DVB_ADAC_MSP34x5@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_67
## %bb.63:
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$528, %ecx                      ## imm = 0x210
	jmp	LBB0_66
LBB0_64:
	movq	_DVB_ADAC_MSP34x5@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_67
## %bb.65:
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$544, %ecx                      ## imm = 0x220
LBB0_66:
	callq	_msp_writereg
LBB0_67:
	xorl	%ebx, %ebx
	jmp	LBB0_51
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_51, LBB0_51-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_51
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_51
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_24
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_30
	.long	L0_0_set_32
	.long	L0_0_set_34
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"av7110:%p, cmd=%04x\n"

	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_AUDIO_SOURCE_MEMORY,4,2        ## @AUDIO_SOURCE_MEMORY
	.comm	_RP_AUDIO,4,2                   ## @RP_AUDIO
	.comm	_AUDIO_CMD_MUTE,4,2             ## @AUDIO_CMD_MUTE
	.comm	_AUDIO_STOPPED,8,3              ## @AUDIO_STOPPED
	.comm	_AUDIO_CMD_UNMUTE,4,2           ## @AUDIO_CMD_UNMUTE
	.comm	_AUDIO_PLAYING,8,3              ## @AUDIO_PLAYING
	.comm	_AUDIO_PAUSED,8,3               ## @AUDIO_PAUSED
	.comm	_AUDIO_CMD_PCM16,4,2            ## @AUDIO_CMD_PCM16
	.comm	_AUDIO_CMD_SYNC_ON,4,2          ## @AUDIO_CMD_SYNC_ON
	.comm	_AUDIO_CMD_SYNC_OFF,4,2         ## @AUDIO_CMD_SYNC_OFF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AUDIO_CMD_STEREO,4,2           ## @AUDIO_CMD_STEREO
	.comm	_DVB_ADAC_CRYSTAL,4,2           ## @DVB_ADAC_CRYSTAL
	.comm	_DVB_ADAC_MSP34x5,4,2           ## @DVB_ADAC_MSP34x5
	.comm	_MSP_WR_DSP,4,2                 ## @MSP_WR_DSP
	.comm	_AUDIO_CMD_MONO_L,4,2           ## @AUDIO_CMD_MONO_L
	.comm	_AUDIO_CMD_MONO_R,4,2           ## @AUDIO_CMD_MONO_R
	.comm	_AUDIO_CAP_LPCM,4,2             ## @AUDIO_CAP_LPCM
	.comm	_AUDIO_CAP_MP1,4,2              ## @AUDIO_CAP_MP1
	.comm	_AUDIO_CAP_MP2,4,2              ## @AUDIO_CAP_MP2
	.comm	_AUDIO_CAP_DTS,4,2              ## @AUDIO_CAP_DTS
	.comm	_AUDIO_CAP_AC3,4,2              ## @AUDIO_CAP_AC3
	.comm	_RP_AV,4,2                      ## @RP_AV
	.comm	_COMTYPE_REC_PLAY,4,2           ## @COMTYPE_REC_PLAY
	.comm	___Play,4,2                     ## @__Play
	.comm	_AV_PES,4,2                     ## @AV_PES
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.no_dead_strip	_dvb_audio_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_audio_ioctl
_dvb_audio_ioctl:                       ; @dvb_audio_ioctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x3, x20
	bl	_dprintk
	cmp	w20, #141
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _O_ACCMODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _O_ACCMODE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh5:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_7
; %bb.4:
Lloh10:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	sub	w8, w20, #128
	cmp	w8, #17
	b.hi	LBB0_11
; %bb.8:
	mov	w20, #0
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	ldr	w8, [x19, #40]
Lloh14:
	adrp	x9, _AUDIO_SOURCE_MEMORY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AUDIO_SOURCE_MEMORY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_40
; %bb.10:
Lloh17:
	adrp	x8, _RP_AUDIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RP_AUDIO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av7110_av_stop
	b	LBB0_41
LBB0_11:
Lloh20:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_62
LBB0_13:
Lloh22:
	adrp	x8, _AUDIO_CMD_MUTE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AUDIO_CMD_MUTE@GOTPAGEOFF]
Lloh24:
	adrp	x9, _AUDIO_CMD_UNMUTE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AUDIO_CMD_UNMUTE@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	mov	x20, x0
	cbnz	w0, LBB0_62
; %bb.14:
	str	w21, [x19, #24]
	b	LBB0_62
LBB0_15:
	ldp	w2, w1, [x21]
	mov	x0, x19
	bl	_av7110_set_volume
	b	LBB0_33
LBB0_16:
	ldr	w0, [x19, #20]
	bl	_FW_VERSION
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	mov	w9, #9761
	cmp	w0, w9
	csneg	w20, wzr, w8, ge
	str	w21, [x19, #32]
	b	LBB0_62
LBB0_17:
Lloh29:
	adrp	x8, _AUDIO_CMD_SYNC_ON@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AUDIO_CMD_SYNC_ON@GOTPAGEOFF]
	str	w21, [x19, #28]
Lloh31:
	adrp	x9, _AUDIO_CMD_SYNC_OFF@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AUDIO_CMD_SYNC_OFF@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	b	LBB0_30
LBB0_18:
	mov	w20, #0
	str	w21, [x19, #40]
	b	LBB0_62
LBB0_19:
	ldr	w8, [x19, #40]
Lloh33:
	adrp	x9, _AUDIO_SOURCE_MEMORY@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AUDIO_SOURCE_MEMORY@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.20:
Lloh36:
	adrp	x8, _RP_AUDIO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RP_AUDIO@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av7110_av_start_play
	mov	x20, x0
	cbnz	w0, LBB0_62
LBB0_21:
Lloh39:
	adrp	x8, _AUDIO_CMD_UNMUTE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AUDIO_CMD_UNMUTE@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	mov	x20, x0
	cbnz	w0, LBB0_62
; %bb.22:
Lloh42:
	adrp	x8, _AUDIO_PLAYING@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AUDIO_PLAYING@GOTPAGEOFF]
	b	LBB0_43
LBB0_23:
Lloh44:
	adrp	x8, _AUDIO_CMD_MUTE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AUDIO_CMD_MUTE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	mov	x20, x0
	cbnz	w0, LBB0_62
; %bb.24:
Lloh47:
	adrp	x8, _AUDIO_PAUSED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AUDIO_PAUSED@GOTPAGEOFF]
	b	LBB0_43
LBB0_25:
	add	x1, x19, #24
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	mov	w20, #0
	b	LBB0_62
LBB0_26:
	ldr	w0, [x19, #20]
	bl	_FW_VERSION
Lloh49:
	adrp	x8, _AUDIO_CAP_LPCM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AUDIO_CAP_LPCM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	mov	w9, #9760
	cmp	w0, w9
	b.gt	LBB0_44
; %bb.27:
	mov	w20, #0
Lloh52:
	adrp	x9, _AUDIO_CAP_MP1@GOTPAGE
Lloh53:
	ldr	x9, [x9, _AUDIO_CAP_MP1@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_45
LBB0_28:
	ldr	x8, [x19, #48]
Lloh55:
	adrp	x9, _AUDIO_PAUSED@GOTPAGE
Lloh56:
	ldr	x9, [x9, _AUDIO_PAUSED@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_61
; %bb.29:
Lloh58:
	adrp	x8, _AUDIO_PLAYING@GOTPAGE
Lloh59:
	ldr	x8, [x8, _AUDIO_PLAYING@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
Lloh61:
	adrp	x9, _AUDIO_CMD_UNMUTE@GOTPAGE
Lloh62:
	ldr	x9, [x9, _AUDIO_CMD_UNMUTE@GOTPAGEOFF]
	str	x8, [x19, #48]
Lloh63:
	ldr	w8, [x9]
Lloh64:
	adrp	x9, _AUDIO_CMD_PCM16@GOTPAGE
Lloh65:
	ldr	x9, [x9, _AUDIO_CMD_PCM16@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w1, w9, w8
LBB0_30:
	mov	x0, x19
	bl	_audcom
	b	LBB0_33
LBB0_31:
	add	x0, x19, #16
	bl	_dvb_ringbuffer_flush_spinlock_wakeup
	ldr	x0, [x19, #8]
	bl	_av7110_ipack_reset
	ldr	w8, [x19, #4]
Lloh67:
	adrp	x9, _RP_AV@GOTPAGE
Lloh68:
	ldr	x9, [x9, _RP_AV@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_61
; %bb.32:
Lloh70:
	adrp	x8, _COMTYPE_REC_PLAY@GOTPAGE
Lloh71:
	ldr	x8, [x8, _COMTYPE_REC_PLAY@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
Lloh73:
	adrp	x8, ___Play@GOTPAGE
Lloh74:
	ldr	x8, [x8, ___Play@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
Lloh76:
	adrp	x8, _AV_PES@GOTPAGE
Lloh77:
	ldr	x8, [x8, _AV_PES@GOTPAGEOFF]
Lloh78:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w3, #2
	mov	w5, #0
	bl	_av7110_fw_cmd
LBB0_33:
	mov	x20, x0
	b	LBB0_62
LBB0_34:
	str	w21, [x19, #36]
	cmp	w21, #140
	b.eq	LBB0_46
; %bb.35:
	cmp	w21, #139
	b.eq	LBB0_49
; %bb.36:
	cmp	w21, #129
	b.ne	LBB0_53
; %bb.37:
Lloh79:
	adrp	x8, _AUDIO_CMD_STEREO@GOTPAGE
Lloh80:
	ldr	x8, [x8, _AUDIO_CMD_STEREO@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	mov	x20, x0
	cbnz	w0, LBB0_62
; %bb.38:
	ldr	w8, [x19, #56]
Lloh82:
	adrp	x9, _DVB_ADAC_CRYSTAL@GOTPAGE
Lloh83:
	ldr	x9, [x9, _DVB_ADAC_CRYSTAL@GOTPAGEOFF]
Lloh84:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_58
; %bb.39:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #2
	mov	w3, #73
	b	LBB0_52
LBB0_40:
Lloh85:
	adrp	x8, _AUDIO_CMD_MUTE@GOTPAGE
Lloh86:
	ldr	x8, [x8, _AUDIO_CMD_MUTE@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
LBB0_41:
	mov	x20, x0
	cbnz	w0, LBB0_62
; %bb.42:
Lloh88:
	adrp	x8, _AUDIO_STOPPED@GOTPAGE
Lloh89:
	ldr	x8, [x8, _AUDIO_STOPPED@GOTPAGEOFF]
LBB0_43:
	ldr	x8, [x8]
	str	x8, [x19, #48]
	b	LBB0_62
LBB0_44:
	mov	w20, #0
Lloh90:
	adrp	x9, _AUDIO_CAP_DTS@GOTPAGE
Lloh91:
	ldr	x9, [x9, _AUDIO_CAP_DTS@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
Lloh93:
	adrp	x10, _AUDIO_CAP_AC3@GOTPAGE
Lloh94:
	ldr	x10, [x10, _AUDIO_CAP_AC3@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh95:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh96:
	adrp	x9, _AUDIO_CAP_MP1@GOTPAGE
Lloh97:
	ldr	x9, [x9, _AUDIO_CAP_MP1@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_45:
Lloh99:
	adrp	x9, _AUDIO_CAP_MP2@GOTPAGE
Lloh100:
	ldr	x9, [x9, _AUDIO_CAP_MP2@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21]
	b	LBB0_62
LBB0_46:
Lloh102:
	adrp	x8, _AUDIO_CMD_MONO_L@GOTPAGE
Lloh103:
	ldr	x8, [x8, _AUDIO_CMD_MONO_L@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	mov	x20, x0
	cbnz	w0, LBB0_62
; %bb.47:
	ldr	w8, [x19, #56]
Lloh105:
	adrp	x9, _DVB_ADAC_CRYSTAL@GOTPAGE
Lloh106:
	ldr	x9, [x9, _DVB_ADAC_CRYSTAL@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_54
; %bb.48:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #2
	mov	w3, #74
	b	LBB0_52
LBB0_49:
Lloh108:
	adrp	x8, _AUDIO_CMD_MONO_R@GOTPAGE
Lloh109:
	ldr	x8, [x8, _AUDIO_CMD_MONO_R@GOTPAGEOFF]
Lloh110:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	mov	x20, x0
	cbnz	w0, LBB0_62
; %bb.50:
	ldr	w8, [x19, #56]
Lloh111:
	adrp	x9, _DVB_ADAC_CRYSTAL@GOTPAGE
Lloh112:
	ldr	x9, [x9, _DVB_ADAC_CRYSTAL@GOTPAGEOFF]
Lloh113:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_56
; %bb.51:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #2
	mov	w3, #69
LBB0_52:
	bl	_i2c_writereg
	mov	w20, #0
	b	LBB0_62
LBB0_53:
Lloh114:
	adrp	x8, _EINVAL@GOTPAGE
Lloh115:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_54:
Lloh116:
	adrp	x9, _DVB_ADAC_MSP34x5@GOTPAGE
Lloh117:
	ldr	x9, [x9, _DVB_ADAC_MSP34x5@GOTPAGEOFF]
Lloh118:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_61
; %bb.55:
Lloh119:
	adrp	x8, _MSP_WR_DSP@GOTPAGE
Lloh120:
	ldr	x8, [x8, _MSP_WR_DSP@GOTPAGEOFF]
Lloh121:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	mov	w3, #512
	b	LBB0_60
LBB0_56:
Lloh122:
	adrp	x9, _DVB_ADAC_MSP34x5@GOTPAGE
Lloh123:
	ldr	x9, [x9, _DVB_ADAC_MSP34x5@GOTPAGEOFF]
Lloh124:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_61
; %bb.57:
Lloh125:
	adrp	x8, _MSP_WR_DSP@GOTPAGE
Lloh126:
	ldr	x8, [x8, _MSP_WR_DSP@GOTPAGEOFF]
Lloh127:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	mov	w3, #528
	b	LBB0_60
LBB0_58:
Lloh128:
	adrp	x9, _DVB_ADAC_MSP34x5@GOTPAGE
Lloh129:
	ldr	x9, [x9, _DVB_ADAC_MSP34x5@GOTPAGEOFF]
Lloh130:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_61
; %bb.59:
Lloh131:
	adrp	x8, _MSP_WR_DSP@GOTPAGE
Lloh132:
	ldr	x8, [x8, _MSP_WR_DSP@GOTPAGEOFF]
Lloh133:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	mov	w3, #544
LBB0_60:
	bl	_msp_writereg
	mov	w20, #0
	b	LBB0_62
LBB0_61:
	mov	w20, #0
LBB0_62:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_9-LBB0_9)>>2
	.short	(LBB0_11-LBB0_9)>>2
	.short	(LBB0_62-LBB0_9)>>2
	.short	(LBB0_13-LBB0_9)>>2
	.short	(LBB0_15-LBB0_9)>>2
	.short	(LBB0_62-LBB0_9)>>2
	.short	(LBB0_16-LBB0_9)>>2
	.short	(LBB0_17-LBB0_9)>>2
	.short	(LBB0_18-LBB0_9)>>2
	.short	(LBB0_19-LBB0_9)>>2
	.short	(LBB0_23-LBB0_9)>>2
	.short	(LBB0_11-LBB0_9)>>2
	.short	(LBB0_11-LBB0_9)>>2
	.short	(LBB0_25-LBB0_9)>>2
	.short	(LBB0_26-LBB0_9)>>2
	.short	(LBB0_28-LBB0_9)>>2
	.short	(LBB0_31-LBB0_9)>>2
	.short	(LBB0_34-LBB0_9)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"av7110:%p, cmd=%04x\n"

	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_AUDIO_SOURCE_MEMORY,4,2        ; @AUDIO_SOURCE_MEMORY
	.comm	_RP_AUDIO,4,2                   ; @RP_AUDIO
	.comm	_AUDIO_CMD_MUTE,4,2             ; @AUDIO_CMD_MUTE
	.comm	_AUDIO_STOPPED,8,3              ; @AUDIO_STOPPED
	.comm	_AUDIO_CMD_UNMUTE,4,2           ; @AUDIO_CMD_UNMUTE
	.comm	_AUDIO_PLAYING,8,3              ; @AUDIO_PLAYING
	.comm	_AUDIO_PAUSED,8,3               ; @AUDIO_PAUSED
	.comm	_AUDIO_CMD_PCM16,4,2            ; @AUDIO_CMD_PCM16
	.comm	_AUDIO_CMD_SYNC_ON,4,2          ; @AUDIO_CMD_SYNC_ON
	.comm	_AUDIO_CMD_SYNC_OFF,4,2         ; @AUDIO_CMD_SYNC_OFF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AUDIO_CMD_STEREO,4,2           ; @AUDIO_CMD_STEREO
	.comm	_DVB_ADAC_CRYSTAL,4,2           ; @DVB_ADAC_CRYSTAL
	.comm	_DVB_ADAC_MSP34x5,4,2           ; @DVB_ADAC_MSP34x5
	.comm	_MSP_WR_DSP,4,2                 ; @MSP_WR_DSP
	.comm	_AUDIO_CMD_MONO_L,4,2           ; @AUDIO_CMD_MONO_L
	.comm	_AUDIO_CMD_MONO_R,4,2           ; @AUDIO_CMD_MONO_R
	.comm	_AUDIO_CAP_LPCM,4,2             ; @AUDIO_CAP_LPCM
	.comm	_AUDIO_CAP_MP1,4,2              ; @AUDIO_CAP_MP1
	.comm	_AUDIO_CAP_MP2,4,2              ; @AUDIO_CAP_MP2
	.comm	_AUDIO_CAP_DTS,4,2              ; @AUDIO_CAP_DTS
	.comm	_AUDIO_CAP_AC3,4,2              ; @AUDIO_CAP_AC3
	.comm	_RP_AV,4,2                      ; @RP_AV
	.comm	_COMTYPE_REC_PLAY,4,2           ; @COMTYPE_REC_PLAY
	.comm	___Play,4,2                     ; @__Play
	.comm	_AV_PES,4,2                     ; @AV_PES
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.no_dead_strip	_dvb_audio_ioctl
.subsections_via_symbols
