	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macsonic_init
_macsonic_init:                         ## @macsonic_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	%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, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %edi
	movl	88(%rax), %r15d
	movq	_SIZEOF_SONIC_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_SONIC_BUS_SCALE
	imull	%eax, %ebx
	leaq	40(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 80(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, 72(%r12)
	movq	_SIZEOF_SONIC_CDA@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movl	(%r12), %edi
	callq	_SONIC_BUS_SCALE
	cltq
	imulq	%rbx, %rax
	leaq	(%r15,%rax,4), %r13
	movq	%r13, 64(%r12)
	movq	_SIZEOF_SONIC_TD@GOTPCREL(%rip), %rax
	movq	_SONIC_NUM_TDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	imull	(%rax), %ebx
	movl	(%r12), %edi
	callq	_SONIC_BUS_SCALE
	imull	%ebx, %eax
	cltq
	leaq	(,%rax,4), %rbx
	addq	%r13, %rbx
	movq	%rbx, 48(%r12)
	movq	_SIZEOF_SONIC_RD@GOTPCREL(%rip), %rax
	movq	_SONIC_NUM_RDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	imull	(%rax), %r15d
	movl	(%r12), %edi
	callq	_SONIC_BUS_SCALE
	imull	%r15d, %eax
	cltq
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 56(%r12)
	movq	40(%r12), %rbx
	movq	%rbx, 32(%r12)
	movq	_SIZEOF_SONIC_CDA@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movl	(%r12), %edi
	callq	_SONIC_BUS_SCALE
	movslq	%eax, %r13
	imulq	%r15, %r13
	addq	%rbx, %r13
	movq	%r13, 24(%r12)
	movq	_SONIC_NUM_TDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SIZEOF_SONIC_TD@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	(%r12), %edi
	callq	_SONIC_BUS_SCALE
	imull	%ebx, %eax
	movslq	%eax, %rbx
	addq	%r13, %rbx
	movq	%rbx, 8(%r12)
	movq	_SONIC_NUM_RDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_SIZEOF_SONIC_RD@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	movl	(%r12), %edi
	callq	_SONIC_BUS_SCALE
	imull	%r15d, %eax
	cltq
	addq	%rbx, %rax
	movq	%rax, 16(%r12)
	movq	_macsonic_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_SONIC_CRCT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_SONIC_WRITE
	movq	_SONIC_FAET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_SONIC_WRITE
	movq	_SONIC_MPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_SONIC_WRITE
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZEOF_SONIC_DESC,4,2          ## @SIZEOF_SONIC_DESC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SIZEOF_SONIC_CDA,4,2           ## @SIZEOF_SONIC_CDA
	.comm	_SIZEOF_SONIC_TD,4,2            ## @SIZEOF_SONIC_TD
	.comm	_SONIC_NUM_TDS,4,2              ## @SONIC_NUM_TDS
	.comm	_SIZEOF_SONIC_RD,4,2            ## @SIZEOF_SONIC_RD
	.comm	_SONIC_NUM_RDS,4,2              ## @SONIC_NUM_RDS
	.comm	_macsonic_netdev_ops,4,2        ## @macsonic_netdev_ops
	.comm	_TX_TIMEOUT,4,2                 ## @TX_TIMEOUT
	.comm	_SONIC_CRCT,4,2                 ## @SONIC_CRCT
	.comm	_SONIC_FAET,4,2                 ## @SONIC_FAET
	.comm	_SONIC_MPT,4,2                  ## @SONIC_MPT
	.no_dead_strip	_macsonic_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macsonic_init
_macsonic_init:                         ; @macsonic_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w21, [x0, #88]
Lloh0:
	adrp	x8, _SIZEOF_SONIC_DESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZEOF_SONIC_DESC@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x0]
	bl	_SONIC_BUS_SCALE
	mul	w1, w0, w22
	add	x2, x20, #40
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_dma_alloc_coherent
	str	x0, [x20, #80]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	str	x0, [x20, #72]
Lloh6:
	adrp	x22, _SIZEOF_SONIC_CDA@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SIZEOF_SONIC_CDA@GOTPAGEOFF]
	ldr	w23, [x22]
	ldr	w0, [x20]
	bl	_SONIC_BUS_SCALE
	mul	w8, w0, w23
	add	x21, x21, w8, sxtw #2
	str	x21, [x20, #64]
Lloh8:
	adrp	x23, _SIZEOF_SONIC_TD@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SIZEOF_SONIC_TD@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh10:
	adrp	x24, _SONIC_NUM_TDS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SONIC_NUM_TDS@GOTPAGEOFF]
	ldr	w9, [x24]
	mul	w25, w9, w8
	ldr	w0, [x20]
	bl	_SONIC_BUS_SCALE
	mul	w8, w25, w0
	add	x21, x21, w8, sxtw #2
	str	x21, [x20, #48]
Lloh12:
	adrp	x25, _SIZEOF_SONIC_RD@GOTPAGE
Lloh13:
	ldr	x25, [x25, _SIZEOF_SONIC_RD@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh14:
	adrp	x26, _SONIC_NUM_RDS@GOTPAGE
Lloh15:
	ldr	x26, [x26, _SONIC_NUM_RDS@GOTPAGEOFF]
	ldr	w9, [x26]
	mul	w27, w9, w8
	ldr	w0, [x20]
	bl	_SONIC_BUS_SCALE
	mul	w8, w27, w0
	add	x8, x21, w8, sxtw #2
	str	x8, [x20, #56]
	ldr	x21, [x20, #40]
	str	x21, [x20, #32]
	ldrsw	x22, [x22]
	ldr	w0, [x20]
	bl	_SONIC_BUS_SCALE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	madd	x21, x8, x22, x21
	str	x21, [x20, #24]
	ldr	w8, [x23]
	ldr	w9, [x24]
	mul	w22, w9, w8
	ldr	w0, [x20]
	bl	_SONIC_BUS_SCALE
	mul	w8, w22, w0
	add	x21, x21, w8, sxtw
	str	x21, [x20, #8]
	ldr	w8, [x25]
	ldr	w9, [x26]
	mul	w22, w9, w8
	ldr	w0, [x20]
	bl	_SONIC_BUS_SCALE
	mul	w8, w22, w0
	add	x8, x21, w8, sxtw
	str	x8, [x20, #16]
Lloh16:
	adrp	x8, _macsonic_netdev_ops@GOTPAGE
Lloh17:
	ldr	x8, [x8, _macsonic_netdev_ops@GOTPAGEOFF]
Lloh18:
	adrp	x9, _TX_TIMEOUT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TX_TIMEOUT@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh20:
	ldr	w8, [x9]
	str	w8, [x19]
Lloh21:
	adrp	x8, _SONIC_CRCT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SONIC_CRCT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_SONIC_WRITE
Lloh24:
	adrp	x8, _SONIC_FAET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SONIC_FAET@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_SONIC_WRITE
Lloh27:
	adrp	x8, _SONIC_MPT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SONIC_MPT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_SONIC_WRITE
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZEOF_SONIC_DESC,4,2          ; @SIZEOF_SONIC_DESC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SIZEOF_SONIC_CDA,4,2           ; @SIZEOF_SONIC_CDA
	.comm	_SIZEOF_SONIC_TD,4,2            ; @SIZEOF_SONIC_TD
	.comm	_SONIC_NUM_TDS,4,2              ; @SONIC_NUM_TDS
	.comm	_SIZEOF_SONIC_RD,4,2            ; @SIZEOF_SONIC_RD
	.comm	_SONIC_NUM_RDS,4,2              ; @SONIC_NUM_RDS
	.comm	_macsonic_netdev_ops,4,2        ; @macsonic_netdev_ops
	.comm	_TX_TIMEOUT,4,2                 ; @TX_TIMEOUT
	.comm	_SONIC_CRCT,4,2                 ; @SONIC_CRCT
	.comm	_SONIC_FAET,4,2                 ; @SONIC_FAET
	.comm	_SONIC_MPT,4,2                  ; @SONIC_MPT
	.no_dead_strip	_macsonic_init
.subsections_via_symbols
