	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_config_discard
_nvme_config_discard:                   ## @nvme_config_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rsi), %r12
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_queue_logical_block_size
	movl	%eax, %r14d
	movq	_NVME_CTRL_ONCS_DSM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_8
## %bb.1:
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	imull	%r14d, %eax
	imull	%ecx, %eax
	movl	%eax, %r14d
LBB0_5:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$2, %rax
	movq	_NVME_DSM_MAX_RANGES@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setb	%dil
	callq	_BUILD_BUG_ON
	movq	$0, 8(%r15)
	movl	%r14d, (%r15)
	movq	_QUEUE_FLAG_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_blk_queue_flag_test_and_set
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_QUEUE_FLAG_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blk_queue_flag_clear           ## TAILCALL
LBB0_6:
	movq	_UINT_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_blk_queue_max_discard_sectors
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_blk_queue_max_discard_segments
	movq	_NVME_QUIRK_DEALLOCATE_ZEROES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_7
## %bb.9:
	movl	(%r14), %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blk_queue_max_write_zeroes_sectors ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_CTRL_ONCS_DSM,4,2         ## @NVME_CTRL_ONCS_DSM
	.comm	_QUEUE_FLAG_DISCARD,4,2         ## @QUEUE_FLAG_DISCARD
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_NVME_DSM_MAX_RANGES,4,2        ## @NVME_DSM_MAX_RANGES
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_NVME_QUIRK_DEALLOCATE_ZEROES,4,2 ## @NVME_QUIRK_DEALLOCATE_ZEROES
	.no_dead_strip	_nvme_config_discard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_config_discard
_nvme_config_discard:                   ; @nvme_config_discard
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	ldr	x22, [x1, #8]
	ldr	x19, [x0]
	mov	x0, x19
	bl	_queue_logical_block_size
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _NVME_CTRL_ONCS_DSM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_CTRL_ONCS_DSM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w9, [x21, #4]
	mul	w8, w8, w20
	mul	w8, w8, w9
	cmp	w9, #0
	csel	w20, w20, w8, eq
LBB0_4:
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
Lloh6:
	adrp	x21, _NVME_DSM_MAX_RANGES@GOTPAGE
Lloh7:
	ldr	x21, [x21, _NVME_DSM_MAX_RANGES@GOTPAGEOFF]
	ldrsw	x9, [x21]
	cmp	x9, x8, lsr #2
	cset	w0, hi
	bl	_BUILD_BUG_ON
	str	xzr, [x19, #8]
	str	w20, [x19]
Lloh8:
	adrp	x8, _QUEUE_FLAG_DISCARD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QUEUE_FLAG_DISCARD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_blk_queue_flag_test_and_set
	cbz	x0, LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh11:
	adrp	x8, _QUEUE_FLAG_DISCARD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QUEUE_FLAG_DISCARD@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_blk_queue_flag_clear
LBB0_7:
Lloh14:
	adrp	x20, _UINT_MAX@GOTPAGE
Lloh15:
	ldr	x20, [x20, _UINT_MAX@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_blk_queue_max_discard_sectors
	ldr	w1, [x21]
	mov	x0, x19
	bl	_blk_queue_max_discard_segments
	ldr	w8, [x22, #4]
Lloh16:
	adrp	x9, _NVME_QUIRK_DEALLOCATE_ZEROES@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NVME_QUIRK_DEALLOCATE_ZEROES@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.8:
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_blk_queue_max_write_zeroes_sectors
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_CTRL_ONCS_DSM,4,2         ; @NVME_CTRL_ONCS_DSM
	.comm	_QUEUE_FLAG_DISCARD,4,2         ; @QUEUE_FLAG_DISCARD
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_NVME_DSM_MAX_RANGES,4,2        ; @NVME_DSM_MAX_RANGES
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_NVME_QUIRK_DEALLOCATE_ZEROES,4,2 ; @NVME_QUIRK_DEALLOCATE_ZEROES
	.no_dead_strip	_nvme_config_discard
.subsections_via_symbols
