	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdrv_hw_start
_netdrv_hw_start:                       ## @netdrv_hw_start
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %r13
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTK
	movq	_ChipCmd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	movl	%r15d, %edi
	callq	_NETDRV_R8
	movq	_ChipCmdClear@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CmdReset@GOTPCREL(%rip), %r14
	orl	(%r14), %eax
	movl	%r15d, %edi
	movq	%rbx, %r15
	movl	%eax, %esi
	callq	_NETDRV_W8
	movl	$100, %edi
	callq	_udelay
	movl	$1000, %ebx                     ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_NETDRV_R8
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%rbx), %eax
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_1
LBB0_3:
	movq	_MAC0@GOTPCREL(%rip), %rbx
	movq	%r15, %r14
	movq	(%rbx), %r15
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_NETDRV_W32_F
	movq	(%rbx), %r15
	addq	$4, %r15
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_cpu_to_le32
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_NETDRV_W32_F
	movl	(%r14), %r15d
	movl	%r15d, %edi
	callq	_NETDRV_R8
	movq	_ChipCmdClear@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CmdRxEnb@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CmdTxEnb@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_NETDRV_W8_F
	movq	_netdrv_rx_config@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_RxConfig@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_NETDRV_R32
	movq	_rtl_chip_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r13), %rdx
	andl	(%rcx,%rdx,4), %eax
	orl	%eax, %r15d
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_NETDRV_W32_F
	movq	_TxConfig@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TX_DMA_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TxDMAShift@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	callq	_NETDRV_W32
	movq	_Cfg9346@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_Cfg9346_Unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NETDRV_W8_F
	movl	$10, %edi
	callq	_udelay
	movq	$0, 32(%r13)
	movl	(%rbx), %edi
	movq	_Cfg9346_Lock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NETDRV_W8_F
	movl	$10, %edi
	callq	_udelay
	movq	_RxBuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	8(%r13), %esi
	callq	_NETDRV_W32_F
	movq	_NUM_TX_DESC@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_TxAddr0@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	movq	16(%r13), %rax
	movl	(%rax,%rbx), %esi
	addl	12(%r13), %esi
	subl	24(%r13), %esi
	callq	_NETDRV_W32_F
	incq	%r12
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_5
LBB0_6:
	movq	_RxMissed@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_NETDRV_W32_F
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netdrv_set_rx_mode
	movq	_MultiIntr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_NETDRV_R16
	movq	_MultiIntrClear@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_NETDRV_W16
	movq	_ChipCmd@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_NETDRV_R8
	movq	_ChipCmdClear@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CmdRxEnb@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CmdTxEnb@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_NETDRV_W8_F
	movq	_IntrMask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_netdrv_intr_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NETDRV_W16_F
	movq	%r14, %rdi
	callq	_netif_start_queue
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

	.comm	_ChipCmd,4,2                    ## @ChipCmd
	.comm	_ChipCmdClear,4,2               ## @ChipCmdClear
	.comm	_CmdReset,4,2                   ## @CmdReset
	.comm	_MAC0,8,3                       ## @MAC0
	.comm	_CmdRxEnb,4,2                   ## @CmdRxEnb
	.comm	_CmdTxEnb,4,2                   ## @CmdTxEnb
	.comm	_netdrv_rx_config,4,2           ## @netdrv_rx_config
	.comm	_RxConfig,8,3                   ## @RxConfig
	.comm	_rtl_chip_info,8,3              ## @rtl_chip_info
	.comm	_TxConfig,4,2                   ## @TxConfig
	.comm	_TX_DMA_BURST,4,2               ## @TX_DMA_BURST
	.comm	_TxDMAShift,4,2                 ## @TxDMAShift
	.comm	_Cfg9346,4,2                    ## @Cfg9346
	.comm	_Cfg9346_Unlock,4,2             ## @Cfg9346_Unlock
	.comm	_Cfg9346_Lock,4,2               ## @Cfg9346_Lock
	.comm	_RxBuf,8,3                      ## @RxBuf
	.comm	_NUM_TX_DESC,4,2                ## @NUM_TX_DESC
	.comm	_TxAddr0,8,3                    ## @TxAddr0
	.comm	_RxMissed,8,3                   ## @RxMissed
	.comm	_MultiIntr,4,2                  ## @MultiIntr
	.comm	_MultiIntrClear,4,2             ## @MultiIntrClear
	.comm	_IntrMask,4,2                   ## @IntrMask
	.comm	_netdrv_intr_mask,4,2           ## @netdrv_intr_mask
