	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pasemi_mac_open
_pasemi_mac_open:                       ## @pasemi_mac_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	%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	_PAS_MAC_CFG_TXP_FCE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$3, %edi
	callq	_PAS_MAC_CFG_TXP_FPC
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_PAS_MAC_CFG_TXP_SL
	orl	%eax, %ebx
	movl	$15, %edi
	callq	_PAS_MAC_CFG_TXP_COB
	orl	%eax, %ebx
	movl	$8, %edi
	callq	_PAS_MAC_CFG_TXP_TIFT
	orl	%eax, %ebx
	movl	$12, %edi
	callq	_PAS_MAC_CFG_TXP_TIFG
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_PAS_MAC_CFG_TXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_write_mac_reg
	movq	%r15, %rdi
	callq	_pasemi_mac_setup_rx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.1:
	movq	%r14, %r12
	movq	%r15, %rdi
	callq	_pasemi_mac_setup_tx_resources
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpl	$1501, (%r15)                   ## imm = 0x5DD
	jl	LBB0_7
## %bb.4:
	cmpl	$0, 52(%r12)
	jne	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_pasemi_mac_setup_csrings
	cmpl	$0, 52(%r12)
	je	LBB0_6
LBB0_7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_PAS_MAC_RMON
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_write_mac_reg
	incl	%ebx
	cmpl	$32, %ebx
	jne	LBB0_8
