	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_ts_queue_setup         ## -- Begin function saa7134_ts_queue_setup
	.p2align	4, 0x90
_saa7134_ts_queue_setup:                ## @saa7134_ts_queue_setup
	.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, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_TS_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %ebx
	movl	(%rsi), %esi
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movl	4(%rcx), %esi
	movl	%esi, (%r12)
LBB0_2:
	imull	%eax, %ebx
	movl	%ebx, %edi
	callq	_saa7134_buffer_count
	cmpl	$4, %eax
	movl	$3, %ecx
	cmovael	%eax, %ecx
	movl	%ecx, (%r12)
	movl	$1, (%r15)
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_PACKET_SIZE,4,2             ## @TS_PACKET_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_ts_queue_setup         ; -- Begin function saa7134_ts_queue_setup
	.p2align	2
_saa7134_ts_queue_setup:                ; @saa7134_ts_queue_setup
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x8, [x0]
	ldr	x10, [x8]
Lloh0:
	adrp	x8, _TS_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TS_PACKET_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x10]
	ldr	w1, [x1]
	cbnz	w1, LBB0_2
; %bb.1:
	ldr	w1, [x10, #4]
	str	w1, [x21]
LBB0_2:
	mul	w22, w9, w8
	mov	x0, x22
	bl	_saa7134_buffer_count
	mov	w8, #3
	cmp	w0, #3
	csel	w8, w0, w8, hi
	str	w8, [x21]
	mov	w8, #1
	str	w8, [x20]
	str	w22, [x19]
	mov	w0, #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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_PACKET_SIZE,4,2             ; @TS_PACKET_SIZE
.subsections_via_symbols
