	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw686x_queue_setup
_tw686x_queue_setup:                    ## @tw686x_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, %rbx
	callq	_vb2_get_drv_priv
	movl	4(%rax), %ecx
	imull	(%rax), %ecx
	movq	8(%rax), %rax
	imull	(%rax), %ecx
	movl	(%rbx), %eax
	movl	(%r12), %edx
	addl	%eax, %edx
	cmpl	$2, %edx
	ja	LBB0_2
## %bb.1:
	movl	$3, %edx
	subl	%eax, %edx
	movl	%edx, (%r12)
LBB0_2:
	sarl	$3, %ecx
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	cmpl	%ecx, (%r14)
	jae	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	%ecx, (%r14)
	movl	$1, (%r15)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tw686x_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw686x_queue_setup
_tw686x_queue_setup:                    ; @tw686x_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
	mov	x22, x0
	bl	_vb2_get_drv_priv
	ldp	w8, w9, [x0]
	mul	w8, w9, w8
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	mul	w8, w8, w9
	ldr	w9, [x22]
	ldr	w10, [x21]
	add	w10, w10, w9
	cmp	w10, #2
	b.hi	LBB0_2
; %bb.1:
	mov	w10, #3
	sub	w9, w10, w9
	str	w9, [x21]
LBB0_2:
	asr	w8, w8, #3
	ldr	w9, [x20]
	cbz	w9, LBB0_6
; %bb.3:
	cmp	w9, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x19]
	cmp	w9, w8
	b.hs	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	str	w8, [x19]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tw686x_queue_setup
.subsections_via_symbols
