	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc28j60_probe
_enc28j60_probe:                        ## @enc28j60_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_debug@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_netif_msg_drv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	4(%r14), %rdi
	movq	_DRV_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_2:
	movl	$40, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movq	%r14, 24(%rax)
	movl	(%r12), %edi
	movq	_ENC28J60_MSG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_netif_msg_init
	movl	%eax, 20(%rbx)
	leaq	16(%rbx), %rdi
	callq	_mutex_init
	leaq	12(%rbx), %rdi
	movq	_enc28j60_tx_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%rbx), %rdi
	movq	_enc28j60_setrx_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	4(%rbx), %rdi
	movq	_enc28j60_irq_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_enc28j60_restart_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	leaq	4(%r14), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_enc28j60_chipset_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_device_get_mac_address
	testq	%rax, %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.9:
	movl	32(%r15), %edi
	movq	%r13, %rsi
	callq	_ether_addr_copy
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_5:
	movq	%rbx, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_10:
	movq	%r15, %rdi
	callq	_eth_hw_addr_random
LBB0_11:
	movq	%r15, %rdi
	callq	_enc28j60_set_hw_macaddr
	movl	(%r14), %edi
	movq	_enc28j60_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_12
## %bb.14:
	movq	_IF_PORT_10BASET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movl	(%r14), %eax
	movl	%eax, 24(%r15)
	movq	_enc28j60_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_enc28j60_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_enc28j60_lowpower
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	jmp	LBB0_18
LBB0_12:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_18:
	movq	%r15, %rdi
	callq	_free_netdev
	movl	%r12d, %r13d
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ethernet driver %s loaded\n"

	.comm	_DRV_VERSION,4,2                ## @DRV_VERSION
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENC28J60_MSG_DEFAULT,4,2       ## @ENC28J60_MSG_DEFAULT
	.comm	_enc28j60_tx_work_handler,4,2   ## @enc28j60_tx_work_handler
	.comm	_enc28j60_setrx_work_handler,4,2 ## @enc28j60_setrx_work_handler
	.comm	_enc28j60_irq_work_handler,4,2  ## @enc28j60_irq_work_handler
	.comm	_enc28j60_restart_work_handler,4,2 ## @enc28j60_restart_work_handler
L_.str.1:                               ## @.str.1
	.asciz	"chip not found\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_enc28j60_irq,4,2               ## @enc28j60_irq
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
L_.str.2:                               ## @.str.2
	.asciz	"request irq %d failed (ret = %d)\n"

	.comm	_IF_PORT_10BASET,4,2            ## @IF_PORT_10BASET
	.comm	_enc28j60_netdev_ops,4,2        ## @enc28j60_netdev_ops
	.comm	_TX_TIMEOUT,4,2                 ## @TX_TIMEOUT
	.comm	_enc28j60_ethtool_ops,4,2       ## @enc28j60_ethtool_ops
L_.str.3:                               ## @.str.3
	.asciz	"register netdev failed (ret = %d)\n"

	.no_dead_strip	_enc28j60_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc28j60_probe
_enc28j60_probe:                        ; @enc28j60_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
Lloh8:
	adrp	x22, _debug@GOTPAGE
