	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_receive_one
_pdc_receive_one:                       ## @pdc_receive_one
	.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, %rbx
	movq	104(%rdi), %r14
	movq	96(%rdi), %r15
	movq	_BRCM_MESSAGE_SPU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	60(%rdi), %esi
	movq	(%rdi), %rdi
	movq	8(%rbx), %rdx
	callq	_NRXDACTIVE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rcx
	movq	80(%rbx), %rdx
	shlq	$5, %rcx
	cmpq	(%rdx,%rcx), %rax
	jge	LBB0_4
LBB0_2:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_4:
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rax,%rcx,8), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_WARN_ON
	movq	24(%rbx), %rax
	movq	88(%rbx), %rcx
	movl	(%rcx,%rax,4), %r13d
	movl	%r13d, %edi
	callq	_sg_nents
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_sg
	movq	24(%rbx), %rax
	addq	%r12, %rax
	andq	32(%rbx), %rax
	movq	%rax, 24(%rbx)
	movslq	72(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	80(%rbx), %rcx
	shlq	$5, %rax
	movq	(%rcx,%rax), %r13
	movq	24(%rcx,%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	$0, 24(%rcx,%rax)
	movq	16(%rcx,%rax), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rcx,%rax), %r12d
	movl	12(%rcx,%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_sg_nents
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_sg
	movq	(%rbx), %rax
	addq	%r13, %rax
	andq	8(%rbx), %rax
	movq	%rax, (%rbx)
	movslq	72(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movslq	72(%rbx), %rdx
	movq	(%rbx), %r9
	movq	24(%rbx), %rcx
	movl	68(%rbx), %r8d
	movl	64(%rbx), %r10d
	movl	60(%rbx), %r11d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	callq	_dev_dbg
	addq	$16, %rsp
	movq	40(%rbx), %rax
	movq	_PDC_SPUM_RESP_HDR_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	_RX_STATUS_LEN@GOTPCREL(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	movq	(%rax), %rdx
	andq	%r12, %rdx
	sete	%r13b
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_RX_STATUS_OVERFLOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%r12, %rax
	setne	%al
	orb	%r13b, %al
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_RX_STATUS_OVERFLOW@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err_ratelimited
	incl	56(%rbx)
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_10:
	movl	52(%rbx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dma_pool_free
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mbox_chan_received_data
	incl	48(%rbx)
	movq	_PDC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info_ratelimited
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCM_MESSAGE_SPU,4,2           ## @BRCM_MESSAGE_SPU
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PDC %u reclaimed %d tx descriptors"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"PDC %u reclaimed %d rx descriptors"

L_.str.2:                               ## @.str.2
	.asciz	"PDC %u txin %u, txout %u, rxin %u, rxout %u, last_rx_curr %u\n"

	.comm	_PDC_SPUM_RESP_HDR_LEN,8,3      ## @PDC_SPUM_RESP_HDR_LEN
	.comm	_RX_STATUS_LEN,8,3              ## @RX_STATUS_LEN
L_.str.3:                               ## @.str.3
	.asciz	"SPU response length %u bytes"

	.comm	_RX_STATUS_OVERFLOW,8,3         ## @RX_STATUS_OVERFLOW
L_.str.4:                               ## @.str.4
	.asciz	"crypto receive overflow"

L_.str.5:                               ## @.str.5
	.asciz	"crypto rx len = 0"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_PDC_SUCCESS,4,2                ## @PDC_SUCCESS
	.no_dead_strip	_pdc_receive_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_receive_one
_pdc_receive_one:                       ; @pdc_receive_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _BRCM_MESSAGE_SPU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCM_MESSAGE_SPU@GOTPAGEOFF]
	ldp	x20, x21, [x0, #96]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	ldr	w1, [x0, #60]
	ldr	x0, [x0]
	ldr	x2, [x19, #8]
	bl	_NRXDACTIVE
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #80]
	ldr	x9, [x19]
	lsl	x9, x9, #5
	ldr	x8, [x8, x9]
	cmp	x0, x8
	b.ge	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_4:
	ldp	x8, x9, [x19, #16]
	ldr	x23, [x8, x9, lsl #3]
	cmp	x23, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19, #88]
	ldr	x9, [x19, #24]
	ldr	w22, [x8, x9, lsl #2]
	mov	x0, x22
	bl	_sg_nents
	mov	x2, x0
Lloh5:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_dma_unmap_sg
	ldp	x8, x9, [x19, #24]
	add	x8, x8, x23
	and	x8, x8, x9
	str	x8, [x19, #24]
	ldrsw	x2, [x19, #72]
	str	x23, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	x9, [x19, #80]
	add	x8, x9, x8, lsl #5
	ldr	x25, [x8]
	ldr	x9, [x8, #24]
	str	x9, [sp, #48]
	str	xzr, [x8, #24]
	ldr	x22, [x8, #16]
	ldp	w24, w23, [x8, #8]
	mov	x0, x24
	bl	_sg_nents
	mov	x2, x0
Lloh10:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x24
	bl	_dma_unmap_sg
	ldp	x8, x9, [x19]
	add	x8, x8, x25
	and	x8, x8, x9
	str	x8, [x19]
	ldrsw	x2, [x19, #72]
	str	x25, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	ldp	w10, w2, [x19, #68]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	ldp	w12, w11, [x19, #60]
	stp	x11, x12, [sp, #24]
	stp	x10, x9, [sp, #8]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x8, [x19, #40]
Lloh17:
	adrp	x9, _PDC_SPUM_RESP_HDR_LEN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PDC_SPUM_RESP_HDR_LEN@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x24, [x22]
Lloh20:
	adrp	x8, _RX_STATUS_LEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RX_STATUS_LEN@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	ands	x2, x8, x24
	cset	w26, eq
	mov	x0, x21
	bl	_dev_dbg
Lloh25:
	adrp	x25, _RX_STATUS_OVERFLOW@GOTPAGE
Lloh26:
	ldr	x25, [x25, _RX_STATUS_OVERFLOW@GOTPAGEOFF]
	ldr	x8, [x25]
	tst	x8, x24
	cset	w8, ne
	orr	w0, w26, w8
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x25]
	tst	x8, x24
	b.eq	LBB0_10
; %bb.7:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err_ratelimited
	ldr	w8, [x19, #56]
	add	w8, w8, #1
	str	w8, [x19, #56]
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19, #52]
	mov	x1, x22
	mov	x2, x23
	bl	_dma_pool_free
	add	x1, sp, #48
	mov	x0, x20
	bl	_mbox_chan_received_data
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
Lloh29:
	adrp	x8, _PDC_SUCCESS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PDC_SUCCESS@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_info_ratelimited
LBB0_11:
Lloh34:
	adrp	x8, _EIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCM_MESSAGE_SPU,4,2           ; @BRCM_MESSAGE_SPU
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PDC %u reclaimed %d tx descriptors"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"PDC %u reclaimed %d rx descriptors"

l_.str.2:                               ; @.str.2
	.asciz	"PDC %u txin %u, txout %u, rxin %u, rxout %u, last_rx_curr %u\n"

	.comm	_PDC_SPUM_RESP_HDR_LEN,8,3      ; @PDC_SPUM_RESP_HDR_LEN
	.comm	_RX_STATUS_LEN,8,3              ; @RX_STATUS_LEN
l_.str.3:                               ; @.str.3
	.asciz	"SPU response length %u bytes"

	.comm	_RX_STATUS_OVERFLOW,8,3         ; @RX_STATUS_OVERFLOW
l_.str.4:                               ; @.str.4
	.asciz	"crypto receive overflow"

l_.str.5:                               ; @.str.5
	.asciz	"crypto rx len = 0"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_PDC_SUCCESS,4,2                ; @PDC_SUCCESS
	.no_dead_strip	_pdc_receive_one
.subsections_via_symbols
