	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_probe
_emac_probe:                            ## @emac_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, %r15
	movq	(%rdi), %r12
	movl	$64, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r15, 16(%rax)
	movq	%r14, 56(%rax)
	movq	%r15, 48(%rax)
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EMAC_DEFAULT_MSG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_netif_msg_init
	movl	%eax, 44(%r13)
	leaq	40(%r13), %rdi
	callq	_spin_lock_init
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, (%r14)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movl	%eax, 8(%r14)
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movl	8(%r14), %ebx
	jmp	LBB0_23
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, (%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_23
LBB0_8:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_10:
	movq	%r15, %rdi
	callq	_sunxi_sram_claim
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_14
LBB0_15:
	movq	%r12, %rdi
	callq	_of_get_mac_address
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movl	12(%r14), %edi
	movq	%rbx, %rsi
	callq	_ether_addr_copy
LBB0_17:
	movl	12(%r14), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_eth_hw_addr_random
	movl	12(%r14), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_19:
	movl	$1, 8(%r13)
	movq	%r14, %rdi
	callq	_emac_powerup
	movq	%r13, %rdi
	callq	_emac_reset
	movq	_emac_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	movq	_watchdog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%eax, 32(%r14)
	movq	_emac_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_26
## %bb.20:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_21
LBB0_26:
	movl	16(%r14), %edx
	movq	24(%r13), %rcx
	movl	8(%r14), %r8d
	movl	12(%r14), %r9d
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
LBB0_21:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_sunxi_sram_release
LBB0_22:
	movq	(%r13), %rdi
	callq	_clk_disable_unprepare
LBB0_23:
	movq	24(%r13), %rdi
	callq	_iounmap
LBB0_24:
	movq	16(%r13), %rdi
	leaq	L_.str.11(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	callq	_free_netdev
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate device.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_debug,4,2                      ## @debug
	.comm	_EMAC_DEFAULT_MSG_ENABLE,4,2    ## @EMAC_DEFAULT_MSG_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"failed to remap registers\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"No irq resource\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error couldn't enable clock (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error couldn't map SRAM to device\n"

L_.str.5:                               ## @.str.5
	.asciz	"phy-handle"

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

L_.str.7:                               ## @.str.7
	.asciz	"no associated PHY\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.8:                               ## @.str.8
	.asciz	"using random MAC address %pM\n"

	.comm	_emac_netdev_ops,4,2            ## @emac_netdev_ops
	.comm	_watchdog,4,2                   ## @watchdog
	.comm	_emac_ethtool_ops,4,2           ## @emac_ethtool_ops
L_.str.9:                               ## @.str.9
	.asciz	"Registering netdev failed!\n"

L_.str.10:                              ## @.str.10
	.asciz	"%s: at %p, IRQ %d MAC: %pM\n"

L_.str.11:                              ## @.str.11
	.asciz	"not found (%d).\n"

	.no_dead_strip	_emac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_probe
_emac_probe:                            ; @emac_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	ldr	x22, [x0]
	mov	w0, #64
	bl	_alloc_etherdev
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	str	x21, [x0, #16]
	stp	x21, x19, [x0, #48]
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EMAC_DEFAULT_MSG_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EMAC_DEFAULT_MSG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_netif_msg_init
	str	w0, [x20, #44]
	add	x0, x20, #40
	bl	_spin_lock_init
	mov	x0, x22
	mov	w1, #0
	bl	_of_iomap
	str	x0, [x20, #24]
	cbz	x0, LBB0_5
; %bb.2:
	str	x0, [x19]
	mov	x0, x22
	mov	w1, #0
	bl	_irq_of_parse_and_map
	str	w0, [x19, #8]
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w23, [x19, #8]
	b	LBB0_24
LBB0_4:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_26
LBB0_5:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_25
LBB0_6:
	mov	x0, x21
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_24
LBB0_8:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_10
; %bb.9:
	mov	x23, x0
	str	x23, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_24
LBB0_10:
	mov	x0, x21
	bl	_sunxi_sram_claim
	cbz	w0, LBB0_12
; %bb.11:
	mov	x23, x0
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_23
LBB0_12:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	w2, #0
	bl	_of_parse_phandle
	str	x0, [x20, #32]
	cbnz	x0, LBB0_14
; %bb.13:
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	mov	w2, #0
	bl	_of_parse_phandle
	str	x0, [x20, #32]
	cbz	x0, LBB0_21
LBB0_14:
	mov	x0, x22
	bl	_of_get_mac_address
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	w0, [x19, #12]
	mov	x1, x22
	bl	_ether_addr_copy
LBB0_16:
	ldr	w0, [x19, #12]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_eth_hw_addr_random
	ldr	w2, [x19, #12]
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
LBB0_18:
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_emac_powerup
	mov	x0, x20
	bl	_emac_reset
Lloh31:
	adrp	x8, _emac_netdev_ops@GOTPAGE
Lloh32:
	ldr	x8, [x8, _emac_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #40]
Lloh33:
	adrp	x8, _watchdog@GOTPAGE
Lloh34:
	ldr	x8, [x8, _watchdog@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	str	w0, [x19, #32]
Lloh36:
	adrp	x8, _emac_ethtool_ops@GOTPAGE
Lloh37:
	ldr	x8, [x8, _emac_ethtool_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_register_netdev
	cbz	w0, LBB0_20
; %bb.19:
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_22
LBB0_20:
	ldp	w5, w2, [x19, #12]
	ldr	x3, [x20, #24]
	ldr	w4, [x19, #8]
Lloh40:
	adrp	x1, l_.str.10@PAGE
Lloh41:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	mov	w23, #0
	b	LBB0_26
LBB0_21:
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_22:
	mov	x0, x21
	bl	_dev_err
Lloh44:
	adrp	x8, _ENODEV@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w23, w8
	mov	x0, x21
	bl	_sunxi_sram_release
LBB0_23:
	ldr	x0, [x20]
	bl	_clk_disable_unprepare
LBB0_24:
	ldr	x0, [x20, #24]
	bl	_iounmap
LBB0_25:
	ldr	x0, [x20, #16]
	str	x23, [sp]
Lloh47:
	adrp	x1, l_.str.11@PAGE
Lloh48:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_free_netdev
LBB0_26:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate device.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_debug,4,2                      ; @debug
	.comm	_EMAC_DEFAULT_MSG_ENABLE,4,2    ; @EMAC_DEFAULT_MSG_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"failed to remap registers\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"No irq resource\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error couldn't enable clock (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error couldn't map SRAM to device\n"

l_.str.5:                               ; @.str.5
	.asciz	"phy-handle"

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

l_.str.7:                               ; @.str.7
	.asciz	"no associated PHY\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.8:                               ; @.str.8
	.asciz	"using random MAC address %pM\n"

	.comm	_emac_netdev_ops,4,2            ; @emac_netdev_ops
	.comm	_watchdog,4,2                   ; @watchdog
	.comm	_emac_ethtool_ops,4,2           ; @emac_ethtool_ops
l_.str.9:                               ; @.str.9
	.asciz	"Registering netdev failed!\n"

l_.str.10:                              ; @.str.10
	.asciz	"%s: at %p, IRQ %d MAC: %pM\n"

l_.str.11:                              ; @.str.11
	.asciz	"not found (%d).\n"

	.no_dead_strip	_emac_probe
.subsections_via_symbols
