	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nixge_probe
_nixge_probe:                           ## @nixge_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
	movl	$72, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	_nixge_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r13)
	movq	_nixge_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movl	$64, (%r13)
	movq	_NIXGE_JUMBO_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	%r14, %rdi
	callq	_nixge_get_nvmem_address
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	4(%r13), %edi
	movq	%rbx, %rsi
	callq	_ether_addr_copy
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_5:
	movq	%r13, %rdi
	callq	_eth_hw_addr_random
LBB0_6:
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r13, 24(%rax)
	movq	%r14, 64(%rax)
	leaq	56(%rax), %rsi
	movq	_nixge_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_netif_napi_add
	movq	%r14, %rdi
	callq	_nixge_of_get_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.7:
	movq	%r13, %rdi
	callq	___nixge_hw_set_mac_address
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, (%r15)
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	(%r15), %ebx
	jmp	LBB0_29
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	8(%r15), %ebx
	jmp	LBB0_29
LBB0_11:
	movq	_XAXIDMA_DFT_RX_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_XAXIDMA_DFT_TX_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_nixge_mdio_setup
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_of_node_put
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_28
LBB0_14:
	movl	(%r14), %edi
	callq	_of_get_phy_mode
	movq	%rax, 40(%r15)
	testl	$-2147483648, %eax              ## imm = 0x80000000
	jne	LBB0_15
## %bb.16:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_17
LBB0_22:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 32(%r15)
	movq	24(%r15), %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_29
## %bb.23:
	movl	%eax, %r12d
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movl	(%r14), %edi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movl	(%r14), %edi
	callq	_of_phy_deregister_fixed_link
LBB0_25:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_node_put
	jmp	LBB0_26
LBB0_15:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_26:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	callq	_mdiobus_unregister
LBB0_28:
	movq	%r13, %rdi
	callq	_free_netdev
	movl	%r12d, %ebx
	jmp	LBB0_29
LBB0_17:
	movl	(%r14), %edi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movl	(%r14), %edi
	callq	_of_phy_register_fixed_link
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movl	(%r14), %edi
	callq	_of_node_get
	jmp	LBB0_22
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_20:
	movl	%eax, %r12d
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_nixge_netdev_ops,4,2           ## @nixge_netdev_ops
	.comm	_nixge_ethtool_ops,4,2          ## @nixge_ethtool_ops
	.comm	_NIXGE_JUMBO_MTU,4,2            ## @NIXGE_JUMBO_MTU
	.comm	_nixge_poll,4,2                 ## @nixge_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

L_.str.1:                               ## @.str.1
	.asciz	"could not find 'tx' irq"

L_.str.2:                               ## @.str.2
	.asciz	"rx"

L_.str.3:                               ## @.str.3
	.asciz	"could not find 'rx' irq"

	.comm	_XAXIDMA_DFT_RX_THRESHOLD,4,2   ## @XAXIDMA_DFT_RX_THRESHOLD
	.comm	_XAXIDMA_DFT_TX_THRESHOLD,4,2   ## @XAXIDMA_DFT_TX_THRESHOLD
L_.str.4:                               ## @.str.4
	.asciz	"mdio"

L_.str.5:                               ## @.str.5
	.asciz	"error registering mdio bus"

L_.str.6:                               ## @.str.6
	.asciz	"not find \"phy-mode\" property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.7:                               ## @.str.7
	.asciz	"phy-handle"

L_.str.8:                               ## @.str.8
	.asciz	"broken fixed-link specification\n"

L_.str.9:                               ## @.str.9
	.asciz	"register_netdev() error (%i)\n"

	.no_dead_strip	_nixge_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nixge_probe
_nixge_probe:                           ; @nixge_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	x20, x0
	mov	w0, #72
	bl	_alloc_etherdev
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x20
	bl	_SET_NETDEV_DEV
Lloh0:
	adrp	x8, _NETIF_F_SG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_SG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh3:
	adrp	x8, _nixge_netdev_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nixge_netdev_ops@GOTPAGEOFF]
Lloh5:
	adrp	x9, _nixge_ethtool_ops@GOTPAGE