Lloh9:
	ldr	x22, [x22, _debug@GOTPAGEOFF]
	mov	x0, x22
	bl	_netif_msg_drv
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #4
Lloh10:
	adrp	x8, _DRV_VERSION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRV_VERSION@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	x8, [sp, #-16]!
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	add	sp, sp, #16
LBB0_2:
	mov	w0, #40
	bl	_alloc_etherdev
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	stp	x20, x19, [x0, #24]
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _ENC28J60_MSG_DEFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENC28J60_MSG_DEFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_netif_msg_init
	str	w0, [x21, #20]
	add	x0, x21, #16
	bl	_mutex_init
	add	x0, x21, #12
Lloh18:
	adrp	x8, _enc28j60_tx_work_handler@GOTPAGE
Lloh19:
	ldr	x8, [x8, _enc28j60_tx_work_handler@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x21, #8
Lloh21:
	adrp	x8, _enc28j60_setrx_work_handler@GOTPAGE
Lloh22:
	ldr	x8, [x8, _enc28j60_setrx_work_handler@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x21, #4
Lloh24:
	adrp	x8, _enc28j60_irq_work_handler@GOTPAGE
Lloh25:
	ldr	x8, [x8, _enc28j60_irq_work_handler@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh27:
	adrp	x8, _enc28j60_restart_work_handler@GOTPAGE
Lloh28:
	ldr	x8, [x8, _enc28j60_restart_work_handler@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_WORK
	mov	x0, x20
	mov	x1, x21
	bl	_spi_set_drvdata
	add	x22, x20, #4
	mov	x0, x19
	mov	x1, x22
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_enc28j60_chipset_init
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_device_get_mac_address
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #32]
	mov	x1, x23
	bl	_ether_addr_copy
	b	LBB0_11
LBB0_6:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
LBB0_7:
	mov	x0, x21
	bl	_netif_msg_probe
	cbz	x0, LBB0_9
; %bb.8:
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_info
LBB0_9:
Lloh35:
	adrp	x8, _EIO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_10:
	mov	x0, x19
	bl	_eth_hw_addr_random
LBB0_11:
	mov	x0, x19
	bl	_enc28j60_set_hw_macaddr
	ldr	w0, [x20]
Lloh38:
	adrp	x8, _enc28j60_irq@GOTPAGE
Lloh39:
	ldr	x8, [x8, _enc28j60_irq@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	w2, #0
	mov	x4, x21
	bl	_request_irq
	tbnz	w0, #31, LBB0_16
; %bb.12:
Lloh44:
	adrp	x8, _IF_PORT_10BASET@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IF_PORT_10BASET@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [x20]
	stp	w9, w8, [x19, #24]
Lloh47:
	adrp	x8, _enc28j60_netdev_ops@GOTPAGE
Lloh48:
	ldr	x8, [x8, _enc28j60_netdev_ops@GOTPAGEOFF]
Lloh49:
	adrp	x9, _TX_TIMEOUT@GOTPAGE
Lloh50:
	ldr	x9, [x9, _TX_TIMEOUT@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh51:
	ldr	w8, [x9]
	str	w8, [x19, #8]
Lloh52:
	adrp	x8, _enc28j60_ethtool_ops@GOTPAGE
Lloh53:
	ldr	x8, [x8, _enc28j60_ethtool_ops@GOTPAGEOFF]
	str	x8, [x19]
	mov	x0, x21
	mov	w1, #1
	bl	_enc28j60_lowpower
	mov	x0, x19
	bl	_register_netdev
	mov	x23, x0
	cbz	w0, LBB0_19
; %bb.13:
	mov	x0, x21
	bl	_netif_msg_probe
	cbz	x0, LBB0_15
; %bb.14:
Lloh54:
	adrp	x1, l_.str.3@PAGE
Lloh55:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_dev_err
LBB0_15:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_free_irq
	b	LBB0_18
LBB0_16:
	mov	x23, x0
	mov	x0, x21
	bl	_netif_msg_probe
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w2, [x20]
	str	x23, [sp, #-16]!
Lloh56:
	adrp	x1, l_.str.2@PAGE
Lloh57:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	add	sp, sp, #16
LBB0_18:
	mov	x0, x19
	bl	_free_netdev
LBB0_19:
	ldur	x8, [x29, #-56]
Lloh58:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh59:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x23
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ethernet driver %s loaded\n"

	.comm	_DRV_VERSION,4,2                ; @DRV_VERSION
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENC28J60_MSG_DEFAULT,4,2       ; @ENC28J60_MSG_DEFAULT
	.comm	_enc28j60_tx_work_handler,4,2   ; @enc28j60_tx_work_handler
	.comm	_enc28j60_setrx_work_handler,4,2 ; @enc28j60_setrx_work_handler
	.comm	_enc28j60_irq_work_handler,4,2  ; @enc28j60_irq_work_handler
	.comm	_enc28j60_restart_work_handler,4,2 ; @enc28j60_restart_work_handler
l_.str.1:                               ; @.str.1
	.asciz	"chip not found\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_enc28j60_irq,4,2               ; @enc28j60_irq
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
l_.str.2:                               ; @.str.2
	.asciz	"request irq %d failed (ret = %d)\n"

	.comm	_IF_PORT_10BASET,4,2            ; @IF_PORT_10BASET
	.comm	_enc28j60_netdev_ops,4,2        ; @enc28j60_netdev_ops
	.comm	_TX_TIMEOUT,4,2                 ; @TX_TIMEOUT
	.comm	_enc28j60_ethtool_ops,4,2       ; @enc28j60_ethtool_ops
l_.str.3:                               ; @.str.3
	.asciz	"register netdev failed (ret = %d)\n"

	.no_dead_strip	_enc28j60_probe
.subsections_via_symbols
