	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___vxge_hw_channel_allocate     ## -- Begin function __vxge_hw_channel_allocate
	.p2align	4, 0x90
___vxge_hw_channel_allocate:            ## @__vxge_hw_channel_allocate
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	8(%rax), %r12
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	andl	$-2, %eax
	xorl	%edi, %edi
	cmpl	$128, %eax
	sete	%dil
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$96, %rdi
	callq	_INIT_LIST_HEAD
	movl	4(%r12), %eax
	movl	%eax, 92(%rbx)
	movl	(%r12), %eax
	movl	%eax, 88(%rbx)
	movl	%r14d, (%rbx)
	movq	%r12, 80(%rbx)
	movq	%r13, 72(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	%r15d, 8(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%rbx)
	leal	(,%r15,8), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_kzalloc
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_kzalloc
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	%r15d, 16(%rbx)
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_kzalloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%r15d, 20(%rbx)
	movq	$0, 32(%rbx)
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_kzalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	___vxge_hw_channel_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___vxge_hw_channel_allocate     ; -- Begin function __vxge_hw_channel_allocate
	.p2align	2
___vxge_hw_channel_allocate:            ; @__vxge_hw_channel_allocate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x8, [x0]
	ldr	x27, [x8, #8]
	ldr	w26, [x8]
	and	w8, w1, #0xfffffffe
	cmp	w8, #128
	cset	w8, eq
	lsl	w0, w8, #2
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	add	x0, x19, #96
	bl	_INIT_LIST_HEAD
	ldr	d0, [x27]
	str	d0, [x19, #88]
	stp	x24, x27, [x19, #72]
	str	x22, [x19, #64]
	stp	w23, w21, [x19]
	stp	w20, w26, [x19, #8]
	lsl	w21, w20, #3
	ldr	w1, [x25]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w1, [x25]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_5
; %bb.3:
	str	w20, [x19, #16]
	ldr	w1, [x25]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_5
; %bb.4:
	str	w20, [x19, #20]
	str	xzr, [x19, #32]
	ldr	w1, [x25]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #24]
	cbnz	x0, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	___vxge_hw_channel_free
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
