	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bigmac_init_rings
_bigmac_init_rings:                     ## @bigmac_init_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
	movq	%rdi, %r15
	movq	48(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_in_interrupt
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r15)
	movups	%xmm0, 16(%r15)
	movq	%r15, %rdi
	callq	_bigmac_clean_rings
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.4:
	xorl	%r12d, %r12d
	movq	_RX_BUF_ALLOC_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_big_mac_alloc_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movq	%rbx, (%rax,%r12,8)
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_put
	movq	%rbx, %rdi
	movl	$34, %esi
	callq	_skb_reserve
	movq	(%r15), %rdi
	movl	(%rbx), %esi
	movl	(%r13), %edx
	addl	$-34, %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	%eax, 4(%rcx,%r12,8)
	movl	(%r13), %eax
	addl	$-34, %eax
	movq	_RXD_LENGTH@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_RXD_OWN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx,%r12,8)
	jmp	LBB0_7
LBB0_8:
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	shlq	$4, %rsi
	callq	___bzero
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_RX_BUF_ALLOC_SIZE,4,2          ## @RX_BUF_ALLOC_SIZE
	.comm	_ETH_FRAME_LEN,4,2              ## @ETH_FRAME_LEN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_RXD_OWN,4,2                    ## @RXD_OWN
	.comm	_RXD_LENGTH,4,2                 ## @RXD_LENGTH
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.no_dead_strip	_bigmac_init_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bigmac_init_rings
_bigmac_init_rings:                     ; @bigmac_init_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
	mov	x19, x0
	ldr	x22, [x0, #48]
	cbnz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_in_interrupt
	cbz	x0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_3:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
	mov	x0, x19
	bl	_bigmac_clean_rings
Lloh6:
	adrp	x23, _RX_RING_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x24, #0
	mov	x25, #0
Lloh8:
	adrp	x26, _RX_BUF_ALLOC_SIZE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _RX_BUF_ALLOC_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x27, _RXD_OWN@GOTPAGE
Lloh11:
	ldr	x27, [x27, _RXD_OWN@GOTPAGEOFF]
Lloh12:
	adrp	x28, _RXD_LENGTH@GOTPAGE
Lloh13:
	ldr	x28, [x28, _RXD_LENGTH@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #8
	cmp	x25, x8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	mov	x1, x20
	bl	_big_mac_alloc_skb
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	x8, [x19, #8]
	str	x0, [x8, x24]
Lloh14:
	adrp	x8, _ETH_FRAME_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_skb_put
	mov	x0, x21
	mov	w1, #34
	bl	_skb_reserve
	ldr	x0, [x19]
	ldr	w1, [x21]
	ldr	w8, [x26]
	sub	w2, w8, #34
Lloh17:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	bl	_dma_map_single
	ldr	x8, [x22, #8]
	add	x8, x8, x24
	str	w0, [x8, #4]
	ldr	w9, [x27]
	ldr	w10, [x26]
	sub	w10, w10, #34
	ldr	w11, [x28]
	and	w10, w10, w11
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_5
LBB0_8:
Lloh20:
	adrp	x8, _TX_RING_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TX_RING_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	x0, [x22]
	lsl	x1, x8, #4
	bl	_bzero
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_RX_BUF_ALLOC_SIZE,4,2          ; @RX_BUF_ALLOC_SIZE
	.comm	_ETH_FRAME_LEN,4,2              ; @ETH_FRAME_LEN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_RXD_OWN,4,2                    ; @RXD_OWN
	.comm	_RXD_LENGTH,4,2                 ; @RXD_LENGTH
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.no_dead_strip	_bigmac_init_rings
.subsections_via_symbols
