	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dln2_transfer_complete
_dln2_transfer_complete:                ## @dln2_transfer_complete
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	8(%rdi), %r15
	movq	_DLN2_MAX_RX_SLOTS@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jbe	LBB0_4
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%r14, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r13
	movq	8(%rax,%rcx), %r12
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	leaq	(%rbx,%rbx,2), %rax
	cmpq	$0, 16(%r12,%rax,8)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r12,%rax,8)
	je	LBB0_6
LBB0_3:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_dev_warn
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	(%r12,%rax,8), %rcx
	addq	$8, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx)
	leaq	(%r12,%rax,8), %rdi
	callq	_complete
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	$1, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DLN2_MAX_RX_SLOTS,8,3          ## @DLN2_MAX_RX_SLOTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad/late response %d/%d\n"

	.no_dead_strip	_dln2_transfer_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dln2_transfer_complete
_dln2_transfer_complete:                ; @dln2_transfer_complete
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _DLN2_MAX_RX_SLOTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DLN2_MAX_RX_SLOTS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	b.ls	LBB0_4
; %bb.1:
	mov	x23, x1
	ldr	x8, [x0]
	add	x22, x8, x20, lsl #4
	ldr	x24, [x22, #8]
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	w8, #24
	madd	x8, x19, x8, x24
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w8, #24
	madd	x8, x19, x8, x24
	ldr	x9, [x8, #8]!
	cbz	x9, LBB0_6
LBB0_3:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_dev_warn
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	str	x23, [x8]
	mov	w8, #24
	madd	x0, x19, x8, x24
	bl	_complete
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DLN2_MAX_RX_SLOTS,8,3          ; @DLN2_MAX_RX_SLOTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad/late response %d/%d\n"

	.no_dead_strip	_dln2_transfer_complete
.subsections_via_symbols
