	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_schedule
_tx_schedule:                           ## @tx_schedule
	.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	%esi, %r12d
	movq	%rdi, %rbx
	leaq	32(%rdi), %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_MAX_TRANSFER_COUNT@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_YELLOW_LED_ON
	movq	%rbx, %rdi
	callq	_tx_release
	xorl	%r12d, %r12d
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r13d
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ultra@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAX_PIO_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	ja	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_DBG_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DBG_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PRINTD
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_DBG_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DBG_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	cmpl	(%r15), %r13d
	jbe	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rsi
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_PRINTD
	subl	(%r15), %r13d
	movl	%r13d, (%rbx)
	movl	(%r15), %r13d
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_MASTER_TX_COUNT_REG_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wr_regl
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rcx
	movl	(%rcx), %edx
	movl	%edx, 8(%rbx)
	movl	4(%rcx), %r13d
	addq	$8, %rcx
	movq	%rcx, 24(%rbx)
	decl	%eax
	movl	%eax, 4(%rbx)
	movq	_ultra@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAX_PIO_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	ja	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_DBG_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DBG_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PRINTD
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_DBG_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DBG_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	cmpl	(%r15), %r13d
	jbe	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %r13
	movq	$0, 24(%rbx)
	movq	%r13, %rdi
	callq	_ATM_SKB
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_atomic_inc
	movq	%r13, %rdi
	callq	_hrz_kfree_skb
	testl	%r12d, %r12d
	jne	LBB0_24
	jmp	LBB0_25
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.3(%rip), %rsi
	callq	_PRINTD
	movl	$0, (%rbx)
	jmp	LBB0_20
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rsi
	callq	_PRINTD
	cmpq	$0, 24(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$0, (%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MASTER_TX_COUNT_REG_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wr_regl
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_DATA_PORT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	movl	%r13d, %ecx
	callq	_wrs_regb
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_TX_DESCRIPTOR_PORT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_wr_regl
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	%r13d, 8(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_ultra,4,2                      ## @ultra
	.comm	_MAX_PIO_COUNT,4,2              ## @MAX_PIO_COUNT
	.comm	_DBG_TX,4,2                     ## @DBG_TX
	.comm	_DBG_BUS,4,2                    ## @DBG_BUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(pio)"

	.comm	_MAX_TRANSFER_COUNT,4,2         ## @MAX_TRANSFER_COUNT
L_.str.1:                               ## @.str.1
	.asciz	"(simple or last multi)"

L_.str.2:                               ## @.str.2
	.asciz	"(continuing multi)"

L_.str.3:                               ## @.str.3
	.asciz	"(full region)"

L_.str.4:                               ## @.str.4
	.asciz	"(start multi region)"

	.comm	_MASTER_TX_COUNT_REG_OFF,4,2    ## @MASTER_TX_COUNT_REG_OFF
	.comm	_DATA_PORT_OFF,4,2              ## @DATA_PORT_OFF
	.comm	_TX_DESCRIPTOR_PORT_OFF,4,2     ## @TX_DESCRIPTOR_PORT_OFF
	.comm	_MASTER_TX_ADDR_REG_OFF,4,2     ## @MASTER_TX_ADDR_REG_OFF
	.comm	_TX_DESCRIPTOR_REG_OFF,4,2      ## @TX_DESCRIPTOR_REG_OFF
	.comm	_MASTER_TX_AUTO_APPEND_DESC,4,2 ## @MASTER_TX_AUTO_APPEND_DESC
	.comm	_DBG_ERR,4,2                    ## @DBG_ERR
	.comm	_DBG_WARN,4,2                   ## @DBG_WARN
	.comm	_spin_count,4,2                 ## @spin_count
	.no_dead_strip	_tx_schedule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_schedule
_tx_schedule:                           ; @tx_schedule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, x1
	mov	x19, x0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	add	x20, x0, #32
Lloh0:
	adrp	x25, _ultra@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ultra@GOTPAGEOFF]
Lloh2:
	adrp	x22, _MAX_PIO_COUNT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MAX_PIO_COUNT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _DBG_TX@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DBG_TX@GOTPAGEOFF]
Lloh6:
	adrp	x28, _DBG_BUS@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DBG_BUS@GOTPAGEOFF]
Lloh8:
	adrp	x21, _MAX_TRANSFER_COUNT@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MAX_TRANSFER_COUNT@GOTPAGEOFF]
Lloh10:
	adrp	x24, _MASTER_TX_COUNT_REG_OFF@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MASTER_TX_COUNT_REG_OFF@GOTPAGEOFF]
	ldr	w27, [x19]
	cbnz	w27, LBB0_2
	b	LBB0_15
LBB0_1:
	mov	x0, x19
	bl	_YELLOW_LED_ON
	mov	x0, x19
	bl	_tx_release
	mov	w26, #0
	ldr	w27, [x19]
	cbz	w27, LBB0_15
