	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnet_probe
_dnet_probe:                            ## @dnet_probe
	.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
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r13d
	movl	$32, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r12, 24(%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	leaq	20(%r15), %rdi
	callq	_spin_lock_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, (%r12)
	movq	_dnet_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_6:
	movq	_dnet_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	movq	%r15, %rsi
	addq	$16, %rsi
	movq	_dnet_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$64, %ecx
	callq	_netif_napi_add
	movq	_dnet_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	8(%r15), %rax
	movq	%rax, 8(%r12)
	movq	_VERCAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dnet_readl
	movq	_DNET_CAPS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_dnet_get_hwaddr
	movl	24(%r12), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_eth_hw_addr_random
	movq	%r15, %rdi
	callq	___dnet_set_hwaddr
LBB0_8:
	movq	%r12, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_10:
	movq	_dnet_phy_marvell_fixup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$21040320, %edi                 ## imm = 0x1410CC0
	movl	$-16, %esi
	callq	_phy_register_fixup_for_uid
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_12:
	movq	%r15, %rdi
	callq	_dnet_mii_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_unregister_netdev
LBB0_15:
	movl	(%r12), %edi
	movq	%r12, %rsi
	callq	_free_irq
LBB0_16:
	movq	%r12, %rdi
	callq	_free_netdev
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	8(%r15), %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	(%r12), %r8d
	movl	24(%r12), %r9d
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movl	(%r15), %eax
	movq	_DNET_HAS_MDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	leaq	L_.str.6(%rip), %rsi
	leaq	L_.str.5(%rip), %r9
	movq	%r9, %rdx
	cmoveq	%rsi, %rdx
	movq	_DNET_HAS_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	%r9, %rcx
	cmoveq	%rsi, %rcx
	movq	_DNET_HAS_GIGABIT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%eax, %edi
	movq	%r9, %r8
	cmoveq	%rsi, %r8
	movq	_DNET_HAS_DMA@GOTPCREL(%rip), %rdi
	andl	(%rdi), %eax
	cmoveq	%rsi, %r9
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	16(%r12), %rdi
	callq	_phy_attached_info
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_dnet_interrupt,4,2             ## @dnet_interrupt
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to request IRQ %d (error %d)\n"

	.comm	_dnet_netdev_ops,4,2            ## @dnet_netdev_ops
	.comm	_dnet_poll,4,2                  ## @dnet_poll
	.comm	_dnet_ethtool_ops,4,2           ## @dnet_ethtool_ops
	.comm	_VERCAPS,4,2                    ## @VERCAPS
	.comm	_DNET_CAPS_MASK,4,2             ## @DNET_CAPS_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Cannot register net device, aborting.\n"

	.comm	_dnet_phy_marvell_fixup,4,2     ## @dnet_phy_marvell_fixup
L_.str.2:                               ## @.str.2
	.asciz	"Cannot register PHY board fixup.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Dave DNET at 0x%p (0x%08x) irq %d %pM\n"

L_.str.4:                               ## @.str.4
	.asciz	"has %smdio, %sirq, %sgigabit, %sdma\n"

	.comm	_DNET_HAS_MDIO,4,2              ## @DNET_HAS_MDIO
L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	"no "

	.comm	_DNET_HAS_IRQ,4,2               ## @DNET_HAS_IRQ
	.comm	_DNET_HAS_GIGABIT,4,2           ## @DNET_HAS_GIGABIT
	.comm	_DNET_HAS_DMA,4,2               ## @DNET_HAS_DMA
	.no_dead_strip	_dnet_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnet_probe
_dnet_probe:                            ; @dnet_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	mov	w1, #0
	bl	_platform_get_irq
	mov	x23, x0
	mov	w0, #32
	bl	_alloc_etherdev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	str	x19, [x0, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	add	x0, x21, #20
	bl	_spin_lock_init
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x21, #8]
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_15
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_4:
	str	w23, [x19]
Lloh6:
	adrp	x8, _dnet_interrupt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dnet_interrupt@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_6
; %bb.5:
	mov	x24, x0
	stp	x23, x24, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_15
LBB0_6:
Lloh14:
	adrp	x8, _dnet_netdev_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dnet_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #40]
	add	x1, x21, #16
Lloh16:
	adrp	x8, _dnet_poll@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dnet_poll@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #64
	bl	_netif_napi_add
Lloh19:
	adrp	x8, _dnet_ethtool_ops@GOTPAGE
Lloh20:
	ldr	x8, [x8, _dnet_ethtool_ops@GOTPAGEOFF]
	str	x8, [x19, #32]
	ldr	x8, [x21, #8]
	str	x8, [x19, #8]
Lloh21:
	adrp	x8, _VERCAPS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VERCAPS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dnet_readl
Lloh24:
	adrp	x8, _DNET_CAPS_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DNET_CAPS_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x21]
	mov	x0, x21
	bl	_dnet_get_hwaddr
	ldr	w0, [x19, #24]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_eth_hw_addr_random
	mov	x0, x21
	bl	___dnet_set_hwaddr
LBB0_8:
	mov	x0, x19
	bl	_register_netdev
	cbz	w0, LBB0_10
; %bb.9:
	mov	x24, x0
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_14
LBB0_10:
Lloh29:
	adrp	x8, _dnet_phy_marvell_fixup@GOTPAGE
Lloh30:
	ldr	x8, [x8, _dnet_phy_marvell_fixup@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	w0, #3264
	movk	w0, #321, lsl #16
	mov	w1, #-16
	bl	_phy_register_fixup_for_uid
	cbz	w0, LBB0_12
; %bb.11:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_12:
	mov	x0, x21
	bl	_dnet_mii_init
	mov	x24, x0
	cbz	w0, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_unregister_netdev
LBB0_14:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
LBB0_15:
	mov	x0, x19
	bl	_free_netdev
LBB0_16:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
LBB0_17:
	ldr	x2, [x21, #8]
	ldr	x8, [x22]
	ldr	w9, [x19]
	ldr	w10, [x19, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	w8, [x21]
Lloh36:
	adrp	x9, _DNET_HAS_MDIO@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DNET_HAS_MDIO@GOTPAGEOFF]
Lloh38:
	adrp	x10, l_.str.5@PAGE
Lloh39:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh40:
	adrp	x11, l_.str.6@PAGE
Lloh41:
	add	x11, x11, l_.str.6@PAGEOFF
Lloh42:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x2, x11, x10, eq
Lloh43:
	adrp	x9, _DNET_HAS_IRQ@GOTPAGE
Lloh44:
	ldr	x9, [x9, _DNET_HAS_IRQ@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x9, x11, x10, eq
Lloh46:
	adrp	x12, _DNET_HAS_GIGABIT@GOTPAGE
Lloh47:
	ldr	x12, [x12, _DNET_HAS_GIGABIT@GOTPAGEOFF]
Lloh48:
	ldr	w12, [x12]
	tst	w12, w8
	csel	x12, x11, x10, eq
Lloh49:
	adrp	x13, _DNET_HAS_DMA@GOTPAGE
Lloh50:
	ldr	x13, [x13, _DNET_HAS_DMA@GOTPAGEOFF]
Lloh51:
	ldr	w13, [x13]
	tst	w13, w8
	csel	x8, x11, x10, eq
	stp	x12, x8, [sp, #8]
	str	x9, [sp]
Lloh52:
	adrp	x1, l_.str.4@PAGE
Lloh53:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x0, [x19, #16]
	bl	_phy_attached_info
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh42
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_dnet_interrupt,4,2             ; @dnet_interrupt
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to request IRQ %d (error %d)\n"

	.comm	_dnet_netdev_ops,4,2            ; @dnet_netdev_ops
	.comm	_dnet_poll,4,2                  ; @dnet_poll
	.comm	_dnet_ethtool_ops,4,2           ; @dnet_ethtool_ops
	.comm	_VERCAPS,4,2                    ; @VERCAPS
	.comm	_DNET_CAPS_MASK,4,2             ; @DNET_CAPS_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Cannot register net device, aborting.\n"

	.comm	_dnet_phy_marvell_fixup,4,2     ; @dnet_phy_marvell_fixup
l_.str.2:                               ; @.str.2
	.asciz	"Cannot register PHY board fixup.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Dave DNET at 0x%p (0x%08x) irq %d %pM\n"

l_.str.4:                               ; @.str.4
	.asciz	"has %smdio, %sirq, %sgigabit, %sdma\n"

	.comm	_DNET_HAS_MDIO,4,2              ; @DNET_HAS_MDIO
l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	"no "

	.comm	_DNET_HAS_IRQ,4,2               ; @DNET_HAS_IRQ
	.comm	_DNET_HAS_GIGABIT,4,2           ; @DNET_HAS_GIGABIT
	.comm	_DNET_HAS_DMA,4,2               ; @DNET_HAS_DMA
	.no_dead_strip	_dnet_probe
.subsections_via_symbols
