	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm8211_alloc_rings
_adm8211_alloc_rings:                   ## @adm8211_alloc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movl	4(%rbx), %edi
	addl	(%rbx), %edi
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 40(%rbx)
	movl	4(%rbx), %esi
	addl	%ecx, %esi
	shll	$2, %esi
	movl	56(%rbx), %edi
	leaq	8(%rbx), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movslq	(%rbx), %rcx
	addq	%rcx, %rax
	movq	%rax, 32(%rbx)
	shlq	$2, %rcx
	addq	8(%rbx), %rcx
	movq	%rcx, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	48(%rbx), %rdi
	addq	$40, %rbx
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_adm8211_alloc_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm8211_alloc_rings
_adm8211_alloc_rings:                   ; @adm8211_alloc_rings
	.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
	ldr	x19, [x0]
	ldp	w8, w9, [x19]
	add	w8, w9, w8
	lsl	w0, w8, #2
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_4
; %bb.1:
	ldrsw	x8, [x19]
	add	x9, x0, x8, lsl #2
	mov	x20, x19
	str	x9, [x20, #40]!
	ldur	w9, [x20, #-36]
	add	w8, w9, w8
	lsl	w1, w8, #2
	ldr	w0, [x20, #16]
	sub	x2, x20, #32
	bl	_pci_alloc_consistent
	stur	x0, [x20, #-16]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	ldrsw	x9, [x19]
	add	x8, x8, x9
	str	x8, [x19, #32]
	ldr	x8, [x19, #8]
	add	x8, x8, x9, lsl #2
	str	x8, [x19, #16]
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #48]
	bl	_kfree
	stp	xzr, xzr, [x20]
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_adm8211_alloc_rings
.subsections_via_symbols
