	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_init
_tlan_init:                             ## @tlan_init
	.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
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_TLAN_NUM_RX_LISTS@GOTPCREL(%rip), %r12
	movq	_TLAN_NUM_TX_LISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	(%r12), %ebx
	shll	$2, %ebx
	movl	64(%r14), %edi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 56(%r14)
	movl	%ebx, 8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_ALIGN
	movq	%rax, 40(%r14)
	movq	(%r14), %rdi
	movl	$8, %esi
	callq	_ALIGN
	movq	%rax, 24(%r14)
	movslq	(%r12), %rcx
	leaq	(,%rcx,4), %rdx
	addq	40(%r14), %rdx
	movq	%rdx, 48(%r14)
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 32(%r14)
	movq	_ETH_ALEN@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movslq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	(%r15), %rdx
	addq	%rbx, %rdx
	movq	%r15, %rdi
	callq	_tlan_ee_read_byte
	orl	%eax, %r13d
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	movl	32(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_err
	movl	(%r12), %eax
LBB0_7:
	movq	16(%r14), %rcx
	cmpl	$248, (%rcx)
	jne	LBB0_11
## %bb.8:
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movzbl	(%rcx,%rax), %edx
	movzbl	1(%rcx,%rax), %ebx
	movb	%bl, (%rcx,%rax)
	movq	(%r15), %rcx
	movb	%dl, 1(%rcx,%rax)
	addq	$2, %rax
	movslq	(%r12), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	_tlan_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_tlan_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	movl	32(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_NUM_RX_LISTS,4,2          ## @TLAN_NUM_RX_LISTS
	.comm	_TLAN_NUM_TX_LISTS,4,2          ## @TLAN_NUM_TX_LISTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate lists and buffers for %s\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"%s: Error reading MAC from eeprom: %d\n"

	.comm	_tlan_netdev_ops,4,2            ## @tlan_netdev_ops
	.comm	_tlan_ethtool_ops,4,2           ## @tlan_ethtool_ops
	.comm	_TX_TIMEOUT,4,2                 ## @TX_TIMEOUT
	.no_dead_strip	_tlan_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_init
_tlan_init:                             ; @tlan_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x22, _TLAN_NUM_RX_LISTS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TLAN_NUM_RX_LISTS@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _TLAN_NUM_TX_LISTS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TLAN_NUM_TX_LISTS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	add	w8, w9, w8
	lsl	w21, w8, #2
	ldr	w0, [x0, #64]
	mov	x1, x21
	mov	x2, x20
	bl	_pci_alloc_consistent
	str	x0, [x20, #56]
	str	w21, [x20, #8]
	cbz	x0, LBB0_10
; %bb.1:
	mov	w1, #8
	bl	_ALIGN
	str	x0, [x20, #40]
	ldr	x0, [x20]
	mov	w1, #8
	bl	_ALIGN
	ldr	x8, [x20, #40]
	ldrsw	x9, [x22]
	lsl	x9, x9, #2
	add	x8, x8, x9
	str	x8, [x20, #48]
	add	x8, x9, x0
	stp	x0, x8, [x20, #24]
Lloh5:
	adrp	x21, _ETH_ALEN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x23, #0
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldrsw	x8, [x8]
	add	x1, x23, x8
	ldr	x8, [x19]
	add	x2, x8, x23
	mov	x0, x19
	bl	_tlan_ee_read_byte
	orr	w22, w0, w22
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_3
; %bb.4:
	cbz	w22, LBB0_6
; %bb.5:
	ldr	w1, [x19, #32]
	str	x22, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldr	w8, [x21]
LBB0_6:
	ldr	x9, [x20, #16]
	ldr	w9, [x9]
	cmp	w9, #248
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_9
; %bb.7:
	mov	x8, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x9, x9, x8
	ldrb	w10, [x9]
	ldrb	w11, [x9, #1]
	strb	w11, [x9]
	ldr	x9, [x19]
	add	x9, x9, x8
	strb	w10, [x9, #1]
	add	x8, x8, #2
	ldrsw	x9, [x21]
	cmp	x8, x9
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	w0, #0
Lloh9:
	adrp	x8, _tlan_netdev_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tlan_netdev_ops@GOTPAGEOFF]
Lloh11:
	adrp	x9, _tlan_ethtool_ops@GOTPAGE
Lloh12:
	ldr	x9, [x9, _tlan_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
Lloh13:
	adrp	x8, _TX_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TX_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_10:
	ldr	w1, [x19, #32]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_NUM_RX_LISTS,4,2          ; @TLAN_NUM_RX_LISTS
	.comm	_TLAN_NUM_TX_LISTS,4,2          ; @TLAN_NUM_TX_LISTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate lists and buffers for %s\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"%s: Error reading MAC from eeprom: %d\n"

	.comm	_tlan_netdev_ops,4,2            ; @tlan_netdev_ops
	.comm	_tlan_ethtool_ops,4,2           ; @tlan_ethtool_ops
	.comm	_TX_TIMEOUT,4,2                 ; @TX_TIMEOUT
	.no_dead_strip	_tlan_init
.subsections_via_symbols
