	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cnic_alloc_uio_rings
___cnic_alloc_uio_rings:                ## @__cnic_alloc_uio_rings
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpq	$0, 32(%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	movq	(%rax), %r13
	movq	_BNX2_PAGE_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movl	%esi, (%rdi)
	movq	24(%rdi), %rdi
	leaq	40(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movq	___GFP_COMP@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%r15), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%r13), %edi
	incl	%edi
	imull	4(%r13), %edi
	movl	%edi, 4(%rbx)
	callq	_PAGE_ALIGN
	movl	%eax, 4(%rbx)
	movq	24(%rbx), %rdi
	leaq	16(%rbx), %rdx
	movl	(%r12), %ecx
	orl	(%r15), %ecx
	movl	%eax, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	___cnic_free_uio_rings
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_PAGE_SIZE,4,2             ## @BNX2_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_COMP,4,2                 ## @__GFP_COMP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	___cnic_alloc_uio_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cnic_alloc_uio_rings
___cnic_alloc_uio_rings:                ; @__cnic_alloc_uio_rings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #48]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _BNX2_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w1, w8, w1
	str	w1, [x0]
	ldr	x0, [x0, #24]
Lloh3:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	add	x2, x19, #40
	ldr	w8, [x20]
Lloh5:
	adrp	x21, ___GFP_COMP@GOTPAGE
Lloh6:
	ldr	x21, [x21, ___GFP_COMP@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w3, w9, w8
	bl	_dma_alloc_coherent
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.3:
	ldp	w8, w9, [x22]
	madd	w0, w9, w8, w9
	str	w0, [x19, #4]
	bl	_PAGE_ALIGN
	mov	x1, x0
	str	w0, [x19, #4]
	ldr	x0, [x19, #24]
	add	x2, x19, #16
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w3, w9, w8
	bl	_dma_alloc_coherent
	str	x0, [x19, #8]
	cbnz	x0, LBB0_1
; %bb.4:
	mov	x0, x19
	bl	___cnic_free_uio_rings
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_PAGE_SIZE,4,2             ; @BNX2_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_COMP,4,2                 ; @__GFP_COMP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	___cnic_alloc_uio_rings
.subsections_via_symbols