L_.str.1:                               ## @.str.1
	.asciz	"EXIT\n"

	.no_dead_strip	_netdrv_hw_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdrv_hw_start
_netdrv_hw_start:                       ; @netdrv_hw_start
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
Lloh2:
	adrp	x22, _ChipCmd@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ChipCmd@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x21
	bl	_NETDRV_R8
Lloh4:
	adrp	x23, _ChipCmdClear@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ChipCmdClear@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w0
Lloh6:
	adrp	x24, _CmdReset@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CmdReset@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_NETDRV_W8
	mov	w0, #100
	bl	_udelay
	mov	w21, #1000
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_NETDRV_R8
	ldr	w8, [x24]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w21, #1, #0, ne
	sub	w21, w21, #1
	b.hi	LBB0_1
; %bb.2:
Lloh8:
	adrp	x24, _MAC0@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MAC0@GOTPAGEOFF]
	ldr	x21, [x24]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	mov	x1, x0
	mov	x0, x21
	bl	_NETDRV_W32_F
	ldr	x8, [x24]
	add	x21, x8, #4
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_cpu_to_le32
	mov	x1, x0
	mov	x0, x21
	bl	_NETDRV_W32_F
	ldr	w21, [x22]
	mov	x0, x21
	bl	_NETDRV_R8
	ldr	w8, [x23]
	and	w8, w8, w0
Lloh10:
	adrp	x24, _CmdRxEnb@GOTPAGE
