	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioc3_alloc_rings
_ioc3_alloc_rings:                      ## @ioc3_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	%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
	callq	_netdev_priv
	movq	%rax, %r15
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.10:
	cmpq	$0, 32(%r15)
	jne	LBB0_14
	jmp	LBB0_11
LBB0_1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	movq	%rax, %r14
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_3:
	movq	_RX_BUFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:
	movq	_RX_OFFSET@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	48(%r15), %rax
	movq	%rbx, (%rax,%r12,8)
	movq	(%r13), %rsi
	movl	$1664, %eax                     ## imm = 0x680
	addq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_skb_put
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_ioc3_map
	movl	%eax, %edi
	callq	_cpu_to_be64
	movq	%rax, (%r14,%r12,8)
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_skb_reserve
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movq	_RX_BUFFS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RX_BUF_ALLOC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioc3_alloc_skb
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_show_free_areas
	jmp	LBB0_8
LBB0_9:
	movq	$0, 40(%r15)
	movl	%eax, 8(%r15)
	cmpq	$0, 32(%r15)
	jne	LBB0_14
LBB0_11:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	___get_free_pages
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
LBB0_13:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioc3_alloc_rings(): get_zeroed_page() failed!\n"

	.comm	_RX_BUFFS,4,2                   ## @RX_BUFFS
	.comm	_RX_BUF_ALLOC_SIZE,4,2          ## @RX_BUF_ALLOC_SIZE
	.comm	_RX_OFFSET,8,3                  ## @RX_OFFSET
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"ioc3_alloc_rings(): __get_free_pages() failed!\n"

	.no_dead_strip	_ioc3_alloc_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioc3_alloc_rings
_ioc3_alloc_rings:                      ; @ioc3_alloc_rings
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_14
	b	LBB0_11
LBB0_2:
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_get_zeroed_page
	mov	x20, x0
	str	x0, [x19]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_4:
Lloh4:
	adrp	x23, _RX_BUFFS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _RX_BUFFS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x24, #0
Lloh6:
	adrp	x25, _RX_BUF_ALLOC_SIZE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _RX_BUF_ALLOC_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _RX_OFFSET@GOTPAGE
Lloh9:
	ldr	x26, [x26, _RX_OFFSET@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x0
	ldr	x8, [x19, #48]
	lsl	x27, x24, #3
	str	x0, [x8, x27]
	ldr	x8, [x26]
	add	x1, x8, #1664
	bl	_skb_put
	ldr	x0, [x21]
	mov	w1, #1
	bl	_ioc3_map
	bl	_cpu_to_be64
	str	x0, [x20, x27]
	ldr	x1, [x26]
	mov	x0, x21
	bl	_skb_reserve
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	ldr	w1, [x22]
	bl	_ioc3_alloc_skb
	cbnz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_show_free_areas
	b	LBB0_7
LBB0_10:
	str	xzr, [x19, #40]
	str	w8, [x19, #8]
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_14
LBB0_11:
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #2
	bl	___get_free_pages
	str	x0, [x19, #32]
	cbnz	x0, LBB0_13
; %bb.12:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
LBB0_13:
	stp	xzr, xzr, [x19, #16]
LBB0_14:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioc3_alloc_rings(): get_zeroed_page() failed!\n"

	.comm	_RX_BUFFS,4,2                   ; @RX_BUFFS
	.comm	_RX_BUF_ALLOC_SIZE,4,2          ; @RX_BUF_ALLOC_SIZE
	.comm	_RX_OFFSET,8,3                  ; @RX_OFFSET
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"ioc3_alloc_rings(): __get_free_pages() failed!\n"

	.no_dead_strip	_ioc3_alloc_rings
.subsections_via_symbols
