	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rocker_port_dma_rings_init
_rocker_port_dma_rings_init:            ## @rocker_port_dma_rings_init
	.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, %rbx
	movq	16(%rdi), %r14
	movl	12(%rdi), %edi
	callq	_ROCKER_DMA_TX
	movq	_ROCKER_DMA_TX_DEFAULT_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rcx
	callq	_rocker_dma_ring_create
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_13
LBB0_2:
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_ROCKER_DMA_TX_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rocker_dma_ring_bufs_alloc
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_12
LBB0_4:
	movl	12(%rbx), %edi
	callq	_ROCKER_DMA_RX
	movq	_ROCKER_DMA_RX_DEFAULT_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	4(%rbx), %r12
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rcx
	callq	_rocker_dma_ring_create
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_11
LBB0_6:
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ROCKER_DMA_RX_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rocker_dma_ring_bufs_alloc
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_rocker_dma_rx_ring_skbs_alloc
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_netdev_err
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rocker_dma_ring_bufs_free
LBB0_10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rocker_dma_ring_destroy
LBB0_11:
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rocker_dma_ring_bufs_free
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rocker_dma_ring_destroy
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rocker_dma_ring_pass_to_producer
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ROCKER_DMA_TX_DEFAULT_SIZE,4,2 ## @ROCKER_DMA_TX_DEFAULT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create tx dma ring\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_ROCKER_DMA_TX_DESC_SIZE,4,2    ## @ROCKER_DMA_TX_DESC_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"failed to alloc tx dma ring buffers\n"

	.comm	_ROCKER_DMA_RX_DEFAULT_SIZE,4,2 ## @ROCKER_DMA_RX_DEFAULT_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"failed to create rx dma ring\n"

	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ## @PCI_DMA_BIDIRECTIONAL
	.comm	_ROCKER_DMA_RX_DESC_SIZE,4,2    ## @ROCKER_DMA_RX_DESC_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"failed to alloc rx dma ring buffers\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to alloc rx dma ring skbs\n"

	.no_dead_strip	_rocker_port_dma_rings_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rocker_port_dma_rings_init
_rocker_port_dma_rings_init:            ; @rocker_port_dma_rings_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w0, [x0, #12]
	bl	_ROCKER_DMA_TX
	mov	x1, x0
Lloh0:
	adrp	x8, _ROCKER_DMA_TX_DEFAULT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROCKER_DMA_TX_DEFAULT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_rocker_dma_ring_create
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_13
LBB0_2:
Lloh5:
	adrp	x23, _PCI_DMA_TODEVICE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh7:
	adrp	x8, _ROCKER_DMA_TX_DESC_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ROCKER_DMA_TX_DESC_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_rocker_dma_ring_bufs_alloc
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	b	LBB0_12
LBB0_4:
	ldr	w0, [x19, #12]
	bl	_ROCKER_DMA_RX
	mov	x1, x0
Lloh12:
	adrp	x8, _ROCKER_DMA_RX_DEFAULT_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ROCKER_DMA_RX_DEFAULT_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x22, x19, #4
	mov	x0, x20
	mov	x3, x22
	bl	_rocker_dma_ring_create
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_err
	b	LBB0_11
LBB0_6:
Lloh17:
	adrp	x24, _PCI_DMA_BIDIRECTIONAL@GOTPAGE
Lloh18:
	ldr	x24, [x24, _PCI_DMA_BIDIRECTIONAL@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh19:
	adrp	x8, _ROCKER_DMA_RX_DESC_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ROCKER_DMA_RX_DESC_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_rocker_dma_ring_bufs_alloc
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_err
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_rocker_dma_rx_ring_skbs_alloc
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.9:
	ldr	w0, [x19, #8]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_err
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x22
	bl	_rocker_dma_ring_bufs_free
LBB0_10:
	mov	x0, x20
	mov	x1, x22
	bl	_rocker_dma_ring_destroy
LBB0_11:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_rocker_dma_ring_bufs_free
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_rocker_dma_ring_destroy
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x20
	mov	x1, x22
	bl	_rocker_dma_ring_pass_to_producer
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ROCKER_DMA_TX_DEFAULT_SIZE,4,2 ; @ROCKER_DMA_TX_DEFAULT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create tx dma ring\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_ROCKER_DMA_TX_DESC_SIZE,4,2    ; @ROCKER_DMA_TX_DESC_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"failed to alloc tx dma ring buffers\n"

	.comm	_ROCKER_DMA_RX_DEFAULT_SIZE,4,2 ; @ROCKER_DMA_RX_DEFAULT_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"failed to create rx dma ring\n"

	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ; @PCI_DMA_BIDIRECTIONAL
	.comm	_ROCKER_DMA_RX_DESC_SIZE,4,2    ; @ROCKER_DMA_RX_DESC_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"failed to alloc rx dma ring buffers\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to alloc rx dma ring skbs\n"

	.no_dead_strip	_rocker_port_dma_rings_init
.subsections_via_symbols
