	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa_bp_add_8_bufs
_dpaa_bp_add_8_bufs:                    ## @dpaa_bp_add_8_bufs
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	leaq	-112(%rbp), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r14), %edi
	callq	_netdev_alloc_frag
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SMP_CACHE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PTR_ALIGN
	movl	8(%r14), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dma_map_single
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, (%r13)
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_bm_buffer_set64
	incq	%r15
	addq	$8, %r13
	cmpq	$8, %r15
	jne	LBB0_1
## %bb.7:
	movl	$8, %r15d
	jmp	LBB0_8
LBB0_2:
	movl	12(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_3
LBB0_5:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_bm_buffer_set64
	movl	%r15d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dpaa_bman_release
	movl	%eax, %r12d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netdev_alloc_frag() failed, size %zu\n"

	.comm	_SMP_CACHE_BYTES,4,2            ## @SMP_CACHE_BYTES
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"DMA map failed"

L_.str.2:                               ## @.str.2
	.asciz	"dpaa_eth: failed to add buffers on Rx\n"

	.no_dead_strip	_dpaa_bp_add_8_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa_bp_add_8_bufs
_dpaa_bp_add_8_bufs:                    ; @dpaa_bp_add_8_bufs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x22, [x0]
	add	x21, sp, #8
Lloh3:
	adrp	x24, _SMP_CACHE_BYTES@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SMP_CACHE_BYTES@GOTPAGEOFF]
Lloh5:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	bl	_netdev_alloc_frag
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x24]
	mov	x0, x23
	bl	_PTR_ALIGN
	mov	x1, x0
	ldr	w2, [x19, #8]
	ldr	w3, [x25]
	mov	x0, x22
	bl	_dma_map_single
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x26, x21
	str	xzr, [x26], #8
	mov	x0, x21
	mov	x1, x23
	bl	_bm_buffer_set64
	add	x20, x20, #1
	mov	x21, x26
	cmp	x20, #8
	b.ne	LBB0_1
	b	LBB0_7
LBB0_4:
	ldr	w8, [x19, #12]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dev_err
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
	mov	x0, x21
	mov	w1, #0
	bl	_bm_buffer_set64
	mov	x0, x20
	bl	_likely
	cbz	x0, LBB0_8
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_dpaa_bman_release
LBB0_8:
	ldr	x8, [sp, #72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netdev_alloc_frag() failed, size %zu\n"

	.comm	_SMP_CACHE_BYTES,4,2            ; @SMP_CACHE_BYTES
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"DMA map failed"

l_.str.2:                               ; @.str.2
	.asciz	"dpaa_eth: failed to add buffers on Rx\n"

	.no_dead_strip	_dpaa_bp_add_8_bufs
.subsections_via_symbols
