	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_open
_tlan_open:                             ## @tlan_open
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	movl	8(%rbx), %edi
	movq	_TLAN_DEF_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tlan_dio_read8
	movl	%eax, (%r14)
	movl	(%rbx), %ecx
	movl	4(%rbx), %edi
	movq	_tlan_handle_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	jmp	LBB0_3
LBB0_2:
	leaq	8(%r14), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	_tlan_phy_monitor@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%rbx, %rdi
	callq	_tlan_start
	movq	_TLAN_DEBUG_GNRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_TLAN_DBG
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_DEF_REVISION,4,2          ## @TLAN_DEF_REVISION
	.comm	_tlan_handle_interrupt,4,2      ## @tlan_handle_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot open because IRQ %d is already in use\n"

	.comm	_tlan_phy_monitor,8,3           ## @tlan_phy_monitor
	.comm	_TLAN_DEBUG_GNRL,4,2            ## @TLAN_DEBUG_GNRL
L_.str.1:                               ## @.str.1
	.asciz	"%s: Opened.  TLAN Chip Rev: %x\n"

	.no_dead_strip	_tlan_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_open
_tlan_open:                             ; @tlan_open
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _TLAN_DEF_REVISION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLAN_DEF_REVISION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tlan_dio_read8
	str	w0, [x20]
Lloh3:
	adrp	x8, _tlan_handle_interrupt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tlan_handle_interrupt@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldp	w3, w0, [x19]
	mov	x4, x19
	bl	_request_irq
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w2, [x19, #4]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_3
LBB0_2:
	add	x0, x20, #8
	mov	x1, #0
	mov	w2, #0
	bl	_timer_setup
	add	x0, x20, #4
Lloh11:
	adrp	x8, _tlan_phy_monitor@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tlan_phy_monitor@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	mov	w2, #0
	bl	_timer_setup
	mov	x0, x19
	bl	_tlan_start
Lloh14:
	adrp	x8, _TLAN_DEBUG_GNRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TLAN_DEBUG_GNRL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w2, [x19]
	ldr	w3, [x20]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_TLAN_DBG
LBB0_3:
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_DEF_REVISION,4,2          ; @TLAN_DEF_REVISION
	.comm	_tlan_handle_interrupt,4,2      ; @tlan_handle_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot open because IRQ %d is already in use\n"

	.comm	_tlan_phy_monitor,8,3           ; @tlan_phy_monitor
	.comm	_TLAN_DEBUG_GNRL,4,2            ; @TLAN_DEBUG_GNRL
l_.str.1:                               ; @.str.1
	.asciz	"%s: Opened.  TLAN Chip Rev: %x\n"

	.no_dead_strip	_tlan_open
.subsections_via_symbols
