	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxge_hw_channel_dtr_alloc
_vxge_hw_channel_dtr_alloc:             ## @vxge_hw_channel_dtr_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	jne	LBB0_1
## %bb.2:
	movq	16(%rbx), %rax
	cmpq	24(%rbx), %rax
	jle	LBB0_4
## %bb.3:
	movq	48(%rbx), %rdi
	movl	40(%rbx), %esi
	callq	_swap
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	%rcx, 8(%rbx)
	movq	%rax, 24(%rbx)
	movq	32(%rbx), %rcx
	incl	4(%rcx)
LBB0_1:
	movq	48(%rbx), %rcx
	leaq	-1(%rax), %rdx
	movq	%rdx, (%rbx)
	movq	-8(%rcx,%rax,8), %rcx
	movq	_VXGE_HW_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	32(%rbx), %rax
	incl	(%rax)
	movq	_VXGE_HW_INF_OUT_OF_DESCRIPTORS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
LBB0_5:
	movq	%rcx, (%r14)
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VXGE_HW_OK,4,2                 ## @VXGE_HW_OK
	.comm	_VXGE_HW_INF_OUT_OF_DESCRIPTORS,4,2 ## @VXGE_HW_INF_OUT_OF_DESCRIPTORS
	.no_dead_strip	_vxge_hw_channel_dtr_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxge_hw_channel_dtr_alloc
_vxge_hw_channel_dtr_alloc:             ; @vxge_hw_channel_dtr_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldp	x8, x9, [x20, #16]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:
	ldr	x0, [x20, #48]
	ldr	w1, [x20, #40]
	bl	_swap
	ldp	x8, x9, [x20, #16]
	str	x9, [x20, #8]
	str	x8, [x20, #24]
	ldr	x9, [x20, #32]
	ldr	w10, [x9, #4]
	add	w10, w10, #1
	str	w10, [x9, #4]
LBB0_3:
	ldr	x9, [x20, #48]
	sub	x8, x8, #1
	str	x8, [x20]
	ldr	x8, [x9, x8, lsl #3]
Lloh0:
	adrp	x9, _VXGE_HW_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VXGE_HW_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x8, #0
	ldr	x9, [x20, #32]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
Lloh2:
	adrp	x9, _VXGE_HW_INF_OUT_OF_DESCRIPTORS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VXGE_HW_INF_OUT_OF_DESCRIPTORS@GOTPAGEOFF]
LBB0_5:
	str	x8, [x19]
	ldr	w0, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VXGE_HW_OK,4,2                 ; @VXGE_HW_OK
	.comm	_VXGE_HW_INF_OUT_OF_DESCRIPTORS,4,2 ; @VXGE_HW_INF_OUT_OF_DESCRIPTORS
	.no_dead_strip	_vxge_hw_channel_dtr_alloc
.subsections_via_symbols
