	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl08x_start_next_txd
_pl08x_start_next_txd:                  ## @pl08x_start_next_txd
	.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
	movq	16(%rdi), %r13
	movq	24(%rdi), %r14
	addq	$8, %rdi
	callq	_vchan_next_desc
	movq	%rax, %rdi
	callq	_to_pl08x_txd
	movq	%rax, %r15
	leaq	16(%rax), %rdi
	callq	_list_del
	movq	%r15, (%r12)
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_pl08x_phy_channel_busy
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_2
LBB0_3:
	movq	8(%r15), %rdx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_pl08x_write_lli
	movq	_PL080_EN_CHAN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %r15d
	movl	24(%r13), %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %ebx
	movl	24(%r13), %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_4
LBB0_5:
	movq	16(%r13), %rbx
	movq	(%r13), %rdi
	callq	_readl
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.6:
	movq	_FTDMAC020_CH_CFG_BUSY@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	callq	_readl
	testl	%eax, (%rbx)
	jne	LBB0_7
LBB0_9:
	movq	8(%r13), %rdi
	addq	$8, %r13
	callq	_readl
	movq	_FTDMAC020_CH_CSR_EN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	testl	%eax, %ecx
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r13), %rdi
	callq	_readl
	jmp	LBB0_11
LBB0_12:
	movq	_PL080_CONFIG_ACTIVE@GOTPCREL(%rip), %r14
	movq	_PL080_CONFIG_ENABLE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	movl	(%r14), %edx
	orl	%ecx, %edx
	testl	%eax, %edx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r13), %rdi
	callq	_readl
	jmp	LBB0_14
LBB0_15:
	orl	%ecx, %eax
	movq	(%r13), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PL080_EN_CHAN,8,3              ## @PL080_EN_CHAN
	.comm	_FTDMAC020_CH_CFG_BUSY,4,2      ## @FTDMAC020_CH_CFG_BUSY
	.comm	_FTDMAC020_CH_CSR_EN,4,2        ## @FTDMAC020_CH_CSR_EN
	.comm	_PL080_CONFIG_ACTIVE,4,2        ## @PL080_CONFIG_ACTIVE
	.comm	_PL080_CONFIG_ENABLE,4,2        ## @PL080_CONFIG_ENABLE
	.no_dead_strip	_pl08x_start_next_txd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl08x_start_next_txd
_pl08x_start_next_txd:                  ; @pl08x_start_next_txd
	.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	x22, x0
	ldp	x19, x20, [x0, #16]
	add	x0, x0, #8
	bl	_vchan_next_desc
	bl	_to_pl08x_txd
	mov	x21, x0
	add	x0, x0, #16
	bl	_list_del
	str	x21, [x22]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_pl08x_phy_channel_busy
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	b	LBB0_1
LBB0_3:
	ldr	x2, [x21, #8]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_pl08x_write_lli
	ldr	x8, [x20]
Lloh0:
	adrp	x22, _PL080_EN_CHAN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PL080_EN_CHAN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	w0, [x19, #24]
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_cpu_relax
	ldr	x8, [x20]
	b	LBB0_4
LBB0_6:
	ldr	x20, [x19, #16]
	ldr	x0, [x19]
	bl	_readl
	cbz	x20, LBB0_13
; %bb.7:
Lloh2:
	adrp	x20, _FTDMAC020_CH_CFG_BUSY@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FTDMAC020_CH_CFG_BUSY@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19]
	bl	_readl
	b	LBB0_8
LBB0_10:
	ldr	x0, [x19, #8]!
	bl	_readl
Lloh4:
	adrp	x20, _FTDMAC020_CH_CSR_EN@GOTPAGE
Lloh5:
	ldr	x20, [x20, _FTDMAC020_CH_CSR_EN@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19]
	bl	_readl
	b	LBB0_11
LBB0_13:
Lloh6:
	adrp	x20, _PL080_CONFIG_ACTIVE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PL080_CONFIG_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh8:
	adrp	x21, _PL080_CONFIG_ENABLE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _PL080_CONFIG_ENABLE@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x19]
	bl	_readl
	ldr	w9, [x20]
	b	LBB0_14
LBB0_16:
	orr	w0, w8, w0
	ldr	x1, [x19]
	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
	b	_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PL080_EN_CHAN,8,3              ; @PL080_EN_CHAN
	.comm	_FTDMAC020_CH_CFG_BUSY,4,2      ; @FTDMAC020_CH_CFG_BUSY
	.comm	_FTDMAC020_CH_CSR_EN,4,2        ; @FTDMAC020_CH_CSR_EN
	.comm	_PL080_CONFIG_ACTIVE,4,2        ; @PL080_CONFIG_ACTIVE
	.comm	_PL080_CONFIG_ENABLE,4,2        ; @PL080_CONFIG_ENABLE
	.no_dead_strip	_pl08x_start_next_txd
.subsections_via_symbols