LBB0_2:
	ldr	w0, [x25]
	mov	x1, x20
	bl	_test_bit
	ldr	w8, [x22]
	cmp	w0, #0
	ccmp	w27, w8, #0, ne
	b.hi	LBB0_4
; %bb.3:
	ldr	w8, [x23]
	ldr	w9, [x28]
	orr	w0, w9, w8
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PRINTD
LBB0_4:
	ldr	w8, [x21]
	ldr	w9, [x23]
	ldr	w10, [x28]
	orr	w0, w10, w9
	cmp	w27, w8
	b.ls	LBB0_9
; %bb.5:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_PRINTD
	ldr	w8, [x21]
	sub	w8, w27, w8
	str	w8, [x19]
	ldr	w27, [x21]
	cbnz	w27, LBB0_10
LBB0_7:
	cbz	w26, LBB0_1
LBB0_8:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_wr_regl
	b	LBB0_1
LBB0_9:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PRINTD
	ldr	x8, [x19, #24]
	cmp	x8, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	csinc	w8, w8, wzr, ne
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	str	wzr, [x19]
LBB0_10:
	cbz	w26, LBB0_12
; %bb.11:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_wr_regl
LBB0_12:
Lloh18:
	adrp	x8, _DATA_PORT_OFF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DATA_PORT_OFF@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	x3, x27
	bl	_wrs_regb
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_14
; %bb.13:
Lloh21:
	adrp	x8, _TX_DESCRIPTOR_PORT_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TX_DESCRIPTOR_PORT_OFF@GOTPAGEOFF]
Lloh23:
	ldr	w26, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	bl	_wr_regl
LBB0_14:
	mov	w26, #0
	ldr	w8, [x19, #8]
	add	w8, w8, w27
	str	w8, [x19, #8]
	ldr	w27, [x19]
	cbnz	w27, LBB0_2
LBB0_15:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_20
; %bb.16:
	ldr	x9, [x19, #24]
	ldp	w10, w27, [x9], #8
	str	x9, [x19, #24]
	sub	w8, w8, #1
	stp	w8, w10, [x19, #4]
	ldr	w0, [x25]
	mov	x1, x20
	bl	_test_bit
	ldr	w8, [x22]
	cmp	w0, #0
	ccmp	w27, w8, #0, ne
	b.hi	LBB0_18
; %bb.17:
	ldr	w8, [x23]
	ldr	w9, [x28]
	orr	w0, w9, w8
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PRINTD
LBB0_18:
	ldr	w8, [x21]
	ldr	w9, [x23]
	ldr	w10, [x28]
	orr	w0, w10, w9
	cmp	w27, w8
	b.ls	LBB0_21
; %bb.19:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_20:
	ldr	x27, [x19, #16]
	str	xzr, [x19, #24]
	mov	x0, x27
	bl	_ATM_SKB
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_atomic_inc
	mov	x0, x27
	bl	_hrz_kfree_skb
	cbnz	w26, LBB0_8
	b	LBB0_1
LBB0_21:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PRINTD
	str	wzr, [x19]
	cbz	w27, LBB0_7
	b	LBB0_10
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ultra,4,2                      ; @ultra
	.comm	_MAX_PIO_COUNT,4,2              ; @MAX_PIO_COUNT
	.comm	_DBG_TX,4,2                     ; @DBG_TX
	.comm	_DBG_BUS,4,2                    ; @DBG_BUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(pio)"

	.comm	_MAX_TRANSFER_COUNT,4,2         ; @MAX_TRANSFER_COUNT
l_.str.1:                               ; @.str.1
	.asciz	"(simple or last multi)"

l_.str.2:                               ; @.str.2
	.asciz	"(continuing multi)"

l_.str.3:                               ; @.str.3
	.asciz	"(full region)"

l_.str.4:                               ; @.str.4
	.asciz	"(start multi region)"

	.comm	_MASTER_TX_COUNT_REG_OFF,4,2    ; @MASTER_TX_COUNT_REG_OFF
	.comm	_DATA_PORT_OFF,4,2              ; @DATA_PORT_OFF
	.comm	_TX_DESCRIPTOR_PORT_OFF,4,2     ; @TX_DESCRIPTOR_PORT_OFF
	.comm	_MASTER_TX_ADDR_REG_OFF,4,2     ; @MASTER_TX_ADDR_REG_OFF
	.comm	_TX_DESCRIPTOR_REG_OFF,4,2      ; @TX_DESCRIPTOR_REG_OFF
	.comm	_MASTER_TX_AUTO_APPEND_DESC,4,2 ; @MASTER_TX_AUTO_APPEND_DESC
	.comm	_DBG_ERR,4,2                    ; @DBG_ERR
	.comm	_DBG_WARN,4,2                   ; @DBG_WARN
	.comm	_spin_count,4,2                 ; @spin_count
	.no_dead_strip	_tx_schedule
.subsections_via_symbols
