	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d40_phy_buf_to_lli
_d40_phy_buf_to_lli:                    ## @d40_phy_buf_to_lli
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	32(%rbp), %rax
	movq	_LLI_LAST_LINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_LLI_ADDR_INC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_LLI_TERM_INT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_LLI_CYCLIC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	movl	%ecx, %esi
	andl	%eax, %esi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	notq	%rcx
	movq	$-1, %rsi
	cmovneq	%rcx, %rsi
	andq	%rax, %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	cmovnel	%r8d, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movq	16(%rbp), %rax
	movl	(%rax), %esi
	movq	24(%rbp), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_d40_seg_size
	movl	%eax, %r13d
	movl	$0, %eax
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_LLI_TERM_INT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r13d, %ebx
	movl	$0, %ecx
	cmovneq	%rcx, %rax
	orq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
	subl	%r13d, %ebx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	addl	$4, %edi
	movq	_D40_LLI_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movl	%eax, %r14d
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movq	16(%rbp), %r9
	callq	_d40_phy_fill_lli
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %r12
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovel	%eax, %r13d
	addl	%r13d, %r15d
	testl	%ebx, %ebx
	jne	LBB0_1
	jmp	LBB0_9
LBB0_7:
	xorl	%r12d, %r12d
LBB0_9:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LLI_LAST_LINK,8,3              ## @LLI_LAST_LINK
	.comm	_LLI_ADDR_INC,8,3               ## @LLI_ADDR_INC
	.comm	_LLI_TERM_INT,8,3               ## @LLI_TERM_INT
	.comm	_LLI_CYCLIC,8,3                 ## @LLI_CYCLIC
	.comm	_D40_LLI_ALIGN,4,2              ## @D40_LLI_ALIGN
	.no_dead_strip	_d40_phy_buf_to_lli
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d40_phy_buf_to_lli
_d40_phy_buf_to_lli:                    ; @d40_phy_buf_to_lli
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x7, [sp, #24]                   ; 8-byte Folded Spill
	mov	x20, x6
	str	w5, [sp, #20]                   ; 4-byte Folded Spill
	mov	x26, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x8, [x29, #16]
Lloh0:
	adrp	x9, _LLI_LAST_LINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LLI_LAST_LINK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
	str	w9, [sp, #16]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x9, _LLI_ADDR_INC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LLI_ADDR_INC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w8
	str	w9, [sp, #8]                    ; 4-byte Folded Spill
Lloh6:
	adrp	x9, _LLI_TERM_INT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LLI_TERM_INT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ands	w10, w9, w8
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
Lloh9:
	adrp	x10, _LLI_CYCLIC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LLI_CYCLIC@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	mov	x11, #-1
	csinv	x9, x11, x9, eq
	and	x25, x9, x8
	tst	w10, w8
	csel	w19, wzr, w4, eq
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w2, [x8]
	mov	x0, x23
	bl	_d40_seg_size
	mov	x27, x0
	sub	w23, w23, w0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #0
	ccmp	w23, #0, #0, ne
Lloh12:
	adrp	x8, _LLI_TERM_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LLI_TERM_INT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	csel	x21, x8, xzr, eq
	cmp	w23, #0
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	ccmp	w8, #0, #4, eq
	mov	x28, x19
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w0, w26, #4
Lloh15:
	adrp	x8, _D40_LLI_ALIGN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _D40_LLI_ALIGN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x28, x0
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	orr	x25, x21, x25
	mov	x0, x22
	mov	x1, x24
	mov	x2, x27
	mov	x3, x28
	ldr	w4, [sp, #20]                   ; 4-byte Folded Reload
	mov	x5, x20
	mov	x6, x25
	bl	_d40_phy_fill_lli
	cbnz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x22, x22, #4
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, #0
	csel	w8, wzr, w27, eq
	add	w24, w8, w24
	mov	x26, x28
	cbnz	w23, LBB0_1
	b	LBB0_6
LBB0_5:
	mov	x22, #0
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LLI_LAST_LINK,8,3              ; @LLI_LAST_LINK
	.comm	_LLI_ADDR_INC,8,3               ; @LLI_ADDR_INC
	.comm	_LLI_TERM_INT,8,3               ; @LLI_TERM_INT
	.comm	_LLI_CYCLIC,8,3                 ; @LLI_CYCLIC
	.comm	_D40_LLI_ALIGN,4,2              ; @D40_LLI_ALIGN
	.no_dead_strip	_d40_phy_buf_to_lli
.subsections_via_symbols
