	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfspi_xmitlen                  ## -- Begin function cfspi_xmitlen
	.p2align	4, 0x90
_cfspi_xmitlen:                         ## @cfspi_xmitlen
	.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
	movq	%rdi, %r14
	leaq	40(%rdi), %r15
	movq	%r15, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	32(%r14), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_skb_dequeue_tail
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_skb_queue_head
	movq	%r15, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	32(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$-1, %ebx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	_spi_up_head_align@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	cmpl	$2, %esi
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %rdi
	incq	%rdi
	callq	_PAD_POW2
	movl	%eax, %r12d
	incl	%r12d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r12d, %rbx
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	movq	_spi_up_tail_align@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PAD_POW2
	movl	%eax, %r14d
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movslq	%r15d, %rax
	addq	%rbx, %rax
	addq	(%r13), %rax
	movslq	%r14d, %rcx
	addq	%rcx, %rax
	movq	_CAIF_MAX_SPI_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_skb_queue_tail
	addl	%r15d, %r12d
	addl	%r14d, %r12d
	addl	(%r13), %r12d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movl	%r12d, %r14d
	movq	_CAIF_MAX_SPI_PKTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_4
	jmp	LBB0_11
LBB0_5:
	movl	%r14d, %r12d
	jmp	LBB0_11
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_skb_queue_head
	movl	%r15d, %r12d
LBB0_11:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 24(%rcx)
	je	LBB0_15
## %bb.12:
	movq	32(%rcx), %rax
	cmpq	(%rcx), %rax
	jge	LBB0_15
## %bb.13:
	movq	16(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	$0, 24(%rcx)
	movl	8(%rcx), %edi
	movl	$1, %esi
	callq	*%rax
LBB0_15:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_spi_up_head_align,4,2          ## @spi_up_head_align
	.comm	_spi_up_tail_align,4,2          ## @spi_up_tail_align
	.comm	_CAIF_MAX_SPI_FRAME,8,3         ## @CAIF_MAX_SPI_FRAME
	.comm	_CAIF_MAX_SPI_PKTS,4,2          ## @CAIF_MAX_SPI_PKTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfspi_xmitlen                  ; -- Begin function cfspi_xmitlen
	.p2align	2
_cfspi_xmitlen:                         ; @cfspi_xmitlen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	add	x21, x0, #40
	mov	x0, x21
	bl	_skb_peek
	cbz	x0, LBB0_3
; %bb.1:
	add	x20, x19, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_dequeue_tail
	mov	x1, x0
	mov	x0, x20
	bl	_skb_queue_head
	mov	x0, x21
	bl	_skb_peek
	cbnz	x0, LBB0_2
LBB0_3:
	mov	w20, #0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	add	x22, x19, #32
	mov	w25, #-1
Lloh0:
	adrp	x27, _spi_up_tail_align@GOTPAGE
Lloh1:
	ldr	x27, [x27, _spi_up_tail_align@GOTPAGEOFF]
Lloh2:
	adrp	x28, _CAIF_MAX_SPI_FRAME@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CAIF_MAX_SPI_FRAME@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_skb_dequeue
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
Lloh4:
	adrp	x8, _spi_up_head_align@GOTPAGE
Lloh5:
	ldr	x8, [x8, _spi_up_head_align@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	cmp	w1, #2
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #8]
	add	x0, x8, #1
	bl	_PAD_POW2
	add	w26, w0, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	sxtw	x19, w26
	add	x0, x8, x19
	ldr	w1, [x27]
	bl	_PAD_POW2
	ldr	x8, [x23]
	add	x9, x19, w20, sxtw
	add	x8, x9, x8
	add	x8, x8, w0, sxtw
	ldr	x9, [x28]
	cmp	x8, x9
	b.gt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_skb_queue_tail
	ldr	w8, [x23]
	add	w9, w26, w20
	add	w9, w9, w24
	add	w20, w9, w8
Lloh7:
	adrp	x8, _CAIF_MAX_SPI_PKTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAIF_MAX_SPI_PKTS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	add	w25, w25, #1
	cmp	w25, w8
	b.lt	LBB0_4
	b	LBB0_11
LBB0_10:
	mov	x0, x22
	mov	x1, x23
	bl	_skb_queue_head
LBB0_11:
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x8, [x10, #24]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	x8, [x10, #32]
	ldr	x9, [x10]
	cmp	x8, x9
	b.ge	LBB0_15
; %bb.13:
	ldr	x8, [x10, #16]
	cbz	x8, LBB0_15
; %bb.14:
	str	xzr, [x10, #24]
	ldr	w0, [x10, #8]
	mov	w1, #1
	blr	x8
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_spi_up_head_align,4,2          ; @spi_up_head_align
	.comm	_spi_up_tail_align,4,2          ; @spi_up_tail_align
	.comm	_CAIF_MAX_SPI_FRAME,8,3         ; @CAIF_MAX_SPI_FRAME
	.comm	_CAIF_MAX_SPI_PKTS,4,2          ; @CAIF_MAX_SPI_PKTS
.subsections_via_symbols
