	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nmclan_probe
_nmclan_probe:                          ## @nmclan_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_DEBUG
	movq	_rcsid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_DEBUG
	movl	$16, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rbx, 8(%rax)
	movq	%r14, 64(%rbx)
	leaq	4(%rax), %rdi
	callq	_spin_lock_init
	movl	$32, 48(%rbx)
	movq	_IO_DATA_PATH_WIDTH_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	$5, 52(%rbx)
	movq	_IRQ_TYPE_EXCLUSIVE@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLE_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	_IRQ_LEVEL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_mace_interrupt@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_INT_MEMORY_AND_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, (%rbx)
	movq	_PRESENT_OPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_AM2150_MAX_TX_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_mace_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_netdev_ethtool_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_SET_ETHTOOL_OPS
	movq	_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nmclan_config                  ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nmclan_attach()\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.comm	_rcsid,4,2                      ## @rcsid
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IO_DATA_PATH_WIDTH_AUTO,4,2    ## @IO_DATA_PATH_WIDTH_AUTO
	.comm	_IRQ_TYPE_EXCLUSIVE,4,2         ## @IRQ_TYPE_EXCLUSIVE
	.comm	_IRQ_HANDLE_PRESENT,4,2         ## @IRQ_HANDLE_PRESENT
	.comm	_IRQ_LEVEL_ID,4,2               ## @IRQ_LEVEL_ID
	.comm	_mace_interrupt,4,2             ## @mace_interrupt
	.comm	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.comm	_INT_MEMORY_AND_IO,4,2          ## @INT_MEMORY_AND_IO
	.comm	_PRESENT_OPTION,4,2             ## @PRESENT_OPTION
	.comm	_AM2150_MAX_TX_FRAMES,4,2       ## @AM2150_MAX_TX_FRAMES
	.comm	_mace_netdev_ops,4,2            ## @mace_netdev_ops
	.comm	_netdev_ethtool_ops,4,2         ## @netdev_ethtool_ops
	.comm	_TX_TIMEOUT,4,2                 ## @TX_TIMEOUT
	.no_dead_strip	_nmclan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function nmclan_probe
lCPI0_0:
	.long	32                              ; 0x20
	.long	5                               ; 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nmclan_probe:                          ; @nmclan_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_DEBUG
Lloh2:
	adrp	x8, _rcsid@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rcsid@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w22, #1
	mov	w0, #1
	bl	_DEBUG
	mov	w0, #16
	bl	_alloc_etherdev
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	str	x19, [x0, #8]
	str	x20, [x19, #64]
	add	x0, x0, #4
	bl	_spin_lock_init
Lloh7:
	adrp	x8, _IO_DATA_PATH_WIDTH_AUTO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IO_DATA_PATH_WIDTH_AUTO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #56]
Lloh10:
	adrp	x8, _IRQ_TYPE_EXCLUSIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_TYPE_EXCLUSIVE@GOTPAGEOFF]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IRQ_HANDLE_PRESENT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IRQ_HANDLE_PRESENT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _IRQ_LEVEL_ID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IRQ_LEVEL_ID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	str	w9, [x19, #40]
Lloh21:
	adrp	x9, _mace_interrupt@GOTPAGE
Lloh22:
	ldr	x9, [x9, _mace_interrupt@GOTPAGEOFF]
	str	d0, [x19, #48]
	stp	x20, x9, [x19, #24]
Lloh23:
	adrp	x9, _CONF_ENABLE_IRQ@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CONF_ENABLE_IRQ@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
Lloh26:
	adrp	x8, _INT_MEMORY_AND_IO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _INT_MEMORY_AND_IO@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w22, [x19]
Lloh29:
	adrp	x9, _PRESENT_OPTION@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PRESENT_OPTION@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _AM2150_MAX_TX_FRAMES@GOTPAGE
Lloh33:
	ldr	x10, [x10, _AM2150_MAX_TX_FRAMES@GOTPAGEOFF]
	stp	w9, w8, [x19, #4]
Lloh34:
	ldr	w8, [x10]
	str	w8, [x21]
Lloh35:
	adrp	x8, _mace_netdev_ops@GOTPAGE
Lloh36:
	ldr	x8, [x8, _mace_netdev_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh37:
	adrp	x1, _netdev_ethtool_ops@GOTPAGE
Lloh38:
	ldr	x1, [x1, _netdev_ethtool_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_SET_ETHTOOL_OPS
Lloh39:
	adrp	x8, _TX_TIMEOUT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TX_TIMEOUT@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_nmclan_config
LBB0_2:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdrp	Lloh12, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nmclan_attach()\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.comm	_rcsid,4,2                      ; @rcsid
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IO_DATA_PATH_WIDTH_AUTO,4,2    ; @IO_DATA_PATH_WIDTH_AUTO
	.comm	_IRQ_TYPE_EXCLUSIVE,4,2         ; @IRQ_TYPE_EXCLUSIVE
	.comm	_IRQ_HANDLE_PRESENT,4,2         ; @IRQ_HANDLE_PRESENT
	.comm	_IRQ_LEVEL_ID,4,2               ; @IRQ_LEVEL_ID
	.comm	_mace_interrupt,4,2             ; @mace_interrupt
	.comm	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_INT_MEMORY_AND_IO,4,2          ; @INT_MEMORY_AND_IO
	.comm	_PRESENT_OPTION,4,2             ; @PRESENT_OPTION
	.comm	_AM2150_MAX_TX_FRAMES,4,2       ; @AM2150_MAX_TX_FRAMES
	.comm	_mace_netdev_ops,4,2            ; @mace_netdev_ops
	.comm	_netdev_ethtool_ops,4,2         ; @netdev_ethtool_ops
	.comm	_TX_TIMEOUT,4,2                 ; @TX_TIMEOUT
	.no_dead_strip	_nmclan_probe
.subsections_via_symbols