Lloh11:
	ldr	x24, [x24, _CmdRxEnb@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh12:
	adrp	x25, _CmdTxEnb@GOTPAGE
Lloh13:
	ldr	x25, [x25, _CmdTxEnb@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_NETDRV_W8_F
Lloh14:
	adrp	x8, _netdrv_rx_config@GOTPAGE
Lloh15:
	ldr	x8, [x8, _netdrv_rx_config@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
Lloh17:
	adrp	x26, _RxConfig@GOTPAGE
Lloh18:
	ldr	x26, [x26, _RxConfig@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_NETDRV_R32
Lloh19:
	adrp	x8, _rtl_chip_info@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rtl_chip_info@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	and	w8, w8, w0
	orr	w1, w8, w21
	ldr	x0, [x26]
	bl	_NETDRV_W32_F
Lloh22:
	adrp	x8, _TxConfig@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TxConfig@GOTPAGEOFF]
Lloh24:
	adrp	x9, _TX_DMA_BURST@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TX_DMA_BURST@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	ldr	w8, [x9]
Lloh28:
	adrp	x9, _TxDMAShift@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TxDMAShift@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	lsl	w1, w8, w9
	bl	_NETDRV_W32
Lloh31:
	adrp	x21, _Cfg9346@GOTPAGE
Lloh32:
	ldr	x21, [x21, _Cfg9346@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh33:
	adrp	x8, _Cfg9346_Unlock@GOTPAGE
Lloh34:
	ldr	x8, [x8, _Cfg9346_Unlock@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_NETDRV_W8_F
	mov	w0, #10
	bl	_udelay
	str	xzr, [x20, #32]
	ldr	w0, [x21]
Lloh36:
	adrp	x8, _Cfg9346_Lock@GOTPAGE
Lloh37:
	ldr	x8, [x8, _Cfg9346_Lock@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_NETDRV_W8_F
	mov	w0, #10
	bl	_udelay
Lloh39:
	adrp	x8, _RxBuf@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RxBuf@GOTPAGEOFF]
Lloh41:
	ldr	x0, [x8]
	ldr	w1, [x20, #8]
	bl	_NETDRV_W32_F
Lloh42:
	adrp	x21, _NUM_TX_DESC@GOTPAGE
Lloh43:
	ldr	x21, [x21, _NUM_TX_DESC@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x26, #0
	mov	x27, #0
Lloh44:
	adrp	x28, _TxAddr0@GOTPAGE
Lloh45:
	ldr	x28, [x28, _TxAddr0@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	add	x0, x26, x8
	ldr	w8, [x20, #12]
	ldr	x9, [x20, #16]
	ldr	w9, [x9, x26]
	ldr	w10, [x20, #24]
	add	w8, w9, w8
	sub	w1, w8, w10
	bl	_NETDRV_W32_F
	add	x27, x27, #1
	ldrsw	x8, [x21]
	add	x26, x26, #4
	cmp	x27, x8
	b.lt	LBB0_4
LBB0_5:
Lloh46:
	adrp	x8, _RxMissed@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RxMissed@GOTPAGEOFF]
Lloh48:
	ldr	x0, [x8]
	mov	w1, #0
	bl	_NETDRV_W32_F
	mov	x0, x19
	bl	_netdrv_set_rx_mode
Lloh49:
	adrp	x8, _MultiIntr@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MultiIntr@GOTPAGEOFF]
Lloh51:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_NETDRV_R16
Lloh52:
	adrp	x8, _MultiIntrClear@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MultiIntrClear@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	and	w1, w8, w0
	mov	x0, x20
	bl	_NETDRV_W16
	ldr	w20, [x22]
	mov	x0, x20
	bl	_NETDRV_R8
	ldr	w8, [x23]
	and	w8, w8, w0
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_NETDRV_W8_F
Lloh55:
	adrp	x8, _IntrMask@GOTPAGE
Lloh56:
	ldr	x8, [x8, _IntrMask@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
Lloh58:
	adrp	x8, _netdrv_intr_mask@GOTPAGE
Lloh59:
	ldr	x8, [x8, _netdrv_intr_mask@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	bl	_NETDRV_W16_F
	mov	x0, x19
	bl	_netif_start_queue
Lloh61:
	adrp	x0, l_.str.1@PAGE
Lloh62:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_DPRINTK
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

	.comm	_ChipCmd,4,2                    ; @ChipCmd
	.comm	_ChipCmdClear,4,2               ; @ChipCmdClear
	.comm	_CmdReset,4,2                   ; @CmdReset
	.comm	_MAC0,8,3                       ; @MAC0
	.comm	_CmdRxEnb,4,2                   ; @CmdRxEnb
	.comm	_CmdTxEnb,4,2                   ; @CmdTxEnb
	.comm	_netdrv_rx_config,4,2           ; @netdrv_rx_config
	.comm	_RxConfig,8,3                   ; @RxConfig
	.comm	_rtl_chip_info,8,3              ; @rtl_chip_info
	.comm	_TxConfig,4,2                   ; @TxConfig
	.comm	_TX_DMA_BURST,4,2               ; @TX_DMA_BURST
	.comm	_TxDMAShift,4,2                 ; @TxDMAShift
	.comm	_Cfg9346,4,2                    ; @Cfg9346
	.comm	_Cfg9346_Unlock,4,2             ; @Cfg9346_Unlock
	.comm	_Cfg9346_Lock,4,2               ; @Cfg9346_Lock
	.comm	_RxBuf,8,3                      ; @RxBuf
	.comm	_NUM_TX_DESC,4,2                ; @NUM_TX_DESC
	.comm	_TxAddr0,8,3                    ; @TxAddr0
	.comm	_RxMissed,8,3                   ; @RxMissed
	.comm	_MultiIntr,4,2                  ; @MultiIntr
	.comm	_MultiIntrClear,4,2             ; @MultiIntrClear
	.comm	_IntrMask,4,2                   ; @IntrMask
	.comm	_netdrv_intr_mask,4,2           ; @netdrv_intr_mask
l_.str.1:                               ; @.str.1
	.asciz	"EXIT\n"

	.no_dead_strip	_netdrv_hw_start
.subsections_via_symbols
