	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_pci_sgl_set_seg
_nvme_pci_sgl_set_seg:                  ## @nvme_pci_sgl_set_seg
	.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
	movl	%edx, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_cpu_to_le64
	movl	%eax, 16(%r14)
	movq	_SGES_PER_PAGE@GOTPCREL(%rip), %rax
	leal	(,%rbx,8), %ecx
	cmpl	%ebx, (%rax)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	leal	(%rcx,%rcx,2), %edi
	cmovlel	(%rax), %edi
	movq	_NVME_SGL_FMT_SEG_DESC@GOTPCREL(%rip), %rbx
	cmovgq	_NVME_SGL_FMT_LAST_SEG_DESC@GOTPCREL(%rip), %rbx
	callq	_cpu_to_le32
	movl	(%rbx), %ecx
	shll	$4, %ecx
	movq	%rax, 8(%r14)
	movl	%ecx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGES_PER_PAGE,4,2              ## @SGES_PER_PAGE
	.comm	_NVME_SGL_FMT_LAST_SEG_DESC,4,2 ## @NVME_SGL_FMT_LAST_SEG_DESC
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_NVME_SGL_FMT_SEG_DESC,4,2      ## @NVME_SGL_FMT_SEG_DESC
	.no_dead_strip	_nvme_pci_sgl_set_seg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_pci_sgl_set_seg
_nvme_pci_sgl_set_seg:                  ; @nvme_pci_sgl_set_seg
	.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, x2
	mov	x20, x0
	mov	x0, x1
	bl	_cpu_to_le64
	str	w0, [x20, #16]
Lloh0:
	adrp	x8, _SGES_PER_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SGES_PER_PAGE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	add	w10, w19, w19, lsl #1
	lsl	w10, w10, #3
	cmp	w8, w19
	csel	w0, w10, w9, gt
Lloh6:
	adrp	x8, _NVME_SGL_FMT_LAST_SEG_DESC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVME_SGL_FMT_LAST_SEG_DESC@GOTPAGEOFF]
Lloh8:
	adrp	x9, _NVME_SGL_FMT_SEG_DESC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NVME_SGL_FMT_SEG_DESC@GOTPAGEOFF]
	csel	x19, x8, x9, gt
	bl	_cpu_to_le32
	ldr	w8, [x19]
	lsl	w8, w8, #4
	str	x0, [x20, #8]
	str	w8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SGES_PER_PAGE,4,2              ; @SGES_PER_PAGE
	.comm	_NVME_SGL_FMT_LAST_SEG_DESC,4,2 ; @NVME_SGL_FMT_LAST_SEG_DESC
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_NVME_SGL_FMT_SEG_DESC,4,2      ; @NVME_SGL_FMT_SEG_DESC
	.no_dead_strip	_nvme_pci_sgl_set_seg
.subsections_via_symbols
