	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1e_configure
_atl1e_configure:                       ## @atl1e_configure
	.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, %rbx
	leaq	4(%rdi), %r15
	movq	_REG_ISR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$-1, %r14d
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_AT_WRITE_REG
	movq	%r15, %rdi
	callq	_atl1e_hw_set_mac_addr
	movq	_REG_WOL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_AT_WRITE_REG
	movq	%rbx, %rdi
	callq	_atl1e_configure_des_ring
	movq	_REG_IRQ_MODU_TIMER_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%rbx), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REGW
	movq	_REG_IRQ_MODU_TIMER2_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%rbx), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REGW
	movq	_REG_MASTER_CTRL@GOTPCREL(%rip), %rax
	movq	_MASTER_CTRL_LED_MODE@GOTPCREL(%rip), %rcx
	movq	_MASTER_CTRL_ITIMER_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_MASTER_CTRL_ITIMER2_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REG
	movq	_REG_TRIG_RRD_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REGW
	movq	_REG_TRIG_TPD_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REGW
	movq	_REG_TRIG_RXTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REGW
	movq	_REG_TRIG_TXTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REGW
	movq	_REG_CMBDISDMA_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REGW
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	4(%rbx), %edx
	movq	_REG_MTU@GOTPCREL(%rip), %rax
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REG
	movq	%rbx, %rdi
	callq	_atl1e_configure_tx
	movq	%rbx, %rdi
	callq	_atl1e_configure_rx
	movq	%rbx, %rdi
	callq	_atl1e_configure_dma
	movq	_REG_SMB_STAT_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	callq	_AT_WRITE_REG
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_AT_READ_REG
	movq	_ISR_PHY_LINKDOWN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_3
LBB0_2:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$2147483647, %edx               ## imm = 0x7FFFFFFF
	callq	_AT_WRITE_REG
	xorl	%r14d, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_ISR,4,2                    ## @REG_ISR
	.comm	_REG_WOL_CTRL,4,2               ## @REG_WOL_CTRL
	.comm	_REG_IRQ_MODU_TIMER_INIT,4,2    ## @REG_IRQ_MODU_TIMER_INIT
	.comm	_REG_IRQ_MODU_TIMER2_INIT,4,2   ## @REG_IRQ_MODU_TIMER2_INIT
	.comm	_REG_MASTER_CTRL,4,2            ## @REG_MASTER_CTRL
	.comm	_MASTER_CTRL_LED_MODE,4,2       ## @MASTER_CTRL_LED_MODE
	.comm	_MASTER_CTRL_ITIMER_EN,4,2      ## @MASTER_CTRL_ITIMER_EN
	.comm	_MASTER_CTRL_ITIMER2_EN,4,2     ## @MASTER_CTRL_ITIMER2_EN
	.comm	_REG_TRIG_RRD_THRESH,4,2        ## @REG_TRIG_RRD_THRESH
	.comm	_REG_TRIG_TPD_THRESH,4,2        ## @REG_TRIG_TPD_THRESH
	.comm	_REG_TRIG_RXTIMER,4,2           ## @REG_TRIG_RXTIMER
	.comm	_REG_TRIG_TXTIMER,4,2           ## @REG_TRIG_TXTIMER
	.comm	_REG_CMBDISDMA_TIMER,4,2        ## @REG_CMBDISDMA_TIMER
	.comm	_REG_MTU,4,2                    ## @REG_MTU
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_REG_SMB_STAT_TIMER,4,2         ## @REG_SMB_STAT_TIMER
	.comm	_ISR_PHY_LINKDOWN,4,2           ## @ISR_PHY_LINKDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atl1e_configure failed, PCIE phy link down\n"

	.no_dead_strip	_atl1e_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1e_configure
_atl1e_configure:                       ; @atl1e_configure
	.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	x20, x0
	add	x19, x0, #4
Lloh0:
	adrp	x21, _REG_ISR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_ISR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #-1
	bl	_AT_WRITE_REG
	mov	x0, x19
	bl	_atl1e_hw_set_mac_addr
Lloh2:
	adrp	x8, _REG_WOL_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_WOL_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_AT_WRITE_REG
	mov	x0, x20
	bl	_atl1e_configure_des_ring
Lloh5:
	adrp	x8, _REG_IRQ_MODU_TIMER_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_IRQ_MODU_TIMER_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x20, #32]
	mov	x0, x19
	bl	_AT_WRITE_REGW
Lloh8:
	adrp	x8, _REG_IRQ_MODU_TIMER2_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_IRQ_MODU_TIMER2_INIT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #32]
	mov	x0, x19
	bl	_AT_WRITE_REGW
