	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_alloc_memory
_xgbe_alloc_memory:                     ## @xgbe_alloc_memory
	.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	%rdi, %rbx
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, 32(%rbx)
	movq	%rax, 40(%rbx)
	movq	$0, 24(%rbx)
LBB0_2:
	movq	48(%rbx), %rdi
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
LBB0_4:
	movl	(%rdi), %esi
	callq	_xgbe_calc_rx_buf_size
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_xgbe_alloc_channels
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	*56(%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_xgbe_free_memory
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_xgbe_init_timers
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xgbe_alloc_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_alloc_memory
_xgbe_alloc_memory:                     ; @xgbe_alloc_memory
	.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, x0
	ldr	x0, [x0, #48]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	stp	x8, x8, [x19, #32]
	str	xzr, [x19, #24]
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	stp	xzr, x8, [x19, #8]
LBB0_4:
	ldr	w1, [x0]
	bl	_xgbe_calc_rx_buf_size
	str	w0, [x19]
	mov	x0, x19
	bl	_xgbe_alloc_channels
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x19, #56]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_xgbe_free_memory
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_xgbe_init_timers
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xgbe_alloc_memory
.subsections_via_symbols
