	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl08x_pause_phy_chan
_pl08x_pause_phy_chan:                  ## @pl08x_pause_phy_chan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.6:
	movl	8(%r14), %edi
	callq	_readl
	movq	_FTDMAC020_CH_CSR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	8(%r14), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_1:
	movl	4(%r14), %edi
	callq	_readl
	movq	_PL080_CONFIG_HALT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	4(%r14), %esi
	movl	%eax, %edi
	callq	_writel
	movl	$-1000, %ebx                    ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_pl08x_phy_channel_busy
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	callq	_pl08x_phy_channel_busy
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FTDMAC020_CH_CSR_EN,4,2        ## @FTDMAC020_CH_CSR_EN
	.comm	_PL080_CONFIG_HALT,4,2          ## @PL080_CONFIG_HALT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pl08x: channel%u timeout waiting for pause\n"

	.no_dead_strip	_pl08x_pause_phy_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl08x_pause_phy_chan
_pl08x_pause_phy_chan:                  ; @pl08x_pause_phy_chan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_readl
Lloh0:
	adrp	x8, _FTDMAC020_CH_CSR_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FTDMAC020_CH_CSR_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	w1, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_readl
Lloh3:
	adrp	x8, _PL080_CONFIG_HALT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PL080_CONFIG_HALT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x19, #4]
	bl	_writel
	mov	w20, #-1000
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_pl08x_phy_channel_busy
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_udelay
	adds	w20, w20, #1
	b.lo	LBB0_3
LBB0_5:
	mov	x0, x19
	bl	_pl08x_phy_channel_busy
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_err
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FTDMAC020_CH_CSR_EN,4,2        ; @FTDMAC020_CH_CSR_EN
	.comm	_PL080_CONFIG_HALT,4,2          ; @PL080_CONFIG_HALT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pl08x: channel%u timeout waiting for pause\n"

	.no_dead_strip	_pl08x_pause_phy_chan
.subsections_via_symbols
