	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_dpni
_setup_dpni:                            ## @setup_dpni
	.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, %r15
	leaq	12(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movl	4(%rax), %edi
	movl	8(%r15), %edx
	xorl	%esi, %esi
	movq	%rax, %rcx
	callq	_dpni_open
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	leaq	20(%r14), %rbx
	leaq	16(%r14), %r13
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_dpni_get_api_version
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movl	(%r14), %edx
	movl	4(%r14), %edi
	xorl	%esi, %esi
	callq	_dpni_close
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_DPNI_VER_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DPNI_VER_MINOR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_dpaa2_eth_cmp_dpni_ver
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movl	4(%r14), %edi
	movl	%edi, 4(%r15)
	movl	(%r14), %edx
	movl	%edx, (%r15)
	xorl	%esi, %esi
	callq	_dpni_reset
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movl	(%rbx), %edx
	movl	(%r13), %ecx
	movq	_DPNI_VER_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r12), %r9d
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_9:
	movl	(%r14), %edx
	movl	4(%r14), %edi
	movq	%r14, %rcx
	addq	$12, %rcx
	xorl	%esi, %esi
	callq	_dpni_get_attributes
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_11:
	movq	%r14, %rdi
	callq	_set_buffer_layout
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	callq	_set_enqueue_mode
	movq	%r14, %rdi
	callq	_dpaa2_eth_has_pause_support
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_set_pause
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
LBB0_14:
	movq	%r14, %rdi
	callq	_dpaa2_eth_fs_count
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_devm_kzalloc
	movl	%eax, 8(%r14)
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dpni_open() failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"dpni_get_api_version() failed\n"

	.comm	_DPNI_VER_MAJOR,4,2             ## @DPNI_VER_MAJOR
	.comm	_DPNI_VER_MINOR,4,2             ## @DPNI_VER_MINOR
L_.str.2:                               ## @.str.2
	.asciz	"DPNI version %u.%u not supported, need >= %u.%u\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.3:                               ## @.str.3
	.asciz	"dpni_reset() failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"dpni_get_attributes() failed (err=%d)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_setup_dpni
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_dpni
_setup_dpni:                            ; @setup_dpni
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x0
	add	x20, x0, #12
	mov	x0, x20
	bl	_dev_get_drvdata
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #4]
	ldr	w2, [x22, #8]
	mov	w1, #0
	mov	x3, x19
	bl	_dpni_open
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_6
LBB0_2:
	ldr	w0, [x19, #4]
	add	x24, x19, #20
	add	x23, x19, #16
	mov	w1, #0
	mov	x2, x24
	mov	x3, x23
	bl	_dpni_get_api_version
	cbz	w0, LBB0_7
; %bb.3:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_dev_err
LBB0_5:
	ldp	w2, w0, [x19]
	mov	w1, #0
	bl	_dpni_close
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
Lloh4:
	adrp	x21, _DPNI_VER_MAJOR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DPNI_VER_MAJOR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh6:
	adrp	x25, _DPNI_VER_MINOR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DPNI_VER_MINOR@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_dpaa2_eth_cmp_dpni_ver
	tbnz	x0, #63, LBB0_10
; %bb.8:
	ldp	w2, w0, [x19]
	stp	w2, w0, [x22]
	mov	w1, #0
	bl	_dpni_reset
	cbz	w0, LBB0_11
; %bb.9:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_10:
	ldr	w8, [x24]
	ldr	w9, [x23]
	ldr	w10, [x21]
	ldr	w11, [x25]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_11:
	ldp	w2, w0, [x19]
	add	x3, x19, #12
	mov	w1, #0
	bl	_dpni_get_attributes
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
	str	x21, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_13:
	mov	x0, x19
	bl	_set_buffer_layout
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.14:
	mov	x0, x19
	bl	_set_enqueue_mode
	mov	x0, x19
	bl	_dpaa2_eth_has_pause_support
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_set_pause
	mov	x21, x0
	cbnz	w0, LBB0_5
LBB0_16:
	mov	x0, x19
	bl	_dpaa2_eth_fs_count
	lsl	w1, w0, #2
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_devm_kzalloc
	mov	w21, #0
	str	w0, [x19, #8]
	cbnz	w0, LBB0_6
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dpni_open() failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"dpni_get_api_version() failed\n"

	.comm	_DPNI_VER_MAJOR,4,2             ; @DPNI_VER_MAJOR
	.comm	_DPNI_VER_MINOR,4,2             ; @DPNI_VER_MINOR
l_.str.2:                               ; @.str.2
	.asciz	"DPNI version %u.%u not supported, need >= %u.%u\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.3:                               ; @.str.3
	.asciz	"dpni_reset() failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"dpni_get_attributes() failed (err=%d)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_setup_dpni
.subsections_via_symbols
