	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_bytes_in_phy_channel
_get_bytes_in_phy_channel:              ## @get_bytes_in_phy_channel
	.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, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_FTDMAC020_CH_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_readl
	movq	_FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movq	_FTDMAC020_CH_CSR_SRC_WIDTH_MSK@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_PL080S_CH_CONTROL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	_PL080S_CONTROL_TRANSFER_SIZE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	(%rbx), %rdi
	callq	_readl
	jmp	LBB0_5
LBB0_4:
	movq	(%rbx), %rdi
	callq	_readl
	movq	_PL080_CONTROL_TRANSFER_SIZE_MASK@GOTPCREL(%rip), %rcx
	movl	%eax, %r14d
	andl	(%rcx), %r14d
LBB0_5:
	movq	_PL080_CONTROL_SWIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movq	_PL080_CONTROL_SWIDTH_MASK@GOTPCREL(%rip), %rdx
LBB0_6:
	andl	(%rdx), %eax
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.8:
	addl	%r14d, %r14d
	jmp	LBB0_10
LBB0_9:
	shll	$2, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FTDMAC020_CH_SIZE,8,3          ## @FTDMAC020_CH_SIZE
	.comm	_FTDMAC020_CH_CSR_SRC_WIDTH_MSK,4,2 ## @FTDMAC020_CH_CSR_SRC_WIDTH_MSK
	.comm	_FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT,4,2 ## @FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT
	.comm	_PL080S_CH_CONTROL2,8,3         ## @PL080S_CH_CONTROL2
	.comm	_PL080S_CONTROL_TRANSFER_SIZE_MASK,4,2 ## @PL080S_CONTROL_TRANSFER_SIZE_MASK
	.comm	_PL080_CONTROL_SWIDTH_MASK,4,2  ## @PL080_CONTROL_SWIDTH_MASK
	.comm	_PL080_CONTROL_SWIDTH_SHIFT,4,2 ## @PL080_CONTROL_SWIDTH_SHIFT
	.comm	_PL080_CONTROL_TRANSFER_SIZE_MASK,4,2 ## @PL080_CONTROL_TRANSFER_SIZE_MASK
	.no_dead_strip	_get_bytes_in_phy_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_bytes_in_phy_channel
_get_bytes_in_phy_channel:              ; @get_bytes_in_phy_channel
	.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	x20, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _FTDMAC020_CH_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FTDMAC020_CH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x19, x0
	ldr	x0, [x20]
	bl	_readl
Lloh3:
	adrp	x8, _FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _FTDMAC020_CH_CSR_SRC_WIDTH_MSK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FTDMAC020_CH_CSR_SRC_WIDTH_MSK@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
Lloh7:
	adrp	x9, _PL080S_CH_CONTROL2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PL080S_CH_CONTROL2@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh10:
	adrp	x8, _PL080S_CONTROL_TRANSFER_SIZE_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PL080S_CONTROL_TRANSFER_SIZE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w19, w8, w0
	ldr	x0, [x20]
	bl	_readl
	b	LBB0_5
LBB0_4:
	ldr	x0, [x20]
	bl	_readl
Lloh13:
	adrp	x8, _PL080_CONTROL_TRANSFER_SIZE_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PL080_CONTROL_TRANSFER_SIZE_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w19, w8, w0
LBB0_5:
Lloh16:
	adrp	x8, _PL080_CONTROL_SWIDTH_SHIFT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PL080_CONTROL_SWIDTH_SHIFT@GOTPAGEOFF]
Lloh18:
	adrp	x9, _PL080_CONTROL_SWIDTH_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PL080_CONTROL_SWIDTH_MASK@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	and	w9, w9, w0
	ldr	w8, [x8]
	asr	w8, w9, w8
	lsl	w9, w19, #2
	lsl	w10, w19, #1
	cmp	w8, #130
	csel	w10, w19, w10, ne
	cmp	w8, #129
	csel	w0, w9, w10, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FTDMAC020_CH_SIZE,8,3          ; @FTDMAC020_CH_SIZE
	.comm	_FTDMAC020_CH_CSR_SRC_WIDTH_MSK,4,2 ; @FTDMAC020_CH_CSR_SRC_WIDTH_MSK
	.comm	_FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT,4,2 ; @FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT
	.comm	_PL080S_CH_CONTROL2,8,3         ; @PL080S_CH_CONTROL2
	.comm	_PL080S_CONTROL_TRANSFER_SIZE_MASK,4,2 ; @PL080S_CONTROL_TRANSFER_SIZE_MASK
	.comm	_PL080_CONTROL_SWIDTH_MASK,4,2  ; @PL080_CONTROL_SWIDTH_MASK
	.comm	_PL080_CONTROL_SWIDTH_SHIFT,4,2 ; @PL080_CONTROL_SWIDTH_SHIFT
	.comm	_PL080_CONTROL_TRANSFER_SIZE_MASK,4,2 ; @PL080_CONTROL_TRANSFER_SIZE_MASK
	.no_dead_strip	_get_bytes_in_phy_channel
.subsections_via_symbols
