	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl08x_getbytes_chan
_pl08x_getbytes_chan:                   ## @pl08x_getbytes_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	xorl	%r15d, %r15d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.2:
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_readl
	movq	%rax, %r14
	movq	_PL080_LLI_LM_AHB2@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	notq	%r13
	movq	%rbx, %rdi
	callq	_get_bytes_in_phy_channel
	movq	%rax, %r15
	andq	%r14, %r13
	je	LBB0_7
## %bb.3:
	movq	8(%r12), %rax
	movq	_MAX_NUM_TSFR_LLIS@GOTPCREL(%rip), %rcx
	movq	%r12, %rdx
	movq	(%rcx), %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	imulq	(%r14), %r12
	movq	%r13, %rbx
	subq	%rax, %rbx
	setb	%cl
	leaq	(%rax,%r12,8), %rax
	cmpq	%rax, %r13
	setae	%al
	orb	%cl, %al
	movzbl	%al, %edi
	andq	$-8, %rbx
	addq	(%rdx), %rbx
	callq	_BUG_ON
	testq	%r12, %r12
	jle	LBB0_7
## %bb.4:
	movq	%r14, %rcx
	leaq	(%rbx,%r12,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r12
	movq	%r15, %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_get_bytes_in_lli
	movq	%rax, %r15
	addq	%r14, %r15
	movq	_PL080_LLI_LLI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r13, (%rbx,%rax,8)
	jbe	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rcx
	movq	(%r12), %rax
	leaq	(%rbx,%rax,8), %rbx
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	jb	LBB0_5
LBB0_7:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PL080_LLI_LM_AHB2,8,3          ## @PL080_LLI_LM_AHB2
	.comm	_MAX_NUM_TSFR_LLIS,8,3          ## @MAX_NUM_TSFR_LLIS
	.comm	_PL080_LLI_LLI,8,3              ## @PL080_LLI_LLI
	.no_dead_strip	_pl08x_getbytes_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl08x_getbytes_chan
_pl08x_getbytes_chan:                   ; @pl08x_getbytes_chan
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldp	x21, x19, [x0]
	cmp	x19, #0
	ccmp	x21, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_7
LBB0_2:
	ldr	x22, [x0, #16]
	ldr	w0, [x19]
	bl	_readl
Lloh0:
	adrp	x8, _PL080_LLI_LM_AHB2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PL080_LLI_LM_AHB2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bic	x23, x0, x8
	mov	x0, x19
	bl	_get_bytes_in_phy_channel
	mov	x20, x0
	cbz	x23, LBB0_7
; %bb.3:
	ldp	x24, x8, [x21]
	ldr	x9, [x22]
Lloh3:
	adrp	x10, _MAX_NUM_TSFR_LLIS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_NUM_TSFR_LLIS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mul	x26, x10, x9
	subs	x21, x23, x8
	lsl	x25, x26, #3
	add	x8, x25, x8
	ccmp	x23, x8, #2, hs
	cset	w0, hs
	bl	_BUG_ON
	cmp	x26, #1
	b.lt	LBB0_7
; %bb.4:
	and	x8, x21, #0xfffffffffffffff8
	add	x21, x24, x8
	add	x24, x21, x25
Lloh6:
	adrp	x25, _PL080_LLI_LLI@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PL080_LLI_LLI@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_get_bytes_in_lli
	add	x20, x0, x20
	ldr	x8, [x25]
	ldr	x8, [x21, x8, lsl #3]
	cmp	x8, x23
	b.ls	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	add	x21, x21, x8, lsl #3
	cmp	x21, x24
	b.lo	LBB0_5
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PL080_LLI_LM_AHB2,8,3          ; @PL080_LLI_LM_AHB2
	.comm	_MAX_NUM_TSFR_LLIS,8,3          ; @MAX_NUM_TSFR_LLIS
	.comm	_PL080_LLI_LLI,8,3              ; @PL080_LLI_LLI
	.no_dead_strip	_pl08x_getbytes_chan
.subsections_via_symbols