## %bb.9:
	movq	_PAS_IOB_DMA_COM_TIMEOUTCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1023, %edi                     ## imm = 0x3FF
	callq	_PAS_IOB_DMA_COM_TIMEOUTCFG_TCNT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_write_iob_reg
	movq	24(%r12), %rax
	movl	4(%rax), %edi
	callq	_PAS_IOB_DMA_RXCH_CFG
	movl	%eax, %ebx
	movl	$256, %edi                      ## imm = 0x100
	callq	_PAS_IOB_DMA_RXCH_CFG_CNTTH
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_write_iob_reg
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	callq	_PAS_IOB_DMA_TXCH_CFG
	movl	%eax, %ebx
	movl	$32, %edi
	callq	_PAS_IOB_DMA_TXCH_CFG_CNTTH
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_write_iob_reg
	movq	_PAS_MAC_IPC_CHNL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	24(%r12), %rax
	movl	4(%rax), %edi
	callq	_PAS_MAC_IPC_CHNL_DCHNO
	movl	%eax, %ebx
	movq	24(%r12), %rax
	movl	4(%rax), %edi
	callq	_PAS_MAC_IPC_CHNL_BCH
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_write_mac_reg
	movl	48(%r12), %edi
	callq	_PAS_DMA_RXINT_RCMDSTA
	movq	_PAS_DMA_RXINT_RCMDSTA_EN@GOTPCREL(%rip), %rcx
	movq	_PAS_DMA_RXINT_RCMDSTA_DROPS_M@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_PAS_DMA_RXINT_RCMDSTA_BP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_PAS_DMA_RXINT_RCMDSTA_OO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_PAS_DMA_RXINT_RCMDSTA_BT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_dma_reg
	movq	%r12, %rdi
	callq	_rx_ring
	movq	_PAS_DMA_RXCHAN_CCMDSTA_DU@GOTPCREL(%rip), %rcx
	movq	_PAS_DMA_RXCHAN_CCMDSTA_OD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_PAS_DMA_RXCHAN_CCMDSTA_FD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_PAS_DMA_RXCHAN_CCMDSTA_DT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_pasemi_dma_start_chan
	movq	%r12, %rdi
	callq	_tx_ring
	movq	_PAS_DMA_TXCHAN_TCMDSTA_SZ@GOTPCREL(%rip), %rcx
	movq	_PAS_DMA_TXCHAN_TCMDSTA_DB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_PAS_DMA_TXCHAN_TCMDSTA_DE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_PAS_DMA_TXCHAN_TCMDSTA_DA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_pasemi_dma_start_chan
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pasemi_mac_replenish_rx_ring
	movq	%r12, %rdi
	callq	_rx_ring
	movl	(%rax), %edi
	callq	_PAS_DMA_RXCHAN_INCR
	movl	(%rbx), %esi
	sarl	%esi
	movl	%eax, %edi
	callq	_write_dma_reg
	movq	%r12, %rdi
	callq	_pasemi_mac_restart_rx_intr
	movq	%r12, %rdi
	callq	_pasemi_mac_restart_tx_intr
	movq	_PAS_MAC_CFG_PCFG_S1@GOTPCREL(%rip), %rax
	movq	_PAS_MAC_CFG_PCFG_PR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PAS_MAC_CFG_PCFG_CE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	(%r12), %rax
	movq	_MAC_TYPE_GMAC@GOTPCREL(%rip), %r13
	movq	_PAS_MAC_CFG_PCFG_TSR_1G@GOTPCREL(%rip), %rsi
	movq	_PAS_MAC_CFG_PCFG_TSR_10G@GOTPCREL(%rip), %rdi
	movq	_PAS_MAC_CFG_PCFG_SPD_1G@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	_PAS_MAC_CFG_PCFG_SPD_10G@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rsi), %ebx
	orl	(%rdi), %edx
	cmpq	(%r13), %rax
	cmovel	%ebx, %edx
	orl	%ecx, %edx
	movq	_PAS_MAC_CFG_PCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_write_mac_reg
	movq	%r15, %rdi
	callq	_pasemi_mac_phy_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_pasemi_mac_intf_enable
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.11:
	movq	32(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	32(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_12:
	movq	%r15, %rdi
	callq	_netif_start_queue
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_napi_enable
	movl	44(%r12), %edi
	movq	8(%r15), %rcx
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	8(%r12), %r8
	movl	(%r8), %edi
	movq	_pasemi_mac_tx_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	44(%r12), %ecx
	xorl	%edx, %edx
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movq	32(%r12), %rdi
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_err
	jmp	LBB0_14
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_18:
	movl	40(%r12), %edi
	movq	8(%r15), %rcx
	leaq	L_.str.4(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	24(%r12), %r8
	movl	(%r8), %edi
	movq	_pasemi_mac_rx_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r12), %ecx
	xorl	%edx, %edx
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	movq	24(%r12), %rax
	movq	32(%r12), %rdi
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_err
	movq	8(%r12), %rsi
	movl	(%rsi), %edi
	callq	_free_irq
LBB0_14:
	movq	%r14, %rdi
	callq	_napi_disable
	movq	%r15, %rdi
	callq	_netif_stop_queue
	cmpq	$0, 8(%r12)
	je	LBB0_17
LBB0_16:
	movq	%r12, %rdi
	callq	_pasemi_mac_free_tx_resources
LBB0_17:
	movq	%r12, %rdi
	callq	_pasemi_mac_free_rx_resources
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_phy_start
LBB0_22:
	movq	8(%r12), %rdi
	addq	$8, %rdi
	movq	_pasemi_mac_tx_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_timer_setup
	movq	8(%r12), %rdi
	addq	$8, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	jmp	LBB0_23
LBB0_6:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r12)
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PAS_MAC_CFG_TXP_FCE,4,2        ## @PAS_MAC_CFG_TXP_FCE
	.comm	_PAS_MAC_CFG_TXP,4,2            ## @PAS_MAC_CFG_TXP
	.comm	_PAS_IOB_DMA_COM_TIMEOUTCFG,4,2 ## @PAS_IOB_DMA_COM_TIMEOUTCFG
	.comm	_PAS_MAC_IPC_CHNL,4,2           ## @PAS_MAC_IPC_CHNL
	.comm	_PAS_DMA_RXINT_RCMDSTA_EN,4,2   ## @PAS_DMA_RXINT_RCMDSTA_EN
	.comm	_PAS_DMA_RXINT_RCMDSTA_DROPS_M,4,2 ## @PAS_DMA_RXINT_RCMDSTA_DROPS_M
	.comm	_PAS_DMA_RXINT_RCMDSTA_BP,4,2   ## @PAS_DMA_RXINT_RCMDSTA_BP
	.comm	_PAS_DMA_RXINT_RCMDSTA_OO,4,2   ## @PAS_DMA_RXINT_RCMDSTA_OO
	.comm	_PAS_DMA_RXINT_RCMDSTA_BT,4,2   ## @PAS_DMA_RXINT_RCMDSTA_BT
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_DU,4,2  ## @PAS_DMA_RXCHAN_CCMDSTA_DU
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_OD,4,2  ## @PAS_DMA_RXCHAN_CCMDSTA_OD
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_FD,4,2  ## @PAS_DMA_RXCHAN_CCMDSTA_FD
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_DT,4,2  ## @PAS_DMA_RXCHAN_CCMDSTA_DT
	.comm	_PAS_DMA_TXCHAN_TCMDSTA_SZ,4,2  ## @PAS_DMA_TXCHAN_TCMDSTA_SZ
	.comm	_PAS_DMA_TXCHAN_TCMDSTA_DB,4,2  ## @PAS_DMA_TXCHAN_TCMDSTA_DB
	.comm	_PAS_DMA_TXCHAN_TCMDSTA_DE,4,2  ## @PAS_DMA_TXCHAN_TCMDSTA_DE
	.comm	_PAS_DMA_TXCHAN_TCMDSTA_DA,4,2  ## @PAS_DMA_TXCHAN_TCMDSTA_DA
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_PAS_MAC_CFG_PCFG_S1,4,2        ## @PAS_MAC_CFG_PCFG_S1
	.comm	_PAS_MAC_CFG_PCFG_PR,4,2        ## @PAS_MAC_CFG_PCFG_PR
	.comm	_PAS_MAC_CFG_PCFG_CE,4,2        ## @PAS_MAC_CFG_PCFG_CE
	.comm	_MAC_TYPE_GMAC,8,3              ## @MAC_TYPE_GMAC
	.comm	_PAS_MAC_CFG_PCFG_TSR_1G,4,2    ## @PAS_MAC_CFG_PCFG_TSR_1G
	.comm	_PAS_MAC_CFG_PCFG_SPD_1G,4,2    ## @PAS_MAC_CFG_PCFG_SPD_1G
	.comm	_PAS_MAC_CFG_PCFG_TSR_10G,4,2   ## @PAS_MAC_CFG_PCFG_TSR_10G
	.comm	_PAS_MAC_CFG_PCFG_SPD_10G,4,2   ## @PAS_MAC_CFG_PCFG_SPD_10G
	.comm	_PAS_MAC_CFG_PCFG,4,2           ## @PAS_MAC_CFG_PCFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY init failed: %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Defaulting to 1Gbit full duplex\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s tx"

	.comm	_pasemi_mac_tx_intr,4,2         ## @pasemi_mac_tx_intr
L_.str.3:                               ## @.str.3
	.asciz	"request_irq of irq %d failed: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s rx"

	.comm	_pasemi_mac_rx_intr,4,2         ## @pasemi_mac_rx_intr
	.comm	_pasemi_mac_tx_timer,4,2        ## @pasemi_mac_tx_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.no_dead_strip	_pasemi_mac_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pasemi_mac_open
_pasemi_mac_open:                       ; @pasemi_mac_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _PAS_MAC_CFG_TXP_FCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAS_MAC_CFG_TXP_FCE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #3
	bl	_PAS_MAC_CFG_TXP_FPC
	orr	w21, w0, w21
	mov	w0, #3
	bl	_PAS_MAC_CFG_TXP_SL
	orr	w21, w21, w0
	mov	w0, #15
	bl	_PAS_MAC_CFG_TXP_COB
	orr	w21, w21, w0
	mov	w0, #8
	bl	_PAS_MAC_CFG_TXP_TIFT
	orr	w21, w21, w0
	mov	w0, #12
	bl	_PAS_MAC_CFG_TXP_TIFG
	orr	w2, w21, w0
Lloh3:
	adrp	x8, _PAS_MAC_CFG_TXP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAS_MAC_CFG_TXP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write_mac_reg
	mov	x0, x20
	bl	_pasemi_mac_setup_rx_resources
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.1:
	mov	x0, x20
	bl	_pasemi_mac_setup_tx_resources
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1501
	b.lt	LBB0_5
; %bb.3:
	ldr	w8, [x19, #52]
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_pasemi_mac_setup_csrings
	ldr	w8, [x19, #52]
	cbz	w8, LBB0_22
LBB0_5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_PAS_MAC_RMON
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_write_mac_reg
	add	w21, w21, #1
	cmp	w21, #32
	b.ne	LBB0_6
; %bb.7:
Lloh6:
	adrp	x8, _PAS_IOB_DMA_COM_TIMEOUTCFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAS_IOB_DMA_COM_TIMEOUTCFG@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	w0, #1023
	bl	_PAS_IOB_DMA_COM_TIMEOUTCFG_TCNT
	mov	x1, x0
	mov	x0, x21
	bl	_write_iob_reg
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	bl	_PAS_IOB_DMA_RXCH_CFG
	mov	x21, x0
	mov	w0, #256
	bl	_PAS_IOB_DMA_RXCH_CFG_CNTTH
	mov	x1, x0
	mov	x0, x21
	bl	_write_iob_reg
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_PAS_IOB_DMA_TXCH_CFG
	mov	x21, x0
	mov	w0, #32
	bl	_PAS_IOB_DMA_TXCH_CFG_CNTTH
	mov	x1, x0
	mov	x0, x21
	bl	_write_iob_reg
Lloh9:
	adrp	x8, _PAS_MAC_IPC_CHNL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAS_MAC_IPC_CHNL@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	bl	_PAS_MAC_IPC_CHNL_DCHNO
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	bl	_PAS_MAC_IPC_CHNL_BCH
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	bl	_write_mac_reg
	ldr	w0, [x19, #48]
	bl	_PAS_DMA_RXINT_RCMDSTA
Lloh12:
	adrp	x8, _PAS_DMA_RXINT_RCMDSTA_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAS_DMA_RXINT_RCMDSTA_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PAS_DMA_RXINT_RCMDSTA_DROPS_M@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PAS_DMA_RXINT_RCMDSTA_DROPS_M@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _PAS_DMA_RXINT_RCMDSTA_BP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PAS_DMA_RXINT_RCMDSTA_BP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _PAS_DMA_RXINT_RCMDSTA_OO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PAS_DMA_RXINT_RCMDSTA_OO@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _PAS_DMA_RXINT_RCMDSTA_BT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PAS_DMA_RXINT_RCMDSTA_BT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_write_dma_reg
	mov	x0, x19
	bl	_rx_ring
Lloh27:
	adrp	x8, _PAS_DMA_RXCHAN_CCMDSTA_DU@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PAS_DMA_RXCHAN_CCMDSTA_DU@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _PAS_DMA_RXCHAN_CCMDSTA_OD@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PAS_DMA_RXCHAN_CCMDSTA_OD@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh33:
	adrp	x9, _PAS_DMA_RXCHAN_CCMDSTA_FD@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PAS_DMA_RXCHAN_CCMDSTA_FD@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _PAS_DMA_RXCHAN_CCMDSTA_DT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PAS_DMA_RXCHAN_CCMDSTA_DT@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_pasemi_dma_start_chan
	mov	x0, x19
	bl	_tx_ring
Lloh39:
	adrp	x8, _PAS_DMA_TXCHAN_TCMDSTA_SZ@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PAS_DMA_TXCHAN_TCMDSTA_SZ@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _PAS_DMA_TXCHAN_TCMDSTA_DB@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PAS_DMA_TXCHAN_TCMDSTA_DB@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh45:
	adrp	x9, _PAS_DMA_TXCHAN_TCMDSTA_DE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _PAS_DMA_TXCHAN_TCMDSTA_DE@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh48:
	adrp	x9, _PAS_DMA_TXCHAN_TCMDSTA_DA@GOTPAGE
Lloh49:
	ldr	x9, [x9, _PAS_DMA_TXCHAN_TCMDSTA_DA@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_pasemi_dma_start_chan
Lloh51:
	adrp	x21, _RX_RING_SIZE@GOTPAGE
Lloh52:
	ldr	x21, [x21, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_pasemi_mac_replenish_rx_ring
	mov	x0, x19
	bl	_rx_ring
	ldr	w0, [x0]
	bl	_PAS_DMA_RXCHAN_INCR
	ldr	w8, [x21]
	asr	w1, w8, #1
	bl	_write_dma_reg
	mov	x0, x19
	bl	_pasemi_mac_restart_rx_intr
	mov	x0, x19
	bl	_pasemi_mac_restart_tx_intr
Lloh53:
	adrp	x8, _PAS_MAC_CFG_PCFG_S1@GOTPAGE
Lloh54:
	ldr	x8, [x8, _PAS_MAC_CFG_PCFG_S1@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
Lloh56:
	adrp	x9, _PAS_MAC_CFG_PCFG_PR@GOTPAGE
Lloh57:
	ldr	x9, [x9, _PAS_MAC_CFG_PCFG_PR@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh59:
	adrp	x9, _PAS_MAC_CFG_PCFG_CE@GOTPAGE
Lloh60:
	ldr	x9, [x9, _PAS_MAC_CFG_PCFG_CE@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x19]
Lloh62:
	adrp	x22, _MAC_TYPE_GMAC@GOTPAGE
Lloh63:
	ldr	x22, [x22, _MAC_TYPE_GMAC@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh64:
	adrp	x11, _PAS_MAC_CFG_PCFG_TSR_1G@GOTPAGE
Lloh65:
	ldr	x11, [x11, _PAS_MAC_CFG_PCFG_TSR_1G@GOTPAGEOFF]
Lloh66:
	ldr	w11, [x11]
Lloh67:
	adrp	x12, _PAS_MAC_CFG_PCFG_TSR_10G@GOTPAGE
Lloh68:
	ldr	x12, [x12, _PAS_MAC_CFG_PCFG_TSR_10G@GOTPAGEOFF]
Lloh69:
	ldr	w12, [x12]
Lloh70:
	adrp	x13, _PAS_MAC_CFG_PCFG_SPD_1G@GOTPAGE
Lloh71:
	ldr	x13, [x13, _PAS_MAC_CFG_PCFG_SPD_1G@GOTPAGEOFF]
Lloh72:
	ldr	w13, [x13]
Lloh73:
	adrp	x14, _PAS_MAC_CFG_PCFG_SPD_10G@GOTPAGE
Lloh74:
	ldr	x14, [x14, _PAS_MAC_CFG_PCFG_SPD_10G@GOTPAGEOFF]
Lloh75:
	ldr	w14, [x14]
	orr	w11, w13, w11
	orr	w12, w14, w12
	cmp	x9, x10
	csel	w9, w11, w12, eq
	orr	w2, w8, w9
Lloh76:
	adrp	x8, _PAS_MAC_CFG_PCFG@GOTPAGE
Lloh77:
	ldr	x8, [x8, _PAS_MAC_CFG_PCFG@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_write_mac_reg
	mov	x0, x20
	bl	_pasemi_mac_phy_init
	cbz	w0, LBB0_10
; %bb.8:
	mov	x21, x0
	mov	x0, x19
	bl	_pasemi_mac_intf_enable
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x0, [x19, #32]
	str	x21, [sp]
Lloh79:
	adrp	x1, l_.str@PAGE
Lloh80:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	x0, [x19, #32]
Lloh81:
	adrp	x1, l_.str.1@PAGE
Lloh82:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_10:
	mov	x0, x20
	bl	_netif_start_queue
	add	x21, x19, #16
	mov	x0, x21
	bl	_napi_enable
	ldr	w0, [x19, #44]
	ldr	x3, [x20, #8]
Lloh83:
	adrp	x2, l_.str.2@PAGE
Lloh84:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x4, [x19, #8]
	ldr	w0, [x4]
Lloh85:
	adrp	x8, _pasemi_mac_tx_intr@GOTPAGE
Lloh86:
	ldr	x8, [x8, _pasemi_mac_tx_intr@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
	ldr	w3, [x19, #44]
	mov	w2, #0
	bl	_request_irq
	cbz	w0, LBB0_13
; %bb.11:
	mov	x22, x0
	ldr	x0, [x19, #32]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
Lloh88:
	adrp	x1, l_.str.3@PAGE
Lloh89:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x22
	bl	_dev_err
	b	LBB0_15
LBB0_12:
	mov	w22, #0
	b	LBB0_17
LBB0_13:
	ldr	w0, [x19, #40]
	ldr	x3, [x20, #8]
Lloh90:
	adrp	x2, l_.str.4@PAGE
Lloh91:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x4, [x19, #24]
	ldr	w0, [x4]
Lloh92:
	adrp	x8, _pasemi_mac_rx_intr@GOTPAGE
Lloh93:
	ldr	x8, [x8, _pasemi_mac_rx_intr@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
	ldr	w3, [x19, #40]
	mov	w2, #0
	bl	_request_irq
	cbz	w0, LBB0_19
; %bb.14:
	mov	x22, x0
	ldp	x8, x0, [x19, #24]
	ldr	w2, [x8]
Lloh95:
	adrp	x1, l_.str.3@PAGE
Lloh96:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x22
	bl	_dev_err
	ldr	x1, [x19, #8]
	ldr	w0, [x1]
	bl	_free_irq
LBB0_15:
	mov	x0, x21
	bl	_napi_disable
	mov	x0, x20
	bl	_netif_stop_queue
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_pasemi_mac_free_tx_resources
LBB0_17:
	mov	x0, x19
	bl	_pasemi_mac_free_rx_resources
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_19:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_21
; %bb.20:
	bl	_phy_start
LBB0_21:
	ldr	x8, [x19, #8]
	add	x0, x8, #8
Lloh97:
	adrp	x8, _pasemi_mac_tx_timer@GOTPAGE
Lloh98:
	ldr	x8, [x8, _pasemi_mac_tx_timer@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	ldr	x8, [x19, #8]
Lloh100:
	adrp	x9, _jiffies@GOTPAGE
Lloh101:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
	add	x0, x8, #8
Lloh102:
	ldr	x8, [x9]
Lloh103:
	adrp	x9, _HZ@GOTPAGE
Lloh104:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh105:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mod_timer
	mov	w22, #0
	b	LBB0_18
LBB0_22:
	mov	w22, #0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_16
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_PAS_MAC_CFG_TXP_FCE,4,2        ; @PAS_MAC_CFG_TXP_FCE
	.comm	_PAS_MAC_CFG_TXP,4,2            ; @PAS_MAC_CFG_TXP
	.comm	_PAS_IOB_DMA_COM_TIMEOUTCFG,4,2 ; @PAS_IOB_DMA_COM_TIMEOUTCFG
	.comm	_PAS_MAC_IPC_CHNL,4,2           ; @PAS_MAC_IPC_CHNL
	.comm	_PAS_DMA_RXINT_RCMDSTA_EN,4,2   ; @PAS_DMA_RXINT_RCMDSTA_EN
	.comm	_PAS_DMA_RXINT_RCMDSTA_DROPS_M,4,2 ; @PAS_DMA_RXINT_RCMDSTA_DROPS_M
	.comm	_PAS_DMA_RXINT_RCMDSTA_BP,4,2   ; @PAS_DMA_RXINT_RCMDSTA_BP
	.comm	_PAS_DMA_RXINT_RCMDSTA_OO,4,2   ; @PAS_DMA_RXINT_RCMDSTA_OO
	.comm	_PAS_DMA_RXINT_RCMDSTA_BT,4,2   ; @PAS_DMA_RXINT_RCMDSTA_BT
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_DU,4,2  ; @PAS_DMA_RXCHAN_CCMDSTA_DU
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_OD,4,2  ; @PAS_DMA_RXCHAN_CCMDSTA_OD
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_FD,4,2  ; @PAS_DMA_RXCHAN_CCMDSTA_FD
	.comm	_PAS_DMA_RXCHAN_CCMDSTA_DT,4,2  ; @PAS_DMA_RXCHAN_CCMDSTA_DT
	.comm	_PAS_DMA_TXCHAN_TCMDSTA_SZ,4,2  ; @PAS_DMA_TXCHAN_TCMDSTA_SZ
	.comm	_PAS_DMA_TXCHAN_TCMDSTA_DB,4,2  ; @PAS_DMA_TXCHAN_TCMDSTA_DB
	.comm	_PAS_DMA_TXCHAN_TCMDSTA_DE,4,2  ; @PAS_DMA_TXCHAN_TCMDSTA_DE
	.comm	_PAS_DMA_TXCHAN_TCMDSTA_DA,4,2  ; @PAS_DMA_TXCHAN_TCMDSTA_DA
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_PAS_MAC_CFG_PCFG_S1,4,2        ; @PAS_MAC_CFG_PCFG_S1
	.comm	_PAS_MAC_CFG_PCFG_PR,4,2        ; @PAS_MAC_CFG_PCFG_PR
	.comm	_PAS_MAC_CFG_PCFG_CE,4,2        ; @PAS_MAC_CFG_PCFG_CE
	.comm	_MAC_TYPE_GMAC,8,3              ; @MAC_TYPE_GMAC
	.comm	_PAS_MAC_CFG_PCFG_TSR_1G,4,2    ; @PAS_MAC_CFG_PCFG_TSR_1G
	.comm	_PAS_MAC_CFG_PCFG_SPD_1G,4,2    ; @PAS_MAC_CFG_PCFG_SPD_1G
	.comm	_PAS_MAC_CFG_PCFG_TSR_10G,4,2   ; @PAS_MAC_CFG_PCFG_TSR_10G
	.comm	_PAS_MAC_CFG_PCFG_SPD_10G,4,2   ; @PAS_MAC_CFG_PCFG_SPD_10G
	.comm	_PAS_MAC_CFG_PCFG,4,2           ; @PAS_MAC_CFG_PCFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY init failed: %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Defaulting to 1Gbit full duplex\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s tx"

	.comm	_pasemi_mac_tx_intr,4,2         ; @pasemi_mac_tx_intr
l_.str.3:                               ; @.str.3
	.asciz	"request_irq of irq %d failed: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s rx"

	.comm	_pasemi_mac_rx_intr,4,2         ; @pasemi_mac_rx_intr
	.comm	_pasemi_mac_tx_timer,4,2        ; @pasemi_mac_tx_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.no_dead_strip	_pasemi_mac_open
.subsections_via_symbols
