	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_com20020_found                 ## -- Begin function com20020_found
	.p2align	4, 0x90
_com20020_found:                        ## @com20020_found
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_com20020_command@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_com20020_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_com20020_setmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_com20020_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_com20020_copy_to_card@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_com20020_copy_from_card@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_com20020_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	8(%r14), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_BUS_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r15,%rax,8), %edi
	callq	_inb
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	movq	_SUB_SETUP1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SET_SUBADR
	movl	(%rbx), %edi
	movq	__XREG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_outb
	movq	_ARC_CAN_10MBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_SUB_SETUP2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SET_SUBADR
	movl	8(%rbx), %edi
	movl	(%r13), %esi
	callq	_outb
	movl	$1, %edi
	callq	_mdelay
	movq	__COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_outb
LBB0_4:
	movl	16(%rbx), %eax
	movl	20(%rbx), %ecx
	shll	$3, %eax
	shll	$2, %ecx
	orl	%eax, %ecx
	orl	$33, %ecx
	movl	%ecx, 12(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_outb
	movl	16(%r14), %edi
	movq	_arcnet_interrupt@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movl	%r12d, %edx
	movq	%r14, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_D_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUGMSG
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movl	%r15d, (%r14)
	movq	_D_NORMAL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	24(%rbx), %edx
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	16(%r14), %r9d
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_BUGMSG
	cmpl	$0, 20(%rbx)
	je	LBB0_8
## %bb.7:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_BUGMSG
LBB0_8:
	movl	16(%rbx), %edx
	cmpl	$3, %edx
	je	LBB0_10
## %bb.9:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_BUGMSG
LBB0_10:
	movl	(%r12), %edi
	movl	(%rbx), %eax
	movl	8(%rbx), %ecx
	movl	%eax, %edx
	sarl	%edx
	movq	_clockrates@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	shrl	$4, %ecx
	andl	$15, %ecx
	shrl	%eax
	andl	$7, %eax
	subl	%ecx, %eax
	addl	$3, %eax
	cltq
	movl	(%rsi,%rax,4), %ecx
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUGMSG
	movq	%r14, %rdi
	callq	_register_netdev
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	16(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_com20020_command,4,2           ## @com20020_command
	.comm	_com20020_status,4,2            ## @com20020_status
	.comm	_com20020_setmask,4,2           ## @com20020_setmask
	.comm	_com20020_reset,4,2             ## @com20020_reset
	.comm	_com20020_copy_to_card,4,2      ## @com20020_copy_to_card
	.comm	_com20020_copy_from_card,4,2    ## @com20020_copy_from_card
	.comm	_com20020_close,4,2             ## @com20020_close
	.comm	_BUS_ALIGN,4,2                  ## @BUS_ALIGN
	.comm	_SUB_SETUP1,4,2                 ## @SUB_SETUP1
	.comm	__XREG,4,2                      ## @_XREG
	.comm	_ARC_CAN_10MBIT,4,2             ## @ARC_CAN_10MBIT
	.comm	_SUB_SETUP2,4,2                 ## @SUB_SETUP2
	.comm	__COMMAND,4,2                   ## @_COMMAND
	.comm	_SETCONF,4,2                    ## @SETCONF
	.comm	_arcnet_interrupt,4,2           ## @arcnet_interrupt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arcnet (COM20020)"

	.comm	_D_NORMAL,4,2                   ## @D_NORMAL
L_.str.1:                               ## @.str.1
	.asciz	"Can't get IRQ %d!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"%s: station %02Xh found at %03lXh, IRQ %d.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Using backplane mode.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Using extended timeout value of %d.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Using CKP %d - data rate %s.\n"

	.comm	_clockrates,8,3                 ## @clockrates
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_com20020_found                 ; -- Begin function com20020_found
	.p2align	2
_com20020_found:                        ; @com20020_found
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
	ldr	w22, [x0]
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _com20020_command@GOTPAGE
Lloh3:
	ldr	x9, [x9, _com20020_command@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #52]
Lloh6:
	adrp	x8, _com20020_status@GOTPAGE
Lloh7:
	ldr	x8, [x8, _com20020_status@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _com20020_setmask@GOTPAGE
Lloh10:
	ldr	x9, [x9, _com20020_setmask@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #44]
Lloh12:
	adrp	x8, _com20020_reset@GOTPAGE
Lloh13:
	ldr	x8, [x8, _com20020_reset@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _com20020_copy_to_card@GOTPAGE
Lloh16:
	ldr	x9, [x9, _com20020_copy_to_card@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #36]
Lloh18:
	adrp	x8, _com20020_copy_from_card@GOTPAGE
Lloh19:
	ldr	x8, [x8, _com20020_copy_from_card@GOTPAGEOFF]
Lloh20:
	adrp	x9, _com20020_close@GOTPAGE
Lloh21:
	ldr	x9, [x9, _com20020_close@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #28]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh24:
	adrp	x8, _BUS_ALIGN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BUS_ALIGN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	add	w0, w22, w8, lsl #3
	bl	_inb
	ldr	x8, [x19, #8]
	str	w0, [x8]
LBB0_2:
Lloh27:
	adrp	x8, _SUB_SETUP1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SUB_SETUP1@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_SET_SUBADR
	ldr	w0, [x20]
Lloh30:
	adrp	x23, __XREG@GOTPAGE
Lloh31:
	ldr	x23, [x23, __XREG@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_outb
	ldr	w8, [x20, #4]
Lloh32:
	adrp	x9, _ARC_CAN_10MBIT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ARC_CAN_10MBIT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh35:
	adrp	x8, _SUB_SETUP2@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SUB_SETUP2@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_SET_SUBADR
	ldr	w0, [x20, #8]
	ldr	w1, [x23]
	bl	_outb
	mov	w0, #1
	bl	_mdelay
Lloh38:
	adrp	x8, __COMMAND@GOTPAGE
Lloh39:
	ldr	x8, [x8, __COMMAND@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_outb
LBB0_4:
	ldp	w8, w9, [x20, #16]
	lsl	w8, w8, #3
	orr	w8, w8, w9, lsl #2
	mov	w9, #33
	orr	w8, w8, w9
	str	w8, [x20, #12]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_outb
	ldr	w0, [x19, #16]
Lloh41:
	adrp	x1, _arcnet_interrupt@GOTPAGE
Lloh42:
	ldr	x1, [x1, _arcnet_interrupt@GOTPAGEOFF]
Lloh43:
	adrp	x3, l_.str@PAGE
Lloh44:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x21
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_6
; %bb.5:
Lloh45:
	adrp	x8, _D_NORMAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _D_NORMAL@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BUGMSG
Lloh50:
	adrp	x8, _ENODEV@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh52:
	adrp	x21, _D_NORMAL@GOTPAGE
Lloh53:
	ldr	x21, [x21, _D_NORMAL@GOTPAGEOFF]
	str	w22, [x19]
	ldr	w0, [x21]
	ldr	x8, [x19, #8]
	ldr	w9, [x20, #24]
	ldr	w8, [x8]
	ldr	w10, [x19, #16]
	stp	x22, x10, [sp, #16]
	stp	x9, x8, [sp]
Lloh54:
	adrp	x1, l_.str.2@PAGE
Lloh55:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BUGMSG
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	w0, [x21]
Lloh56:
	adrp	x1, l_.str.3@PAGE
Lloh57:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_BUGMSG
LBB0_8:
	ldr	w8, [x20, #16]
	cmp	w8, #3
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x21]
	str	x8, [sp]
Lloh58:
	adrp	x1, l_.str.4@PAGE
Lloh59:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_BUGMSG
LBB0_10:
	ldr	w0, [x21]
	ldr	w8, [x20]
	asr	w9, w8, #1
Lloh60:
	adrp	x10, _clockrates@GOTPAGE
Lloh61:
	ldr	x10, [x10, _clockrates@GOTPAGEOFF]
Lloh62:
	ldr	x10, [x10]
	ldr	w11, [x20, #8]
	ubfx	w11, w11, #4, #4
	ubfx	w8, w8, #1, #3
	sub	w8, w8, w11
	add	w8, w8, #3
	ldr	w8, [x10, w8, sxtw #2]
	stp	x9, x8, [sp]
Lloh63:
	adrp	x1, l_.str.5@PAGE
Lloh64:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_BUGMSG
	mov	x0, x19
	bl	_register_netdev
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w0, [x19, #16]
	mov	x1, x19
	bl	_free_irq
Lloh65:
	adrp	x8, _EIO@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_com20020_command,4,2           ; @com20020_command
	.comm	_com20020_status,4,2            ; @com20020_status
	.comm	_com20020_setmask,4,2           ; @com20020_setmask
	.comm	_com20020_reset,4,2             ; @com20020_reset
	.comm	_com20020_copy_to_card,4,2      ; @com20020_copy_to_card
	.comm	_com20020_copy_from_card,4,2    ; @com20020_copy_from_card
	.comm	_com20020_close,4,2             ; @com20020_close
	.comm	_BUS_ALIGN,4,2                  ; @BUS_ALIGN
	.comm	_SUB_SETUP1,4,2                 ; @SUB_SETUP1
	.comm	__XREG,4,2                      ; @_XREG
	.comm	_ARC_CAN_10MBIT,4,2             ; @ARC_CAN_10MBIT
	.comm	_SUB_SETUP2,4,2                 ; @SUB_SETUP2
	.comm	__COMMAND,4,2                   ; @_COMMAND
	.comm	_SETCONF,4,2                    ; @SETCONF
	.comm	_arcnet_interrupt,4,2           ; @arcnet_interrupt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arcnet (COM20020)"

	.comm	_D_NORMAL,4,2                   ; @D_NORMAL
l_.str.1:                               ; @.str.1
	.asciz	"Can't get IRQ %d!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"%s: station %02Xh found at %03lXh, IRQ %d.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Using backplane mode.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Using extended timeout value of %d.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Using CKP %d - data rate %s.\n"

	.comm	_clockrates,8,3                 ; @clockrates
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
