	.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	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	8(%rsi), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_dprintk
	cmpl	$141, %ebx
	je	LBB0_5
## %bb.1:
	movq	_O_ACCMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	addl	$-128, %ebx
	cmpl	$17, %ebx
	ja	LBB0_9
## %bb.6:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	xorl	%eax, %eax
	jmpq	*%rcx
LBB0_7:
	movl	40(%r14), %eax
	movq	_AUDIO_SOURCE_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_37
## %bb.8:
	movq	_RP_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_av7110_av_stop
	jmp	LBB0_38
LBB0_9:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_10:
	testq	%r15, %r15
	jne	LBB0_41
## %bb.11:
	movq	_AUDIO_CMD_UNMUTE@GOTPCREL(%rip), %rax
	jmp	LBB0_42
LBB0_12:
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av7110_set_volume              ## TAILCALL
LBB0_13:
	movl	20(%r14), %edi
	callq	_FW_VERSION
	movl	%eax, %ecx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpl	$9761, %ecx                     ## imm = 0x2621
	cmovgel	%esi, %eax
	movl	%r15d, 32(%r14)
	jmp	LBB0_4
LBB0_14:
	movl	%r15d, 28(%r14)
	testq	%r15, %r15
	jne	LBB0_44
## %bb.15:
	movq	_AUDIO_CMD_SYNC_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_45
