	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cobalt_queue_setup
_cobalt_queue_setup:                    ## @cobalt_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
	movq	(%rdi), %rax
	movl	4(%rax), %r8d
	imull	(%rax), %r8d
	movl	(%rsi), %eax
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	movl	$3, (%rsi)
	movl	$3, %eax
LBB0_2:
	movq	_NR_BUFS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%edi, %eax
	jbe	LBB0_4
## %bb.3:
	movl	%edi, (%rsi)
LBB0_4:
	cmpl	$0, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpl	%r8d, (%rcx)
	cmovael	%esi, %eax
	popq	%rbp
	retq
LBB0_6:
	movl	$1, (%rdx)
	movl	%r8d, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_BUFS,4,2                    ## @NR_BUFS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cobalt_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cobalt_queue_setup
_cobalt_queue_setup:                    ; @cobalt_queue_setup
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	ldp	w8, w9, [x9]
	ldr	w10, [x1]
	cmp	w10, #2
	b.hi	LBB0_2
; %bb.1:
	mov	w10, #3
	str	w10, [x1]
LBB0_2:
Lloh0:
	adrp	x11, _NR_BUFS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NR_BUFS@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ls	LBB0_4
; %bb.3:
	str	w11, [x1]
LBB0_4:
	mul	w8, w9, w8
	ldr	w9, [x2]
	cbz	w9, LBB0_6
; %bb.5:
	ldr	w9, [x3]
Lloh3:
	adrp	x10, _EINVAL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w8
	csneg	w0, wzr, w10, hs
	ret
LBB0_6:
	mov	w0, #0
	mov	w9, #1
	str	w9, [x2]
	str	w8, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_BUFS,4,2                    ; @NR_BUFS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cobalt_queue_setup
.subsections_via_symbols
