	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dwrite
_dwrite:                                ## @dwrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %r8
	movq	_F_RD_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movl	%r8d, %eax
LBB0_2:
	popq	%rbp
	retq
LBB0_3:
	movq	%rsi, %rdx
	movl	4(%rdi), %esi
	cmpl	$128, %esi
	je	LBB0_6
## %bb.4:
	movl	$-1, %eax
	cmpl	$129, %esi
	jne	LBB0_2
## %bb.5:
	movl	12(%rdi), %edi
	movq	%rdx, %rsi
	movq	%r8, %rdx
	popq	%rbp
	jmp	_pwrite                         ## TAILCALL
LBB0_6:
	movl	8(%rdi), %edi
	movl	%ecx, %esi
	movq	%r8, %rcx
	popq	%rbp
	jmp	_kvm_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_F_RD_ONLY,4,2                  ## @F_RD_ONLY
	.no_dead_strip	_dwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dwrite
_dwrite:                                ; @dwrite
	.cfi_startproc
; %bb.0:
	mov	x8, x2
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _F_RD_ONLY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _F_RD_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x8
	ret
LBB0_2:
	mov	x2, x1
	ldr	w9, [x0, #4]
	cmp	w9, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w9, #129
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x0, #12]
	mov	x1, x2
	mov	x2, x8
	b	_pwrite
LBB0_5:
	ldr	w0, [x0, #8]
	mov	x1, x3
	mov	x3, x8
	b	_kvm_write
LBB0_6:
	mov	w8, #-1
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_F_RD_ONLY,4,2                  ; @F_RD_ONLY
	.no_dead_strip	_dwrite
.subsections_via_symbols
