	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function complete_transaction
_complete_transaction:                  ## @complete_transaction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %rbx
	movl	%esi, %r14d
	movq	8(%r8), %rax
	movq	(%rax), %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, (%rbx)
	movl	%r14d, %eax
LBB0_2:
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_5
LBB0_3:
	leaq	24(%rbx), %rdi
	callq	_list_del
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*16(%rbx)
	leaq	4(%rbx), %rdi
	movq	_free_orb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kref_put
LBB0_5:
	addq	$4, %rbx
	movq	_free_orb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kref_put                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCODE_COMPLETE,4,2             ## @RCODE_COMPLETE
	.comm	_free_orb,4,2                   ## @free_orb
	.no_dead_strip	_complete_transaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function complete_transaction
_complete_transaction:                  ; @complete_transaction
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
	mov	x20, x1
	ldr	x8, [x4, #8]
	ldr	x0, [x8]
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	cmn	w8, #1
	b.ne	LBB0_2
; %bb.1:
	str	w20, [x19]
	mov	x8, x20
LBB0_2:
Lloh0:
	adrp	x9, _RCODE_COMPLETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCODE_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x20, _free_orb@GOTPAGE
Lloh4:
	ldr	x20, [x20, _free_orb@GOTPAGEOFF]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_spin_unlock_irqrestore
	b	LBB0_5
LBB0_4:
	add	x0, x19, #24
	bl	_list_del
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, #0
	blr	x8
	add	x0, x19, #4
	ldr	w1, [x20]
	bl	_kref_put
LBB0_5:
	add	x0, x19, #4
	ldr	w1, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kref_put
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RCODE_COMPLETE,4,2             ; @RCODE_COMPLETE
	.comm	_free_orb,4,2                   ; @free_orb
	.no_dead_strip	_complete_transaction
.subsections_via_symbols
