	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_tx_reclaim_one
_bcm_sysport_tx_reclaim_one:            ## @bcm_sysport_tx_reclaim_one
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rcx, %r15
	movl	(%rax), %eax
	addl	%eax, (%r12)
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movq	%rax, %r12
	movq	_dma_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_len
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_dma_unmap_single
	incl	(%r15)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcm_sysport_free_cb            ## TAILCALL
LBB0_1:
	movq	_dma_addr@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	_dma_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_len
	addl	%eax, (%r12)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movq	%rax, %r15
	movq	_dma_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_len
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_dma_unmap_page
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_unmap_addr_set             ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dma_addr,4,2                   ## @dma_addr
	.comm	_dma_len,4,2                    ## @dma_len
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_bcm_sysport_tx_reclaim_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sysport_tx_reclaim_one
_bcm_sysport_tx_reclaim_one:            ; @bcm_sysport_tx_reclaim_one
	.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	x22, x2
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x21, x3
	ldr	w8, [x8]
	ldr	w9, [x22]
	add	w8, w9, w8
	str	w8, [x22]
Lloh0:
	adrp	x8, _dma_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dma_addr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_unmap_addr
	mov	x22, x0
Lloh3:
	adrp	x8, _dma_len@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dma_len@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_unmap_len
	mov	x2, x0
Lloh6:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_dma_unmap_single
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x19
	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
	b	_bcm_sysport_free_cb
LBB0_2:
Lloh9:
	adrp	x23, _dma_addr@GOTPAGE
Lloh10:
	ldr	x23, [x23, _dma_addr@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_dma_unmap_addr
	cbz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x24, _dma_len@GOTPAGE
Lloh12:
	ldr	x24, [x24, _dma_len@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_dma_unmap_len
	ldr	w8, [x22]
	add	w8, w8, w0
	str	w8, [x22]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_dma_unmap_addr
	mov	x21, x0
	ldr	w1, [x24]
	mov	x0, x19
	bl	_dma_unmap_len
	mov	x2, x0
Lloh13:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_unmap_page
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	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
	b	_dma_unmap_addr_set
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_dma_addr,4,2                   ; @dma_addr
	.comm	_dma_len,4,2                    ; @dma_len
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_bcm_sysport_tx_reclaim_one
.subsections_via_symbols