Lloh6:
	ldr	x9, [x9, _nixge_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
	mov	w8, #64
	str	w8, [x19]
Lloh7:
	adrp	x8, _NIXGE_JUMBO_MTU@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NIXGE_JUMBO_MTU@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_nixge_get_nvmem_address
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_ether_addr_copy
	mov	x0, x21
	bl	_kfree
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_eth_hw_addr_random
LBB0_5:
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	str	x19, [x0, #24]
	str	x20, [x0, #64]
	add	x1, x0, #56
Lloh10:
	adrp	x8, _nixge_poll@GOTPAGE
Lloh11:
	ldr	x8, [x8, _nixge_poll@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_netif_napi_add
	mov	x0, x20
	bl	_nixge_of_get_resources
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	___nixge_hw_set_mac_address
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	str	x0, [x21]
	tbz	x0, #63, LBB0_10
; %bb.7:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w22, [x21]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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
LBB0_10:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	str	x0, [x21, #8]
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w22, [x21, #8]
	b	LBB0_9
LBB0_12:
Lloh27:
	adrp	x8, _XAXIDMA_DFT_RX_THRESHOLD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XAXIDMA_DFT_RX_THRESHOLD@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _XAXIDMA_DFT_TX_THRESHOLD@GOTPAGE
Lloh31:
	ldr	x9, [x9, _XAXIDMA_DFT_TX_THRESHOLD@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #48]
	ldr	w0, [x20]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_of_get_child_by_name
	cbz	x0, LBB0_15
; %bb.13:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	bl	_nixge_mdio_setup
	mov	x22, x0
	mov	x0, x23
	bl	_of_node_put
	cbz	w22, LBB0_15
; %bb.14:
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_23
LBB0_15:
	ldr	w0, [x20]
	bl	_of_get_phy_mode
	str	x0, [x21, #40]
	tbnz	w0, #31, LBB0_21
; %bb.16:
	ldr	w0, [x20]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x23, x0
	cbz	x0, LBB0_24
LBB0_17:
	str	x23, [x21, #32]
	ldr	x0, [x21, #24]
	bl	_register_netdev
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.18:
	str	x22, [sp]
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w0, [x20]
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w0, [x20]
	bl	_of_phy_deregister_fixed_link
LBB0_20:
	mov	x0, x23
	bl	_of_node_put
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_22
	b	LBB0_23
LBB0_21:
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_23
LBB0_22:
	bl	_mdiobus_unregister
LBB0_23:
	mov	x0, x19
	bl	_free_netdev
	b	LBB0_9
LBB0_24:
	ldr	w0, [x20]
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_27
; %bb.25:
	ldr	w0, [x20]
	bl	_of_phy_register_fixed_link
	tbnz	w0, #31, LBB0_28
; %bb.26:
	ldr	w0, [x20]
	bl	_of_node_get
	mov	x23, x0
	b	LBB0_17
LBB0_27:
	mov	x23, #0
	b	LBB0_17
LBB0_28:
	mov	x22, x0
Lloh46:
	adrp	x1, l_.str.8@PAGE
Lloh47:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_22
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_nixge_netdev_ops,4,2           ; @nixge_netdev_ops
	.comm	_nixge_ethtool_ops,4,2          ; @nixge_ethtool_ops
	.comm	_NIXGE_JUMBO_MTU,4,2            ; @NIXGE_JUMBO_MTU
	.comm	_nixge_poll,4,2                 ; @nixge_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

l_.str.1:                               ; @.str.1
	.asciz	"could not find 'tx' irq"

l_.str.2:                               ; @.str.2
	.asciz	"rx"

l_.str.3:                               ; @.str.3
	.asciz	"could not find 'rx' irq"

	.comm	_XAXIDMA_DFT_RX_THRESHOLD,4,2   ; @XAXIDMA_DFT_RX_THRESHOLD
	.comm	_XAXIDMA_DFT_TX_THRESHOLD,4,2   ; @XAXIDMA_DFT_TX_THRESHOLD
l_.str.4:                               ; @.str.4
	.asciz	"mdio"

l_.str.5:                               ; @.str.5
	.asciz	"error registering mdio bus"

l_.str.6:                               ; @.str.6
	.asciz	"not find \"phy-mode\" property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.7:                               ; @.str.7
	.asciz	"phy-handle"

l_.str.8:                               ; @.str.8
	.asciz	"broken fixed-link specification\n"

l_.str.9:                               ; @.str.9
	.asciz	"register_netdev() error (%i)\n"

	.no_dead_strip	_nixge_probe
.subsections_via_symbols
