	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function com20020_probe
_com20020_probe:                        ## @com20020_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_DEBUG
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_alloc_arcdev
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	_timeout@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_backplane@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_clockp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_clockm@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	$3, %ecx
	movl	%ecx, (%rax)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_node@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_IO_DATA_PATH_WIDTH_8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movabsq	$68719476752, %rax              ## imm = 0x1000000010
	movq	%rax, 32(%r12)
	movq	_IRQ_TYPE_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_IRQ_LEVEL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_INT_MEMORY_AND_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r15, (%r14)
	movq	%r15, 8(%r12)
	movq	%r14, (%r12)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_com20020_config                ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	callq	_kfree
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"com20020_attach()\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_timeout,4,2                    ## @timeout
	.comm	_backplane,4,2                  ## @backplane
	.comm	_clockp,4,2                     ## @clockp
	.comm	_clockm,4,2                     ## @clockm
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_node,4,2                       ## @node
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ## @IO_DATA_PATH_WIDTH_8
	.comm	_IRQ_TYPE_EXCLUSIVE,4,2         ## @IRQ_TYPE_EXCLUSIVE
	.comm	_IRQ_LEVEL_ID,4,2               ## @IRQ_LEVEL_ID
	.comm	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.comm	_INT_MEMORY_AND_IO,4,2          ## @INT_MEMORY_AND_IO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_com20020_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function com20020_probe
_com20020_probe:                        ; @com20020_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_alloc_arcdev
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	bl	_netdev_priv
Lloh7:
	adrp	x8, _timeout@GOTPAGE
Lloh8:
	ldr	x8, [x8, _timeout@GOTPAGEOFF]
Lloh9:
	adrp	x9, _backplane@GOTPAGE
Lloh10:
	ldr	x9, [x9, _backplane@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
Lloh13:
	adrp	x8, _clockp@GOTPAGE
Lloh14:
	ldr	x8, [x8, _clockp@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _clockm@GOTPAGE
Lloh17:
	ldr	x9, [x9, _clockm@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w9, w9, #0x3
	str	w9, [x0]
Lloh19:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _node@GOTPAGE
Lloh23:
	ldr	x10, [x10, _node@GOTPAGEOFF]
	stp	w9, w8, [x0, #4]
Lloh24:
	ldr	w8, [x10]
	ldr	x9, [x21]
	str	w8, [x9]
Lloh25:
	adrp	x8, _IO_DATA_PATH_WIDTH_8@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IO_DATA_PATH_WIDTH_8@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	movi.2s	v0, #16
	str	d0, [x19, #32]
Lloh28:
	adrp	x8, _IRQ_TYPE_EXCLUSIVE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQ_TYPE_EXCLUSIVE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _IRQ_LEVEL_ID@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IRQ_LEVEL_ID@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh34:
	adrp	x8, _CONF_ENABLE_IRQ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CONF_ENABLE_IRQ@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _INT_MEMORY_AND_IO@GOTPAGE
Lloh38:
	ldr	x9, [x9, _INT_MEMORY_AND_IO@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	str	x21, [x20]
	stp	x20, x21, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_com20020_config
LBB0_3:
	mov	x0, x20
	bl	_kfree
LBB0_4:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"com20020_attach()\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_timeout,4,2                    ; @timeout
	.comm	_backplane,4,2                  ; @backplane
	.comm	_clockp,4,2                     ; @clockp
	.comm	_clockm,4,2                     ; @clockm
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_node,4,2                       ; @node
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ; @IO_DATA_PATH_WIDTH_8
	.comm	_IRQ_TYPE_EXCLUSIVE,4,2         ; @IRQ_TYPE_EXCLUSIVE
	.comm	_IRQ_LEVEL_ID,4,2               ; @IRQ_LEVEL_ID
	.comm	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_INT_MEMORY_AND_IO,4,2          ; @INT_MEMORY_AND_IO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_com20020_probe
.subsections_via_symbols
