	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vxge_hw_channel_dtr_alloc      ## -- Begin function vxge_hw_channel_dtr_alloc
	.p2align	4, 0x90
_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
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	jne	LBB0_1
## %bb.3:
	movq	24(%rdi), %rax
	movq	32(%rdi), %rdx
	cmpq	%rdx, %rax
	jle	LBB0_5
## %bb.4:
	movq	16(%rdi), %r8
	movq	40(%rdi), %rcx
	movq	%rcx, 16(%rdi)
	movq	%r8, 40(%rdi)
	movq	%rdx, 8(%rdi)
	movq	%rax, 32(%rdi)
	movq	48(%rdi), %rdx
	incl	4(%rdx)
	jmp	LBB0_2
LBB0_1:
	movq	16(%rdi), %rcx
LBB0_2:
	leaq	-1(%rax), %rdx
	movq	%rdx, (%rdi)
	movq	-8(%rcx,%rax,8), %rcx
	movq	_VXGE_HW_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	48(%rdi), %rax
	incl	(%rax)
	movq	_VXGE_HW_INF_OUT_OF_DESCRIPTORS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
LBB0_6:
	movq	%rcx, (%rsi)
	movl	(%rax), %eax
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vxge_hw_channel_dtr_alloc      ; -- Begin function vxge_hw_channel_dtr_alloc
	.p2align	2
_vxge_hw_channel_dtr_alloc:             ; @vxge_hw_channel_dtr_alloc
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldp	x8, x10, [x0, #24]
	cmp	x8, x10
	b.le	LBB0_5
; %bb.2:
	ldr	x11, [x0, #16]
	ldp	x9, x12, [x0, #40]
	stp	x10, x9, [x0, #8]
	stp	x8, x11, [x0, #32]
	ldr	w10, [x12, #4]
	add	w10, w10, #1
	str	w10, [x12, #4]
	b	LBB0_4
LBB0_3:
	ldr	x9, [x0, #16]
LBB0_4:
	sub	x8, x8, #1
	str	x8, [x0]
	ldr	x8, [x9, x8, lsl #3]
Lloh0:
	adrp	x9, _VXGE_HW_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VXGE_HW_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x8, #0
	ldr	x9, [x0, #48]
	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_6:
	str	x8, [x1]
	ldr	w0, [x9]
	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
.subsections_via_symbols
