	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_rx_refill
_bcm_sysport_rx_refill:                 ## @bcm_sysport_rx_refill
	.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
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	16(%rdi), %r15
	movq	_RX_BUF_LENGTH@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_dma_map_single
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	incl	(%r14)
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_1:
	incl	4(%r14)
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
LBB0_2:
	callq	_netif_err
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rbx
	movq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movq	_RX_BUF_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_unmap_single
LBB0_7:
	movq	%r13, 8(%rbx)
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_dma_unmap_addr_set
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dma_desc_set_addr
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_netif_dbg
LBB0_8:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_BUF_LENGTH,4,2              ## @RX_BUF_LENGTH
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SKB alloc failed\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"DMA mapping failure\n"

	.comm	_dma_addr,4,2                   ## @dma_addr
	.comm	_rx_status,4,2                  ## @rx_status
L_.str.2:                               ## @.str.2
	.asciz	"RX refill\n"

	.no_dead_strip	_bcm_sysport_rx_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sysport_rx_refill
_bcm_sysport_rx_refill:                 ; @bcm_sysport_rx_refill
	.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	x21, x1
	mov	x20, x0
	ldp	x19, x24, [x0, #8]
Lloh0:
	adrp	x26, _RX_BUF_LENGTH@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RX_BUF_LENGTH@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	w1, [x0]
	ldr	w2, [x26]
Lloh2:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x27]
	mov	x0, x24
	bl	_dma_map_single
	mov	x25, x0
	mov	x0, x24
	mov	x1, x25
	bl	_dma_mapping_error
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x22
	bl	_dev_kfree_skb_any
Lloh4:
	adrp	x8, _rx_err@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
Lloh9:
	adrp	x8, _rx_err@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	mov	x23, #0
	b	LBB0_8
LBB0_5:
	ldr	x23, [x21, #8]
	mov	x0, x23
	bl	_likely
Lloh14:
	adrp	x28, _dma_addr@GOTPAGE
Lloh15:
	ldr	x28, [x28, _dma_addr@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x28]
	mov	x0, x21
	bl	_dma_unmap_addr
	mov	x1, x0
	ldr	w2, [x26]
	ldr	w3, [x27]
	mov	x0, x24
	bl	_dma_unmap_single
LBB0_7:
	str	x22, [x21, #8]
	ldr	w1, [x28]
	mov	x0, x21
	mov	x2, x25
	bl	_dma_unmap_addr_set
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x25
	bl	_dma_desc_set_addr
Lloh16:
	adrp	x8, _rx_status@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rx_status@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_dbg
LBB0_8:
	mov	x0, x23
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_BUF_LENGTH,4,2              ; @RX_BUF_LENGTH
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SKB alloc failed\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"DMA mapping failure\n"

	.comm	_dma_addr,4,2                   ; @dma_addr
	.comm	_rx_status,4,2                  ; @rx_status
l_.str.2:                               ; @.str.2
	.asciz	"RX refill\n"

	.no_dead_strip	_bcm_sysport_rx_refill
.subsections_via_symbols
