	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcaspi_netdev_init
_qcaspi_netdev_init:                    ## @qcaspi_netdev_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_QCAFRM_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r14)
	movq	_qcaspi_clkspeed@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rbx)
	movq	_qcaspi_burst_len@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rbx)
	movq	$0, 32(%rbx)
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %r12
	addl	(%r12), %eax
	movq	_QCAFRM_HEADER_LEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_QCAFRM_FOOTER_LEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	leal	16(,%rax,4), %eax
	movl	%eax, (%rbx)
	leaq	24(%rbx), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movslq	(%r12), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_netdev_alloc_skb_ip_align
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	16(%rbx), %edi
	callq	_kfree
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
LBB0_3:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QCAFRM_MAX_MTU,4,2             ## @QCAFRM_MAX_MTU
	.comm	_ARPHRD_ETHER,4,2               ## @ARPHRD_ETHER
	.comm	_qcaspi_clkspeed,4,2            ## @qcaspi_clkspeed
	.comm	_qcaspi_burst_len,4,2           ## @qcaspi_burst_len
	.comm	_VLAN_ETH_HLEN,4,2              ## @VLAN_ETH_HLEN
	.comm	_QCAFRM_HEADER_LEN,4,2          ## @QCAFRM_HEADER_LEN
	.comm	_QCAFRM_FOOTER_LEN,4,2          ## @QCAFRM_FOOTER_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate RX sk_buff.\n"

	.no_dead_strip	_qcaspi_netdev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcaspi_netdev_init
_qcaspi_netdev_init:                    ; @qcaspi_netdev_init
	.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
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _QCAFRM_MAX_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCAFRM_MAX_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh3:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _qcaspi_clkspeed@GOTPAGE
Lloh7:
	ldr	x10, [x10, _qcaspi_clkspeed@GOTPAGEOFF]
	str	w9, [x20, #4]
Lloh8:
	ldr	w9, [x10]
Lloh9:
	adrp	x10, _qcaspi_burst_len@GOTPAGE
Lloh10:
	ldr	x10, [x10, _qcaspi_burst_len@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #40]
	str	xzr, [x0, #32]
Lloh12:
	adrp	x21, _VLAN_ETH_HLEN@GOTPAGE
Lloh13:
	ldr	x21, [x21, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh14:
	adrp	x9, _QCAFRM_HEADER_LEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QCAFRM_HEADER_LEN@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh16:
	ldr	w9, [x9]
	add	w8, w10, w8
	add	w8, w8, w9
Lloh17:
	adrp	x9, _QCAFRM_FOOTER_LEN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _QCAFRM_FOOTER_LEN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	add	w8, w8, w9
	lsl	w8, w8, #2
	add	w8, w8, #16
	str	w8, [x0], #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_kmalloc
	str	w0, [x19, #16]
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldrsw	x9, [x21]
	add	x1, x8, x9
	mov	x0, x20
	bl	_netdev_alloc_skb_ip_align
	str	w0, [x19, #20]
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
LBB0_4:
Lloh25:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_QCAFRM_MAX_MTU,4,2             ; @QCAFRM_MAX_MTU
	.comm	_ARPHRD_ETHER,4,2               ; @ARPHRD_ETHER
	.comm	_qcaspi_clkspeed,4,2            ; @qcaspi_clkspeed
	.comm	_qcaspi_burst_len,4,2           ; @qcaspi_burst_len
	.comm	_VLAN_ETH_HLEN,4,2              ; @VLAN_ETH_HLEN
	.comm	_QCAFRM_HEADER_LEN,4,2          ; @QCAFRM_HEADER_LEN
	.comm	_QCAFRM_FOOTER_LEN,4,2          ; @QCAFRM_FOOTER_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate RX sk_buff.\n"

	.no_dead_strip	_qcaspi_netdev_init
.subsections_via_symbols
