	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_write_to_decoder        ## -- Begin function av7110_write_to_decoder
	.p2align	4, 0x90
_av7110_write_to_decoder:               ## @av7110_write_to_decoder
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movq	8(%rbx), %r12
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r12, %rdx
	callq	_dprintk
	cmpq	$0, 8(%r12)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	movq	_DMX_MEMORY_FE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_7
LBB0_2:
	movl	(%r13), %esi
	cmpl	$1, %esi
	je	LBB0_8
## %bb.3:
	movl	$-1, %eax
	testl	%esi, %esi
	jne	LBB0_7
## %bb.4:
	movl	4(%r12), %eax
	movq	_AUDIO_SOURCE_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_9:
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_ts_to_decoder            ## TAILCALL
LBB0_8:
	movl	(%r12), %eax
	movq	_VIDEO_SOURCE_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"av7110:%p, \n"

	.comm	_DMX_MEMORY_FE,8,3              ## @DMX_MEMORY_FE
	.comm	_AUDIO_SOURCE_MEMORY,4,2        ## @AUDIO_SOURCE_MEMORY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VIDEO_SOURCE_MEMORY,4,2        ## @VIDEO_SOURCE_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_write_to_decoder        ; -- Begin function av7110_write_to_decoder
	.p2align	2
_av7110_write_to_decoder:               ; @av7110_write_to_decoder
	.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, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	x21, [x23, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x21
	bl	_dprintk
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _DMX_MEMORY_FE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMX_MEMORY_FE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_2:
	ldr	w1, [x22]
	cmp	w1, #1
	b.eq	LBB0_6
; %bb.3:
	cbnz	w1, LBB0_10
; %bb.4:
	ldr	w8, [x21, #4]
Lloh5:
	adrp	x9, _AUDIO_SOURCE_MEMORY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AUDIO_SOURCE_MEMORY@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _VIDEO_SOURCE_MEMORY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VIDEO_SOURCE_MEMORY@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	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
	b	_write_ts_to_decoder
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"av7110:%p, \n"

	.comm	_DMX_MEMORY_FE,8,3              ; @DMX_MEMORY_FE
	.comm	_AUDIO_SOURCE_MEMORY,4,2        ; @AUDIO_SOURCE_MEMORY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VIDEO_SOURCE_MEMORY,4,2        ; @VIDEO_SOURCE_MEMORY
.subsections_via_symbols
