	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xgbe_alloc_pdata               ## -- Begin function xgbe_alloc_pdata
	.p2align	4, 0x90
_xgbe_alloc_pdata:                      ## @xgbe_alloc_pdata
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_XGBE_MAX_DMA_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_alloc_etherdev_mq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, 48(%rax)
	movq	%r14, 40(%rax)
	leaq	36(%rax), %rdi
	callq	_spin_lock_init
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	leaq	28(%rbx), %rdi
	callq	_mutex_init
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	leaq	20(%rbx), %rdi
	callq	_mutex_init
	leaq	16(%rbx), %rdi
	callq	_init_completion
	leaq	12(%rbx), %rdi
	callq	_init_completion
	leaq	8(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_default_msg_level@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_netif_msg_init
	movl	%eax, 4(%rbx)
	movq	_XGBE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_XGBE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XGBE_MAX_DMA_CHANNELS,4,2      ## @XGBE_MAX_DMA_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc_etherdev_mq failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_debug,4,2                      ## @debug
	.comm	_default_msg_level,4,2          ## @default_msg_level
	.comm	_XGBE_DOWN,4,2                  ## @XGBE_DOWN
	.comm	_XGBE_STOPPED,4,2               ## @XGBE_STOPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xgbe_alloc_pdata               ; -- Begin function xgbe_alloc_pdata
	.p2align	2
_xgbe_alloc_pdata:                      ; @xgbe_alloc_pdata
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _XGBE_MAX_DMA_CHANNELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGBE_MAX_DMA_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_alloc_etherdev_mq
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	bl	_netdev_priv
	mov	x19, x0
	stp	x20, x21, [x0, #40]
	add	x0, x0, #36
	bl	_spin_lock_init
	add	x0, x19, #32
	bl	_spin_lock_init
	add	x0, x19, #28
	bl	_mutex_init
	add	x0, x19, #24
	bl	_spin_lock_init
	add	x0, x19, #20
	bl	_mutex_init
	add	x0, x19, #16
	bl	_init_completion
	add	x0, x19, #12
	bl	_init_completion
	add	x0, x19, #8
	bl	_INIT_LIST_HEAD
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _default_msg_level@GOTPAGE
Lloh7:
	ldr	x8, [x8, _default_msg_level@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_netif_msg_init
	str	w0, [x19, #4]
Lloh9:
	adrp	x8, _XGBE_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XGBE_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
Lloh12:
	adrp	x8, _XGBE_STOPPED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XGBE_STOPPED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XGBE_MAX_DMA_CHANNELS,4,2      ; @XGBE_MAX_DMA_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc_etherdev_mq failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_debug,4,2                      ; @debug
	.comm	_default_msg_level,4,2          ; @default_msg_level
	.comm	_XGBE_DOWN,4,2                  ; @XGBE_DOWN
	.comm	_XGBE_STOPPED,4,2               ; @XGBE_STOPPED
.subsections_via_symbols
