	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_update_disk_info
_nvme_update_disk_info:                 ## @nvme_update_disk_info
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	40(%rdx), %edi
	callq	_le64_to_cpu
	movl	%eax, %ebx
	movl	(%r12), %eax
	leal	-9(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$512, %r15d                     ## imm = 0x200
	cmovlel	%edx, %r15d
	movl	(%r13), %edi
	callq	_blk_mq_freeze_queue
	movq	%r13, %rdi
	callq	_blk_integrity_unregister
	cmpq	$0, (%r14)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.6:
	movzwl	%r15w, %r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_7
LBB0_1:
	testb	$2, 8(%r14)
	je	LBB0_4
## %bb.2:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_le16_to_cpu
	jmp	LBB0_5
LBB0_4:
	movq	16(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax), %eax
LBB0_5:
	incl	%eax
	movzwl	%r15w, %r12d
	imull	%r12d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_7:
	testb	$16, 8(%r14)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.8:
	movl	%r12d, %r14d
	jmp	LBB0_10
LBB0_9:
	movq	24(%r14), %rdi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	incl	%ebx
	imull	%r12d, %ebx
	movq	16(%r14), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	incl	%r14d
	imull	%r12d, %r14d
	movl	%ebx, %r12d
LBB0_10:
	movl	(%r13), %edi
	movzwl	%r15w, %esi
	callq	_blk_queue_logical_block_size
	movl	(%r13), %ebx
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_blk_queue_physical_block_size
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_blk_queue_io_min
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_blk_queue_io_opt
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %esi
	testl	%esi, %esi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_16
## %bb.11:
	cmpl	$0, 24(%rbx)
	je	LBB0_12
LBB0_14:
	movq	%rbx, %rdi
	callq	_nvme_ns_has_pi
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	callq	_blk_get_integrity
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_17
LBB0_12:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_NVME_F_METADATA_SUPPORTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movl	8(%rbx), %edx
	movq	%r13, %rdi
	callq	_nvme_init_integrity
	cmpl	$0, 4(%rbx)
	jne	LBB0_14
LBB0_16:
	movl	(%rbx), %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_18
LBB0_17:
	xorl	%r14d, %r14d
LBB0_18:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_set_capacity
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_nvme_config_discard
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_nvme_config_write_zeroes
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %esi
	andl	$1, %esi
	movq	%r13, %rdi
	callq	_set_disk_ro
	movl	(%r13), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blk_mq_unfreeze_queue          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_NVME_F_METADATA_SUPPORTED,4,2  ## @NVME_F_METADATA_SUPPORTED
	.no_dead_strip	_nvme_update_disk_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_update_disk_info
_nvme_update_disk_info:                 ; @nvme_update_disk_info
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x2, #40]
	bl	_le64_to_cpu
	mov	x22, x0
	ldr	w27, [x21]
	mov	w8, #1
Lloh0:
	adrp	x28, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _PAGE_SHIFT@GOTPAGEOFF]
	lsl	w8, w8, w27
	ldr	w9, [x28]
	mov	w10, #512
	cmp	w27, w9
	csel	w26, w10, w8, gt
	ldr	w0, [x19]
	bl	_blk_mq_freeze_queue
	mov	x0, x19
	bl	_blk_integrity_unregister
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	and	w23, w26, #0xffff
	mov	x24, x23
	ldrb	w8, [x20, #8]
	tbnz	w8, #4, LBB0_5
	b	LBB0_7
LBB0_2:
	ldrb	w8, [x20, #8]
	tbz	w8, #1, LBB0_6
; %bb.3:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_le16_to_cpu
	and	w23, w26, #0xffff
	madd	w24, w23, w0, w23
	ldrb	w8, [x20, #8]
	tbz	w8, #4, LBB0_7
LBB0_5:
	ldr	x0, [x20, #24]
	bl	_le16_to_cpu
	mov	x28, x22
	madd	w22, w23, w0, w23
	ldr	x0, [x20, #16]
	bl	_le16_to_cpu
	madd	w25, w23, w0, w23
	mov	x23, x22
	mov	x22, x28
Lloh2:
	adrp	x28, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _PAGE_SHIFT@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	and	w23, w26, #0xffff
	madd	w24, w23, w8, w23
	ldrb	w8, [x20, #8]
	tbnz	w8, #4, LBB0_5
LBB0_7:
	mov	x25, x23
LBB0_8:
	ldr	w0, [x19]
	and	w1, w26, #0xffff
	bl	_blk_queue_logical_block_size
	ldr	w26, [x19]
	mov	x0, x23
	mov	x1, x24
	bl	_min
	mov	x1, x0
	mov	x0, x26
	bl	_blk_queue_physical_block_size
	ldr	w0, [x19]
	mov	x1, x23
	bl	_blk_queue_io_min
	ldr	w0, [x19]
	mov	x1, x25
	bl	_blk_queue_io_opt
	ldr	w1, [x21, #4]
	cbz	w1, LBB0_14
; %bb.9:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_12
LBB0_10:
	mov	x0, x21
	bl	_nvme_ns_has_pi
	cbnz	w0, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_blk_get_integrity
	cbnz	w0, LBB0_14
	b	LBB0_15
LBB0_12:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _NVME_F_METADATA_SUPPORTED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NVME_F_METADATA_SUPPORTED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.13:
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_nvme_init_integrity
	ldr	w8, [x21, #4]
	cbnz	w8, LBB0_10
LBB0_14:
	ldr	w8, [x21]
	ldr	w9, [x28]
	cmp	w8, w9
	b.le	LBB0_16
LBB0_15:
	mov	w1, #0
	b	LBB0_17
LBB0_16:
	sub	w8, w27, #9
	lsl	w1, w22, w8
LBB0_17:
	mov	x0, x19
	bl	_set_capacity
	mov	x0, x19
	mov	x1, x21
	bl	_nvme_config_discard
	mov	x0, x19
	mov	x1, x21
	bl	_nvme_config_write_zeroes
	ldr	w8, [x20, #12]
	and	w1, w8, #0x1
	mov	x0, x19
	bl	_set_disk_ro
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_blk_mq_unfreeze_queue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_NVME_F_METADATA_SUPPORTED,4,2  ; @NVME_F_METADATA_SUPPORTED
	.no_dead_strip	_nvme_update_disk_info
.subsections_via_symbols
