	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvm_set_flags
_nvm_set_flags:                         ## @nvm_set_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_NVM_OCSSD_SPEC_20@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.1:
	cmpq	$0, 8(%rsi)
	je	LBB0_2
## %bb.3:
	movl	8(%rdi), %eax
	sarl	%eax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	(%rsi), %rcx
	movq	_NVM_OP_PREAD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	_NVM_IO_SCRAMBLE_ENABLE@GOTPCREL(%rip), %rcx
	movq	_NVM_IO_SUSPEND@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_NVM_OP_PWRITE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	movq	_NVM_IO_SCRAMBLE_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_OCSSD_SPEC_20,8,3          ## @NVM_OCSSD_SPEC_20
	.comm	_NVM_OP_PREAD,8,3               ## @NVM_OP_PREAD
	.comm	_NVM_IO_SCRAMBLE_ENABLE,4,2     ## @NVM_IO_SCRAMBLE_ENABLE
	.comm	_NVM_IO_SUSPEND,4,2             ## @NVM_IO_SUSPEND
	.comm	_NVM_OP_PWRITE,8,3              ## @NVM_OP_PWRITE
	.no_dead_strip	_nvm_set_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvm_set_flags
_nvm_set_flags:                         ; @nvm_set_flags
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NVM_OCSSD_SPEC_20@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVM_OCSSD_SPEC_20@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x0, #8]
	asr	w0, w8, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _NVM_OP_PREAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVM_OP_PREAD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _NVM_IO_SCRAMBLE_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVM_IO_SCRAMBLE_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _NVM_IO_SUSPEND@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NVM_IO_SUSPEND@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ret
LBB0_7:
Lloh12:
	adrp	x9, _NVM_OP_PWRITE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NVM_OP_PWRITE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _NVM_IO_SCRAMBLE_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NVM_IO_SCRAMBLE_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_OCSSD_SPEC_20,8,3          ; @NVM_OCSSD_SPEC_20
	.comm	_NVM_OP_PREAD,8,3               ; @NVM_OP_PREAD
	.comm	_NVM_IO_SCRAMBLE_ENABLE,4,2     ; @NVM_IO_SCRAMBLE_ENABLE
	.comm	_NVM_IO_SUSPEND,4,2             ; @NVM_IO_SUSPEND
	.comm	_NVM_OP_PWRITE,8,3              ; @NVM_OP_PWRITE
	.no_dead_strip	_nvm_set_flags
.subsections_via_symbols
