	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz_init_rx_buffers
_ksz_init_rx_buffers:                   ## @ksz_init_rx_buffers
	.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
	cmpl	$0, 8(%rdi)
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	leaq	8(%rdi), %r12
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %r13
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	_set_rx_buf
	movq	-48(%rbp), %rdi
	movl	(%rbx), %esi
	callq	_set_rx_len
	movq	-48(%rbp), %rdi
	callq	_release_desc
	incl	%r15d
	cmpl	(%r12), %r15d
	jge	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_get_rx_pkt
	movq	-48(%rbp), %rdi
	callq	_DMA_BUFFER
	movq	%rax, %rbx
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %ecx
	cmpl	4(%r14), %ecx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_free_dma_buf
	movq	8(%rbx), %rax
	movl	4(%r14), %edi
	movl	%edi, (%rbx)
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %edi
	movl	%edi, (%rbx)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r12
	movl	(%r14), %r13d
	movq	%rax, %rdi
	callq	_skb_tail_pointer
	movl	(%rbx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movq	%r12, %r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_pci_map_single
	movl	%eax, %esi
	movl	%eax, 4(%rbx)
	jmp	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_ksz_init_rx_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz_init_rx_buffers
_ksz_init_rx_buffers:                   ; @ksz_init_rx_buffers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	ldr	w8, [x20, #8]!
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	mov	w23, #0
Lloh0:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21, #4]
	cbz	w1, LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	bl	_set_rx_buf
	ldr	x0, [sp, #8]
	ldr	w1, [x21]
	bl	_set_rx_len
	ldr	x0, [sp, #8]
	bl	_release_desc
	add	w23, w23, #1
	ldr	w8, [x20]
	cmp	w23, w8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_get_rx_pkt
	ldr	x0, [sp, #8]
	bl	_DMA_BUFFER
	mov	x21, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_free_dma_buf
	ldr	x0, [x21, #8]
	ldr	w8, [x19, #4]
	str	w8, [x21]
	cbnz	x0, LBB0_2
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	str	w8, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24]
	mov	x0, x8
	bl	_alloc_skb
	str	x0, [x21, #8]
	cbnz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21, #4]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w22, [x19]
	bl	_skb_tail_pointer
	mov	x1, x0
	ldr	w2, [x21]
	ldr	w3, [x25]
	mov	x0, x22
	bl	_pci_map_single
	mov	x1, x0
	str	w0, [x21, #4]
	b	LBB0_3
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_ksz_init_rx_buffers
.subsections_via_symbols
