	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_sonic_platform_remove
_mac_sonic_platform_remove:             ## @mac_sonic_platform_remove
	.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
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_unregister_netdev
	movl	8(%rbx), %edi
	movl	12(%rbx), %r15d
	movq	_SIZEOF_SONIC_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_SONIC_BUS_SCALE
	imull	%eax, %r12d
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_dma_free_coherent
	movq	%r14, %rdi
	callq	_free_netdev
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZEOF_SONIC_DESC,4,2          ## @SIZEOF_SONIC_DESC
	.no_dead_strip	_mac_sonic_platform_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_sonic_platform_remove
_mac_sonic_platform_remove:             ; @mac_sonic_platform_remove
	.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
	bl	_platform_get_drvdata
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_unregister_netdev
Lloh0:
	adrp	x8, _SIZEOF_SONIC_DESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZEOF_SONIC_DESC@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldp	w0, w21, [x20, #8]
	bl	_SONIC_BUS_SCALE
	mul	w1, w0, w22
	ldp	w3, w2, [x20]
	mov	x0, x21
	bl	_dma_free_coherent
	mov	x0, x19
	bl	_free_netdev
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZEOF_SONIC_DESC,4,2          ; @SIZEOF_SONIC_DESC
	.no_dead_strip	_mac_sonic_platform_remove
.subsections_via_symbols
