	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_alloc_etherdev
_qede_alloc_etherdev:                   ## @qede_alloc_etherdev
	.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
	movl	%r8d, %ebx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	(%rdx), %edx
	movl	4(%r14), %esi
	imull	%edx, %esi
	movl	$64, %edi
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movl	%ebx, %ecx
	movq	%rax, %rbx
	movq	%r12, 56(%rax)
	movq	%r13, 48(%rax)
	movq	%r15, 40(%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 36(%rbx)
	movl	%ecx, 32(%rbx)
	movq	_qed_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_NUM_RX_BDS_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_NUM_TX_BDS_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_DP_INFO
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_SET_NETDEV_DEV
	leaq	16(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	8(%rbx), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_memcpy
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"etherdev allocation failed\n"

	.comm	_qed_ops,4,2                    ## @qed_ops
	.comm	_NUM_RX_BDS_DEF,4,2             ## @NUM_RX_BDS_DEF
	.comm	_NUM_TX_BDS_DEF,4,2             ## @NUM_TX_BDS_DEF
L_.str.1:                               ## @.str.1
	.asciz	"Allocated netdev with %d tx queues and %d rx queues\n"

	.no_dead_strip	_qede_alloc_etherdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_alloc_etherdev
_qede_alloc_etherdev:                   ; @qede_alloc_etherdev
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x21, x1
	mov	x25, x0
	ldr	w2, [x2]
	ldr	w8, [x19, #4]
	mul	w1, w8, w2
	mov	w0, #64
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	stp	x25, x22, [x0, #48]
	str	x21, [x0, #40]
	str	w24, [x0, #36]
Lloh0:
	adrp	x8, _qed_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qed_ops@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w23, [x0, #28]
Lloh3:
	adrp	x8, _NUM_RX_BDS_DEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_RX_BDS_DEF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NUM_TX_BDS_DEF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NUM_TX_BDS_DEF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #20]
	ldr	w2, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x2
	bl	_DP_INFO
	mov	x0, x22
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	add	x0, x20, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x20, #8
	mov	x1, x19
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
LBB0_3:
	add	x0, x20, #4
	bl	_INIT_LIST_HEAD
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"etherdev allocation failed\n"

	.comm	_qed_ops,4,2                    ; @qed_ops
	.comm	_NUM_RX_BDS_DEF,4,2             ; @NUM_RX_BDS_DEF
	.comm	_NUM_TX_BDS_DEF,4,2             ; @NUM_TX_BDS_DEF
l_.str.1:                               ; @.str.1
	.asciz	"Allocated netdev with %d tx queues and %d rx queues\n"

	.no_dead_strip	_qede_alloc_etherdev
.subsections_via_symbols
