	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_config_write_zeroes
_nvme_config_write_zeroes:              ## @nvme_config_write_zeroes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rsi), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	8(%rsi), %rcx
	movq	_NVME_CTRL_ONCS_WRITE_ZEROES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_NVME_QUIRK_DISABLE_WRITE_ZEROES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rcx)
	je	LBB0_2
LBB0_5:
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rcx), %rcx
	movq	_UINT_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_USHRT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	incl	%ecx
	movzwl	%cx, %ecx
	movzwl	%ax, %eax
	imull	%ecx, %eax
	shrl	$9, %eax
	movl	(%rdi), %edi
	movzwl	%ax, %esi
	popq	%rbp
	jmp	_blk_queue_max_write_zeroes_sectors ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_CTRL_ONCS_WRITE_ZEROES,4,2 ## @NVME_CTRL_ONCS_WRITE_ZEROES
	.comm	_NVME_QUIRK_DISABLE_WRITE_ZEROES,4,2 ## @NVME_QUIRK_DISABLE_WRITE_ZEROES
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_USHRT_MAX,8,3                  ## @USHRT_MAX
	.no_dead_strip	_nvme_config_write_zeroes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_config_write_zeroes
_nvme_config_write_zeroes:              ; @nvme_config_write_zeroes
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _NVME_CTRL_ONCS_WRITE_ZEROES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NVME_CTRL_ONCS_WRITE_ZEROES@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x8, #4]
Lloh3:
	adrp	x10, _NVME_QUIRK_DISABLE_WRITE_ZEROES@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NVME_QUIRK_DISABLE_WRITE_ZEROES@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
LBB0_2:
	ret
LBB0_3:
	ldr	w9, [x1]
	mov	w10, #1
	lsl	w9, w10, w9
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x10, _UINT_MAX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _UINT_MAX@GOTPAGEOFF]
Lloh8:
	adrp	x11, _USHRT_MAX@GOTPAGE
Lloh9:
	ldr	x11, [x11, _USHRT_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	ldr	w11, [x11]
	cmp	x8, x10
	csel	w8, w11, w8, eq
	add	w8, w8, #1
	and	w8, w8, #0xffff
	and	w9, w9, #0xffff
	mul	w8, w8, w9
	ldr	w0, [x0]
	ubfx	w1, w8, #9, #16
	b	_blk_queue_max_write_zeroes_sectors
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_CTRL_ONCS_WRITE_ZEROES,4,2 ; @NVME_CTRL_ONCS_WRITE_ZEROES
	.comm	_NVME_QUIRK_DISABLE_WRITE_ZEROES,4,2 ; @NVME_QUIRK_DISABLE_WRITE_ZEROES
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_USHRT_MAX,8,3                  ; @USHRT_MAX
	.no_dead_strip	_nvme_config_write_zeroes
.subsections_via_symbols
