	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e100_hardware_send_packet      ## -- Begin function e100_hardware_send_packet
	.p2align	4, 0x90
_e100_hardware_send_packet:             ## @e100_hardware_send_packet
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	%eax, %edi
	callq	_D
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_led_active@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jne	LBB0_3
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_led_next_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_NETWORK_ACTIVITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_e100_set_network_leds
	movq	(%r13), %rax
	movq	_NET_FLASH_TIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	_led_next_time@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	$1, (%r12)
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	%rax, %rsi
	movq	_clear_led_timer@GOTPCREL(%rip), %rdi
	callq	_mod_timer
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_myNextTxDesc@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	%r15d, (%rax)
	movq	_d_eop@GOTPCREL(%rip), %rcx
	movq	_d_eol@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	orl	(%rcx), %edx
	movq	_d_wait@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 4(%rax)
	movq	%r14, %rdi
	callq	_virt_to_phys
	movq	(%r12), %rcx
	movl	%eax, 8(%rcx)
	movl	(%rbx), %eax
	notl	%eax
	movq	_myLastTxDesc@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	andl	%eax, 4(%rsi)
	movq	%rcx, (%rdx)
	movq	_R_DMA_CH0_CMD@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_restart@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IO_STATE
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"e100 send pack, buf 0x%x len %d\n"

	.comm	_led_active,4,2                 ## @led_active
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_led_next_time,8,3              ## @led_next_time
	.comm	_NETWORK_ACTIVITY,4,2           ## @NETWORK_ACTIVITY
	.comm	_NET_FLASH_TIME,8,3             ## @NET_FLASH_TIME
	.comm	_clear_led_timer,4,2            ## @clear_led_timer
	.comm	_HZ,4,2                         ## @HZ
	.comm	_myNextTxDesc,8,3               ## @myNextTxDesc
	.comm	_d_eop,4,2                      ## @d_eop
	.comm	_d_eol,4,2                      ## @d_eol
	.comm	_d_wait,4,2                     ## @d_wait
	.comm	_myLastTxDesc,8,3               ## @myLastTxDesc
	.comm	_R_DMA_CH0_CMD,8,3              ## @R_DMA_CH0_CMD
	.comm	_cmd,4,2                        ## @cmd
	.comm	_restart,4,2                    ## @restart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e100_hardware_send_packet      ; -- Begin function e100_hardware_send_packet
	.p2align	2
_e100_hardware_send_packet:             ; @e100_hardware_send_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	bl	_D
	mov	x0, x21
	bl	_spin_lock
Lloh2:
	adrp	x22, _led_active@GOTPAGE
Lloh3:
	ldr	x22, [x22, _led_active@GOTPAGEOFF]
	ldr	w8, [x22]
	cbnz	w8, LBB0_3
; %bb.1:
Lloh4:
	adrp	x24, _jiffies@GOTPAGE
Lloh5:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x0, [x24]
Lloh6:
	adrp	x23, _led_next_time@GOTPAGE
Lloh7:
	ldr	x23, [x23, _led_next_time@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_time_after
	cbz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _NETWORK_ACTIVITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETWORK_ACTIVITY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_e100_set_network_leds
	ldr	x8, [x24]
Lloh11:
	adrp	x9, _NET_FLASH_TIME@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NET_FLASH_TIME@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x9, x9, x8
	str	x9, [x23]
	mov	w9, #1
	str	w9, [x22]
Lloh14:
	adrp	x9, _HZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh16:
	ldrsw	x9, [x9]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
Lloh17:
	adrp	x0, _clear_led_timer@GOTPAGE
Lloh18:
	ldr	x0, [x0, _clear_led_timer@GOTPAGEOFF]
	bl	_mod_timer
LBB0_3:
	mov	x0, x21
	bl	_spin_unlock
Lloh19:
	adrp	x21, _myNextTxDesc@GOTPAGE
Lloh20:
	ldr	x21, [x21, _myNextTxDesc@GOTPAGEOFF]
	ldr	x8, [x21]
	str	w20, [x8]
Lloh21:
	adrp	x9, _d_eop@GOTPAGE
Lloh22:
	ldr	x9, [x9, _d_eop@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x20, _d_eol@GOTPAGE
Lloh25:
	ldr	x20, [x20, _d_eol@GOTPAGEOFF]
	ldr	w10, [x20]
	orr	w9, w10, w9
Lloh26:
	adrp	x10, _d_wait@GOTPAGE
Lloh27:
	ldr	x10, [x10, _d_wait@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8, #4]
	mov	x0, x19
	bl	_virt_to_phys
	ldr	x8, [x21]
	str	w0, [x8, #8]
	ldr	w9, [x20]
Lloh29:
	adrp	x10, _myLastTxDesc@GOTPAGE
Lloh30:
	ldr	x10, [x10, _myLastTxDesc@GOTPAGEOFF]
	ldr	x11, [x10]
	ldr	w12, [x11, #4]
	bic	w9, w12, w9
	str	w9, [x11, #4]
	str	x8, [x10]
Lloh31:
	adrp	x19, _R_DMA_CH0_CMD@GOTPAGE
Lloh32:
	ldr	x19, [x19, _R_DMA_CH0_CMD@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh33:
	adrp	x8, _cmd@GOTPAGE
Lloh34:
	ldr	x8, [x8, _cmd@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _restart@GOTPAGE
Lloh37:
	ldr	x8, [x8, _restart@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_IO_STATE
	ldr	x8, [x19]
	str	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e100 send pack, buf 0x%x len %d\n"

	.comm	_led_active,4,2                 ; @led_active
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_led_next_time,8,3              ; @led_next_time
	.comm	_NETWORK_ACTIVITY,4,2           ; @NETWORK_ACTIVITY
	.comm	_NET_FLASH_TIME,8,3             ; @NET_FLASH_TIME
	.comm	_clear_led_timer,4,2            ; @clear_led_timer
	.comm	_HZ,4,2                         ; @HZ
	.comm	_myNextTxDesc,8,3               ; @myNextTxDesc
	.comm	_d_eop,4,2                      ; @d_eop
	.comm	_d_eol,4,2                      ; @d_eol
	.comm	_d_wait,4,2                     ; @d_wait
	.comm	_myLastTxDesc,8,3               ; @myLastTxDesc
	.comm	_R_DMA_CH0_CMD,8,3              ; @R_DMA_CH0_CMD
	.comm	_cmd,4,2                        ; @cmd
	.comm	_restart,4,2                    ; @restart
.subsections_via_symbols
