	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_rx_fd
_free_rx_fd:                            ## @free_rx_fd
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_dpaa2_fd_get_addr
	movq	%rbx, %rdi
	callq	_dpaa2_fd_get_format
	movq	_dpaa2_fd_single@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_pages                     ## TAILCALL
LBB0_1:
	movq	_dpaa2_fd_sg@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_dpaa2_fd_get_offset
	movq	_DPAA2_ETH_MAX_SG_ENTRIES@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	jl	LBB0_6
## %bb.3:
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rbx
	addq	$4, %rbx
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_dpaa2_sg_get_addr
	movl	%eax, %r13d
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_dpaa2_iova_to_virt
	movq	%rax, %r14
	movq	_DPAA2_ETH_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_dma_unmap_page
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_free_pages
	movq	%rbx, %rdi
	callq	_dpaa2_sg_is_final
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	_DPAA2_ETH_MAX_SG_ENTRIES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_5
	jmp	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dpaa2_fd_single,8,3            ## @dpaa2_fd_single
	.comm	_dpaa2_fd_sg,8,3                ## @dpaa2_fd_sg
	.comm	_DPAA2_ETH_MAX_SG_ENTRIES,4,2   ## @DPAA2_ETH_MAX_SG_ENTRIES
	.comm	_DPAA2_ETH_RX_BUF_SIZE,4,2      ## @DPAA2_ETH_RX_BUF_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.no_dead_strip	_free_rx_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_rx_fd
_free_rx_fd:                            ; @free_rx_fd
	.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, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	mov	x0, x1
	bl	_dpaa2_fd_get_addr
	mov	x0, x22
	bl	_dpaa2_fd_get_format
Lloh0:
	adrp	x8, _dpaa2_fd_single@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dpaa2_fd_single@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	mov	x0, x19
	mov	w1, #0
	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
	b	_free_pages
LBB0_2:
Lloh3:
	adrp	x8, _dpaa2_fd_sg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dpaa2_fd_sg@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_dpaa2_fd_get_offset
                                        ; kill: def $w0 killed $w0 def $x0
Lloh6:
	adrp	x25, _DPAA2_ETH_MAX_SG_ENTRIES@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DPAA2_ETH_MAX_SG_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_1
; %bb.4:
	sxtw	x8, w0
	add	x8, x8, x19
	add	x22, x8, #4
	mov	w26, #1
Lloh8:
	adrp	x27, _DPAA2_ETH_RX_BUF_SIZE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _DPAA2_ETH_RX_BUF_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x28, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_dpaa2_sg_get_addr
	mov	x23, x0
	ldr	w0, [x20]
	mov	x1, x23
	bl	_dpaa2_iova_to_virt
	mov	x24, x0
	ldr	w2, [x27]
	ldr	w3, [x28]
	mov	x0, x21
	mov	x1, x23
	bl	_dma_unmap_page
	mov	x0, x24
	mov	w1, #0
	bl	_free_pages
	mov	x0, x22
	bl	_dpaa2_sg_is_final
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x25]
	add	x22, x22, #4
	cmp	x26, x8
	b.lt	LBB0_5
	b	LBB0_1
LBB0_7:
	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	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_dpaa2_fd_single,8,3            ; @dpaa2_fd_single
	.comm	_dpaa2_fd_sg,8,3                ; @dpaa2_fd_sg
	.comm	_DPAA2_ETH_MAX_SG_ENTRIES,4,2   ; @DPAA2_ETH_MAX_SG_ENTRIES
	.comm	_DPAA2_ETH_RX_BUF_SIZE,4,2      ; @DPAA2_ETH_RX_BUF_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.no_dead_strip	_free_rx_fd
.subsections_via_symbols
