	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_queues
_init_queues:                           ## @init_queues
	.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
	movq	%rdi, %r15
	movq	_ports_open@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_dma_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_3
LBB0_2:
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rsi
	movq	_POOL_ALLOC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movl	$32, %ecx
	xorl	%r8d, %r8d
	callq	_dma_pool_create
	movl	%eax, %edi
	movq	_dma_pool@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	testl	%edi, %edi
	je	LBB0_11
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	32(%r15), %rdx
	callq	_dma_pool_alloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	_POOL_ALLOC_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	(%r15), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	16(%r15), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_RX_DESCS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.5:
	xorl	%ebx, %ebx
	movq	_RX_BUFF_SIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rx_desc_ptr
	movq	%rax, %r14
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r12
	movq	_MAX_MRU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	8(%r15), %rdi
	movl	(%r13), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_dma_map_single
	movl	%eax, (%r14)
	movq	8(%r15), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, (%r14)
	movq	(%r15), %rax
	movq	%r12, (%rax,%rbx,8)
	incq	%rbx
	movq	_RX_DESCS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
## %bb.9:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	%r12, %rdi
	callq	_free_buffer
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ports_open,4,2                 ## @ports_open
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.comm	_POOL_ALLOC_SIZE,4,2            ## @POOL_ALLOC_SIZE
	.comm	_dma_pool,4,2                   ## @dma_pool
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RX_DESCS,4,2                   ## @RX_DESCS
	.comm	_RX_BUFF_SIZE,4,2               ## @RX_BUFF_SIZE
	.comm	_MAX_MRU,4,2                    ## @MAX_MRU
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.no_dead_strip	_init_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_queues
_init_queues:                           ; @init_queues
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ports_open@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ports_open@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _dma_pool@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dma_pool@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
Lloh9:
	adrp	x8, _POOL_ALLOC_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POOL_ALLOC_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w3, #32
	mov	w4, #0
	bl	_dma_pool_create
Lloh12:
	adrp	x8, _dma_pool@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dma_pool@GOTPAGEOFF]
Lloh14:
	str	w0, [x8]
	cbz	w0, LBB0_10
LBB0_3:
Lloh15:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, x19, #32
	bl	_dma_pool_alloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_10
; %bb.4:
Lloh17:
	adrp	x8, _POOL_ALLOC_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _POOL_ALLOC_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh20:
	adrp	x24, _RX_DESCS@GOTPAGE
Lloh21:
	ldr	x24, [x24, _RX_DESCS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x20, #0
Lloh22:
	adrp	x25, _RX_BUFF_SIZE@GOTPAGE
Lloh23:
	ldr	x25, [x25, _RX_BUFF_SIZE@GOTPAGEOFF]
Lloh24:
	adrp	x26, _MAX_MRU@GOTPAGE
Lloh25:
	ldr	x26, [x26, _MAX_MRU@GOTPAGEOFF]
Lloh26:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh27:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh28:
	adrp	x28, _NET_IP_ALIGN@GOTPAGE
Lloh29:
	ldr	x28, [x28, _NET_IP_ALIGN@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_rx_desc_ptr
	mov	x21, x0
	ldr	w0, [x25]
	ldr	w1, [x23]
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	w8, [x26]
	str	w8, [x21, #4]
	ldr	x0, [x19, #8]
	ldr	w2, [x25]
	ldr	w3, [x27]
	mov	x1, x22
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x21]
	ldr	x0, [x19, #8]
	bl	_dma_mapping_error
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x28]
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
	ldr	x8, [x19]
	str	x22, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldrsw	x8, [x24]
	cmp	x20, x8
	b.lt	LBB0_6
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
LBB0_13:
	mov	x0, x22
	bl	_free_buffer
Lloh32:
	adrp	x8, _EIO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ports_open,4,2                 ; @ports_open
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.comm	_POOL_ALLOC_SIZE,4,2            ; @POOL_ALLOC_SIZE
	.comm	_dma_pool,4,2                   ; @dma_pool
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RX_DESCS,4,2                   ; @RX_DESCS
	.comm	_RX_BUFF_SIZE,4,2               ; @RX_BUFF_SIZE
	.comm	_MAX_MRU,4,2                    ; @MAX_MRU
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.no_dead_strip	_init_queues
.subsections_via_symbols
