	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioc3_alloc_rx_bufs
_ioc3_alloc_rx_bufs:                    ## @ioc3_alloc_rx_bufs
	.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
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_RX_BUFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r14
	leaq	-44(%rbp), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_ioc3_alloc_skb
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax
	movq	$0, (%rax)
	movl	-44(%rbp), %edi
	movq	_PCI64_ATTR_BAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioc3_map
	movl	%eax, %edi
	callq	_cpu_to_be64
	movq	16(%r13), %rcx
	movl	%eax, (%rcx,%rbx)
	incq	%r12
	movq	_RX_BUFFS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_5:
	movq	$0, 8(%r13)
	movl	%eax, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_BUFFS,4,2                   ## @RX_BUFFS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI64_ATTR_BAR,4,2             ## @PCI64_ATTR_BAR
	.no_dead_strip	_ioc3_alloc_rx_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioc3_alloc_rx_bufs
_ioc3_alloc_rx_bufs:                    ; @ioc3_alloc_rx_bufs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x20, _RX_BUFFS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RX_BUFFS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh2:
	adrp	x23, _PCI64_ATTR_BAR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PCI64_ATTR_BAR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x21
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	bl	_ioc3_alloc_skb
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	str	xzr, [x8]
	ldr	w0, [sp, #4]
	ldr	w1, [x23]
	bl	_ioc3_map
	bl	_cpu_to_be64
	ldr	x8, [x19, #16]
	str	w0, [x8, x21]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	str	xzr, [x19, #8]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_BUFFS,4,2                   ; @RX_BUFFS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI64_ATTR_BAR,4,2             ; @PCI64_ATTR_BAR
	.no_dead_strip	_ioc3_alloc_rx_bufs
.subsections_via_symbols