Lloh11:
	adrp	x8, _REG_MASTER_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_MASTER_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _MASTER_CTRL_LED_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MASTER_CTRL_LED_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MASTER_CTRL_ITIMER_EN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MASTER_CTRL_ITIMER_EN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _MASTER_CTRL_ITIMER2_EN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MASTER_CTRL_ITIMER2_EN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_AT_WRITE_REG
Lloh23:
	adrp	x8, _REG_TRIG_RRD_THRESH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REG_TRIG_RRD_THRESH@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x20, #28]
	mov	x0, x19
	bl	_AT_WRITE_REGW
Lloh26:
	adrp	x8, _REG_TRIG_TPD_THRESH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REG_TRIG_TPD_THRESH@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
	mov	x0, x19
	bl	_AT_WRITE_REGW
Lloh29:
	adrp	x8, _REG_TRIG_RXTIMER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _REG_TRIG_RXTIMER@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x20, #20]
	mov	x0, x19
	bl	_AT_WRITE_REGW
Lloh32:
	adrp	x8, _REG_TRIG_TXTIMER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REG_TRIG_TXTIMER@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_AT_WRITE_REGW
Lloh35:
	adrp	x8, _REG_CMBDISDMA_TIMER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _REG_CMBDISDMA_TIMER@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_AT_WRITE_REGW
Lloh38:
	adrp	x8, _REG_MTU@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REG_MTU@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
Lloh41:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _VLAN_HLEN@GOTPAGE
Lloh45:
	ldr	x10, [x10, _VLAN_HLEN@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	add	w8, w9, w8
	add	w8, w8, w10
Lloh47:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh48:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	add	w2, w8, w9
	mov	x0, x19
	bl	_AT_WRITE_REG
	mov	x0, x20
	bl	_atl1e_configure_tx
	mov	x0, x20
	bl	_atl1e_configure_rx
	mov	x0, x20
	bl	_atl1e_configure_dma
Lloh50:
	adrp	x8, _REG_SMB_STAT_TIMER@GOTPAGE
Lloh51:
	ldr	x8, [x8, _REG_SMB_STAT_TIMER@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_AT_WRITE_REG
	ldr	w1, [x21]
	mov	x0, x19
	bl	_AT_READ_REG
Lloh53:
	adrp	x8, _ISR_PHY_LINKDOWN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ISR_PHY_LINKDOWN@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh56:
	adrp	x1, l_.str@PAGE
Lloh57:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #2147483647
	bl	_AT_WRITE_REG
	mov	w0, #0
LBB0_3:
	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	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_ISR,4,2                    ; @REG_ISR
	.comm	_REG_WOL_CTRL,4,2               ; @REG_WOL_CTRL
	.comm	_REG_IRQ_MODU_TIMER_INIT,4,2    ; @REG_IRQ_MODU_TIMER_INIT
	.comm	_REG_IRQ_MODU_TIMER2_INIT,4,2   ; @REG_IRQ_MODU_TIMER2_INIT
	.comm	_REG_MASTER_CTRL,4,2            ; @REG_MASTER_CTRL
	.comm	_MASTER_CTRL_LED_MODE,4,2       ; @MASTER_CTRL_LED_MODE
	.comm	_MASTER_CTRL_ITIMER_EN,4,2      ; @MASTER_CTRL_ITIMER_EN
	.comm	_MASTER_CTRL_ITIMER2_EN,4,2     ; @MASTER_CTRL_ITIMER2_EN
	.comm	_REG_TRIG_RRD_THRESH,4,2        ; @REG_TRIG_RRD_THRESH
	.comm	_REG_TRIG_TPD_THRESH,4,2        ; @REG_TRIG_TPD_THRESH
	.comm	_REG_TRIG_RXTIMER,4,2           ; @REG_TRIG_RXTIMER
	.comm	_REG_TRIG_TXTIMER,4,2           ; @REG_TRIG_TXTIMER
	.comm	_REG_CMBDISDMA_TIMER,4,2        ; @REG_CMBDISDMA_TIMER
	.comm	_REG_MTU,4,2                    ; @REG_MTU
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_REG_SMB_STAT_TIMER,4,2         ; @REG_SMB_STAT_TIMER
	.comm	_ISR_PHY_LINKDOWN,4,2           ; @ISR_PHY_LINKDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atl1e_configure failed, PCIE phy link down\n"

	.no_dead_strip	_atl1e_configure
.subsections_via_symbols