LBB0_16:
	movl	%r15d, 40(%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_17:
	movl	40(%r14), %eax
	movq	_AUDIO_SOURCE_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.18:
	movq	_RP_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_av7110_av_start_play
	testl	%eax, %eax
	jne	LBB0_4
LBB0_19:
	movq	_AUDIO_CMD_UNMUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	testl	%eax, %eax
	jne	LBB0_4
## %bb.20:
	movq	_AUDIO_PLAYING@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_21:
	movq	_AUDIO_CMD_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	testl	%eax, %eax
	jne	LBB0_4
## %bb.22:
	movq	_AUDIO_PAUSED@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_23:
	addq	$24, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_24:
	movl	20(%r14), %edi
	callq	_FW_VERSION
	movq	_AUDIO_CAP_LPCM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$9760, %eax                     ## imm = 0x2620
	jle	LBB0_26
## %bb.25:
	movq	_AUDIO_CAP_DTS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AUDIO_CAP_AC3@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_26:
	movq	_AUDIO_CAP_MP1@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AUDIO_CAP_MP2@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_27:
	movq	48(%r14), %rcx
	movq	_AUDIO_PAUSED@GOTPCREL(%rip), %rdx
	movl	$0, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.28:
	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_46
LBB0_29:
	leaq	16(%r14), %rdi
	callq	_dvb_ringbuffer_flush_spinlock_wakeup
	movq	8(%r14), %rdi
	callq	_av7110_ipack_reset
	movl	(%r14), %ecx
	movq	_RP_AV@GOTPCREL(%rip), %rdx
	movl	$0, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_4
## %bb.30:
	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
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av7110_fw_cmd                  ## TAILCALL
LBB0_31:
	movl	%r15d, 36(%r14)
	cmpl	$140, %r15d
	je	LBB0_47
## %bb.32:
	cmpl	$139, %r15d
	je	LBB0_50
## %bb.33:
	cmpl	$129, %r15d
	jne	LBB0_54
## %bb.34:
	movq	_AUDIO_CMD_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	testl	%eax, %eax
	jne	LBB0_4
## %bb.35:
	movl	56(%r14), %eax
	movq	_DVB_ADAC_CRYSTAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_59
## %bb.36:
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$2, %edx
	movl	$73, %ecx
	jmp	LBB0_53
LBB0_37:
	movq	_AUDIO_CMD_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
LBB0_38:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.39:
	movq	_AUDIO_STOPPED@GOTPCREL(%rip), %rax
LBB0_40:
	movq	(%rax), %rax
	movq	%rax, 48(%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_41:
	movq	_AUDIO_CMD_MUTE@GOTPCREL(%rip), %rax
LBB0_42:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	testl	%eax, %eax
	jne	LBB0_4
## %bb.43:
	movl	%r15d, 24(%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_44:
	movq	_AUDIO_CMD_SYNC_ON@GOTPCREL(%rip), %rax
LBB0_45:
	movl	(%rax), %esi
LBB0_46:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_audcom                         ## TAILCALL
LBB0_47:
	movq	_AUDIO_CMD_MONO_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	testl	%eax, %eax
	jne	LBB0_4
## %bb.48:
	movl	56(%r14), %eax
	movq	_DVB_ADAC_CRYSTAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_55
## %bb.49:
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$2, %edx
	movl	$74, %ecx
	jmp	LBB0_53
LBB0_50:
	movq	_AUDIO_CMD_MONO_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_audcom
	testl	%eax, %eax
	jne	LBB0_4
## %bb.51:
	movl	56(%r14), %eax
	movq	_DVB_ADAC_CRYSTAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_57
## %bb.52:
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$2, %edx
	movl	$69, %ecx
LBB0_53:
	callq	_i2c_writereg
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_54:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_55:
	movq	_DVB_ADAC_MSP34x5@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_62
## %bb.56:
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$512, %ecx                      ## imm = 0x200
	jmp	LBB0_61
LBB0_57:
	movq	_DVB_ADAC_MSP34x5@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_62
## %bb.58:
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$528, %ecx                      ## imm = 0x210
	jmp	LBB0_61
LBB0_59:
	movq	_DVB_ADAC_MSP34x5@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_62
## %bb.60:
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$544, %ecx                      ## imm = 0x220
LBB0_61:
	callq	_msp_writereg
LBB0_62:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_27
	.long	L0_0_set_29
	.long	L0_0_set_31
	.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	_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	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x8, [x1, #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, x21
	bl	_dprintk
	cmp	w21, #141
	b.eq	LBB0_5
; %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_5
; %bb.2:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	sub	w8, w21, #128
	cmp	w8, #17
	b.hi	LBB0_9
; %bb.6:
	mov	w0, #0
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	w8, [x19, #40]
Lloh12:
	adrp	x9, _AUDIO_SOURCE_MEMORY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AUDIO_SOURCE_MEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_36
; %bb.8:
Lloh15:
	adrp	x8, _RP_AUDIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RP_AUDIO@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av7110_av_stop
	b	LBB0_37
LBB0_9:
Lloh18:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
Lloh20:
	adrp	x8, _AUDIO_CMD_MUTE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AUDIO_CMD_MUTE@GOTPAGEOFF]
Lloh22:
	adrp	x9, _AUDIO_CMD_UNMUTE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AUDIO_CMD_UNMUTE@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	cbnz	w0, LBB0_4
; %bb.11:
	str	w20, [x19, #24]
	b	LBB0_4
LBB0_12:
	ldp	w2, w1, [x20]
	mov	x0, x19
	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
	b	_av7110_set_volume
LBB0_13:
	ldr	w0, [x19, #20]
	bl	_FW_VERSION
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	mov	w9, #9761
	cmp	w0, w9
	csneg	w0, wzr, w8, ge
	str	w20, [x19, #32]
	b	LBB0_4
LBB0_14:
Lloh27:
	adrp	x8, _AUDIO_CMD_SYNC_ON@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AUDIO_CMD_SYNC_ON@GOTPAGEOFF]
Lloh29:
	adrp	x9, _AUDIO_CMD_SYNC_OFF@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AUDIO_CMD_SYNC_OFF@GOTPAGEOFF]
	str	w20, [x19, #28]
	cmp	x20, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	b	LBB0_27
LBB0_15:
	mov	w0, #0
	str	w20, [x19, #40]
	b	LBB0_4
LBB0_16:
	ldr	w8, [x19, #40]
Lloh31:
	adrp	x9, _AUDIO_SOURCE_MEMORY@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AUDIO_SOURCE_MEMORY@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.17:
Lloh34:
	adrp	x8, _RP_AUDIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RP_AUDIO@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av7110_av_start_play
	cbnz	w0, LBB0_4
LBB0_18:
Lloh37:
	adrp	x8, _AUDIO_CMD_UNMUTE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AUDIO_CMD_UNMUTE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	cbnz	w0, LBB0_4
; %bb.19:
Lloh40:
	adrp	x8, _AUDIO_PLAYING@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AUDIO_PLAYING@GOTPAGEOFF]
	b	LBB0_39
LBB0_20:
Lloh42:
	adrp	x8, _AUDIO_CMD_MUTE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AUDIO_CMD_MUTE@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	cbnz	w0, LBB0_4
; %bb.21:
Lloh45:
	adrp	x8, _AUDIO_PAUSED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AUDIO_PAUSED@GOTPAGEOFF]
	b	LBB0_39
LBB0_22:
	add	x1, x19, #24
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	b	LBB0_4
LBB0_23:
	ldr	w0, [x19, #20]
	bl	_FW_VERSION
Lloh47:
	adrp	x8, _AUDIO_CAP_LPCM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AUDIO_CAP_LPCM@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	mov	w9, #9760
	cmp	w0, w9
	b.gt	LBB0_40
; %bb.24:
	mov	w0, #0
Lloh50:
	adrp	x9, _AUDIO_CAP_MP1@GOTPAGE
Lloh51:
	ldr	x9, [x9, _AUDIO_CAP_MP1@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_41
LBB0_25:
	ldr	x8, [x19, #48]
Lloh53:
	adrp	x9, _AUDIO_PAUSED@GOTPAGE
Lloh54:
	ldr	x9, [x9, _AUDIO_PAUSED@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_57
; %bb.26:
Lloh56:
	adrp	x8, _AUDIO_PLAYING@GOTPAGE
Lloh57:
	ldr	x8, [x8, _AUDIO_PLAYING@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	str	x8, [x19, #48]
Lloh59:
	adrp	x8, _AUDIO_CMD_UNMUTE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _AUDIO_CMD_UNMUTE@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
Lloh62:
	adrp	x9, _AUDIO_CMD_PCM16@GOTPAGE
Lloh63:
	ldr	x9, [x9, _AUDIO_CMD_PCM16@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w1, w9, w8
LBB0_27:
	mov	x0, x19
	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
	b	_audcom
LBB0_28:
	add	x0, x19, #16
	bl	_dvb_ringbuffer_flush_spinlock_wakeup
	ldr	x0, [x19, #8]
	bl	_av7110_ipack_reset
	ldr	w8, [x19]
Lloh65:
	adrp	x9, _RP_AV@GOTPAGE
Lloh66:
	ldr	x9, [x9, _RP_AV@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_57
; %bb.29:
Lloh68:
	adrp	x8, _COMTYPE_REC_PLAY@GOTPAGE
Lloh69:
	ldr	x8, [x8, _COMTYPE_REC_PLAY@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
Lloh71:
	adrp	x8, ___Play@GOTPAGE
Lloh72:
	ldr	x8, [x8, ___Play@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
Lloh74:
	adrp	x8, _AV_PES@GOTPAGE
Lloh75:
	ldr	x8, [x8, _AV_PES@GOTPAGEOFF]
Lloh76:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w3, #2
	mov	w5, #0
	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
	b	_av7110_fw_cmd
LBB0_30:
	str	w20, [x19, #36]
	cmp	w20, #140
	b.eq	LBB0_42
; %bb.31:
	cmp	w20, #139
	b.eq	LBB0_45
; %bb.32:
	cmp	w20, #129
	b.ne	LBB0_49
; %bb.33:
Lloh77:
	adrp	x8, _AUDIO_CMD_STEREO@GOTPAGE
Lloh78:
	ldr	x8, [x8, _AUDIO_CMD_STEREO@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	cbnz	w0, LBB0_4
; %bb.34:
	ldr	w8, [x19, #56]
Lloh80:
	adrp	x9, _DVB_ADAC_CRYSTAL@GOTPAGE
Lloh81:
	ldr	x9, [x9, _DVB_ADAC_CRYSTAL@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_54
; %bb.35:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #2
	mov	w3, #73
	b	LBB0_48
LBB0_36:
Lloh83:
	adrp	x8, _AUDIO_CMD_MUTE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _AUDIO_CMD_MUTE@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
LBB0_37:
	cbnz	w0, LBB0_4
; %bb.38:
Lloh86:
	adrp	x8, _AUDIO_STOPPED@GOTPAGE
Lloh87:
	ldr	x8, [x8, _AUDIO_STOPPED@GOTPAGEOFF]
LBB0_39:
	ldr	x8, [x8]
	str	x8, [x19, #48]
	b	LBB0_4
LBB0_40:
	mov	w0, #0
Lloh88:
	adrp	x9, _AUDIO_CAP_DTS@GOTPAGE
Lloh89:
	ldr	x9, [x9, _AUDIO_CAP_DTS@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
Lloh91:
	adrp	x10, _AUDIO_CAP_AC3@GOTPAGE
Lloh92:
	ldr	x10, [x10, _AUDIO_CAP_AC3@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh93:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh94:
	adrp	x9, _AUDIO_CAP_MP1@GOTPAGE
Lloh95:
	ldr	x9, [x9, _AUDIO_CAP_MP1@GOTPAGEOFF]
Lloh96:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_41:
Lloh97:
	adrp	x9, _AUDIO_CAP_MP2@GOTPAGE
Lloh98:
	ldr	x9, [x9, _AUDIO_CAP_MP2@GOTPAGEOFF]
Lloh99:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	b	LBB0_4
LBB0_42:
Lloh100:
	adrp	x8, _AUDIO_CMD_MONO_L@GOTPAGE
Lloh101:
	ldr	x8, [x8, _AUDIO_CMD_MONO_L@GOTPAGEOFF]
Lloh102:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	cbnz	w0, LBB0_4
; %bb.43:
	ldr	w8, [x19, #56]
Lloh103:
	adrp	x9, _DVB_ADAC_CRYSTAL@GOTPAGE
Lloh104:
	ldr	x9, [x9, _DVB_ADAC_CRYSTAL@GOTPAGEOFF]
Lloh105:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_50
; %bb.44:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #2
	mov	w3, #74
	b	LBB0_48
LBB0_45:
Lloh106:
	adrp	x8, _AUDIO_CMD_MONO_R@GOTPAGE
Lloh107:
	ldr	x8, [x8, _AUDIO_CMD_MONO_R@GOTPAGEOFF]
Lloh108:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_audcom
	cbnz	w0, LBB0_4
; %bb.46:
	ldr	w8, [x19, #56]
Lloh109:
	adrp	x9, _DVB_ADAC_CRYSTAL@GOTPAGE
Lloh110:
	ldr	x9, [x9, _DVB_ADAC_CRYSTAL@GOTPAGEOFF]
Lloh111:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_52
; %bb.47:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #2
	mov	w3, #69
LBB0_48:
	bl	_i2c_writereg
	mov	w0, #0
	b	LBB0_4
LBB0_49:
Lloh112:
	adrp	x8, _EINVAL@GOTPAGE
Lloh113:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_50:
Lloh114:
	adrp	x9, _DVB_ADAC_MSP34x5@GOTPAGE
Lloh115:
	ldr	x9, [x9, _DVB_ADAC_MSP34x5@GOTPAGEOFF]
Lloh116:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_57
; %bb.51:
Lloh117:
	adrp	x8, _MSP_WR_DSP@GOTPAGE
Lloh118:
	ldr	x8, [x8, _MSP_WR_DSP@GOTPAGEOFF]
Lloh119:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	mov	w3, #512
	b	LBB0_56
LBB0_52:
Lloh120:
	adrp	x9, _DVB_ADAC_MSP34x5@GOTPAGE
Lloh121:
	ldr	x9, [x9, _DVB_ADAC_MSP34x5@GOTPAGEOFF]
Lloh122:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_57
; %bb.53:
Lloh123:
	adrp	x8, _MSP_WR_DSP@GOTPAGE
Lloh124:
	ldr	x8, [x8, _MSP_WR_DSP@GOTPAGEOFF]
Lloh125:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	mov	w3, #528
	b	LBB0_56
LBB0_54:
Lloh126:
	adrp	x9, _DVB_ADAC_MSP34x5@GOTPAGE
Lloh127:
	ldr	x9, [x9, _DVB_ADAC_MSP34x5@GOTPAGEOFF]
Lloh128:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_57
; %bb.55:
Lloh129:
	adrp	x8, _MSP_WR_DSP@GOTPAGE
Lloh130:
	ldr	x8, [x8, _MSP_WR_DSP@GOTPAGEOFF]
Lloh131:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	mov	w3, #544
LBB0_56:
	bl	_msp_writereg
	mov	w0, #0
	b	LBB0_4
LBB0_57:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_20-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_23-LBB0_4)>>2
	.byte	(LBB0_25-LBB0_4)>>2
	.byte	(LBB0_28-LBB0_4)>>2
	.byte	(LBB0_30-LBB0_4)>>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	_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
