	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_submit_discard
_nvme_submit_discard:                   ## @nvme_submit_discard
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	32(%rdi), %r15
	movq	(%rdi), %r12
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdx
	callq	_dma_pool_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	(%r12,%r12,2), %r12
	shlq	$4, %r12
	leaq	(%r15,%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_iod_list
	movq	%r14, (%rax)
	movq	$0, 8(%r13)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movb	(%r13), %cl
	sarl	%cl, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_nvme_block_nr
	movl	%eax, %edi
	callq	_cpu_to_le64
	movq	%rax, (%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_nvme_cmd_dsm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15,%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15,%r12)
	movl	4(%r13), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r15,%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, 24(%r15,%r12)
	movq	$0, 16(%r15,%r12)
	movq	_NVME_DSMGMT_AD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15,%r12)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	incq	%rax
	cmpq	8(%rcx), %rax
	movl	$0, %edi
	cmovneq	%rax, %rdi
	movq	%rdi, (%rcx)
	movl	16(%rcx), %esi
	callq	_writel
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nvme_cmd_dsm,4,2               ## @nvme_cmd_dsm
	.comm	_NVME_DSMGMT_AD,4,2             ## @NVME_DSMGMT_AD
	.no_dead_strip	_nvme_submit_discard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_submit_discard
_nvme_submit_discard:                   ; @nvme_submit_discard
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x4
	mov	x20, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x22, [x0]
	ldp	x8, x26, [x0, #24]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x3
	bl	_dma_pool_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x25, x0
	mov	w8, #48
	madd	x22, x22, x8, x26
	mov	x0, x20
	bl	_iod_list
	str	x25, [x0]
	str	xzr, [x20, #8]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x25, #16]
	ldr	w8, [x24]
	ldr	w9, [x23]
	asr	w0, w8, w9
	bl	_cpu_to_le32
	str	x0, [x25, #8]
	ldr	w1, [x24, #4]
	mov	x0, x23
	bl	_nvme_block_nr
	bl	_cpu_to_le64
	str	x0, [x25]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh3:
	adrp	x8, _nvme_cmd_dsm@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nvme_cmd_dsm@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22, #40]
	str	w21, [x22]
	ldr	w0, [x23, #4]
	bl	_cpu_to_le32
	str	x0, [x22, #32]
	ldr	w0, [x20]
	bl	_cpu_to_le64
	stp	xzr, x0, [x22, #16]
Lloh6:
	adrp	x8, _NVME_DSMGMT_AD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVME_DSMGMT_AD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x22, #8]
	ldp	x8, x9, [x19]
	add	x10, x8, #1
	cmp	x10, x9
	csinc	x0, xzr, x8, eq
	str	x0, [x19]
	ldr	w1, [x19, #16]
	bl	_writel
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nvme_cmd_dsm,4,2               ; @nvme_cmd_dsm
	.comm	_NVME_DSMGMT_AD,4,2             ; @NVME_DSMGMT_AD
	.no_dead_strip	_nvme_submit_discard
.subsections_via_symbols
