	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_setup
_queue_setup:                           ## @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	%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), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %r13d
	cmpl	$48, %r13d
	jl	LBB0_6
## %bb.1:
	movl	4(%rbx), %eax
	cmpl	$32, %eax
	jl	LBB0_6
## %bb.2:
	movq	%rcx, %r14
	movl	%r13d, %ecx
	shrl	$2, %ecx
	cmpl	16(%rbx), %ecx
	jg	LBB0_6
## %bb.3:
	movl	%eax, %ecx
	shrl	$2, %ecx
	cmpl	20(%rbx), %ecx
	jg	LBB0_6
## %bb.4:
	cmpl	8(%rbx), %r13d
	jg	LBB0_6
## %bb.5:
	cmpl	12(%rbx), %eax
	jle	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	24(%rbx), %rcx
	imull	(%rcx), %r13d
	imull	%eax, %r13d
	sarl	$3, %r13d
	movl	(%rsi), %esi
	movl	%r13d, %edi
	callq	_saa7134_buffer_count
	movl	%eax, (%r12)
	movl	$1, (%r15)
	movl	%r13d, (%r14)
	movq	%rbx, %rdi
	callq	_saa7134_enable_analog_tuner
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_setup
_queue_setup:                           ; @queue_setup
	.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
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	w8, [x21]
	cmp	w8, #48
	b.lt	LBB0_6
; %bb.1:
	ldr	w9, [x21, #4]
	cmp	w9, #32
	b.lt	LBB0_6
; %bb.2:
	ldr	w10, [x21, #16]
	cmp	w10, w8, lsr #2
	b.lt	LBB0_6
; %bb.3:
	ldr	w10, [x21, #20]
	cmp	w10, w9, lsr #2
	b.lt	LBB0_6
; %bb.4:
	ldr	w10, [x21, #8]
	cmp	w8, w10
	b.gt	LBB0_6
; %bb.5:
	ldr	w10, [x21, #12]
	cmp	w9, w10
	b.le	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	ldr	x10, [x21, #24]
	ldr	w10, [x10]
	mul	w8, w8, w10
	mul	w8, w8, w9
	asr	w23, w8, #3
	ldr	w1, [x1]
	mov	x0, x23
	bl	_saa7134_buffer_count
	str	w0, [x22]
	mov	w8, #1
	str	w8, [x20]
	str	w23, [x19]
	mov	x0, x21
	bl	_saa7134_enable_analog_tuner
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_queue_setup
.subsections_via_symbols
