	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_fc_free_tgt_pgs
_nvmet_fc_free_tgt_pgs:                 ## @nvmet_fc_free_tgt_pgs
	.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	16(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.2:
	leaq	8(%rbx), %r14
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movl	(%rcx), %edi
	movq	_NVMET_FCP_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	callq	_fc_dma_unmap_sg
	movq	16(%rbx), %rdi
	callq	_sgl_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_FCP_WRITE,8,3            ## @NVMET_FCP_WRITE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_nvmet_fc_free_tgt_pgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_fc_free_tgt_pgs
_nvmet_fc_free_tgt_pgs:                 ; @nvmet_fc_free_tgt_pgs
	.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
	ldr	x1, [x0, #16]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x20, x0
	ldr	x2, [x20, #8]!
	cbz	x2, LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NVMET_FCP_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVMET_FCP_WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _DMA_TO_DEVICE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w3, [x8]
	bl	_fc_dma_unmap_sg
	ldr	x0, [x19, #16]
	bl	_sgl_free
	stp	xzr, xzr, [x20]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_FCP_WRITE,8,3            ; @NVMET_FCP_WRITE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_nvmet_fc_free_tgt_pgs
.subsections_via_symbols
