	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwrite                         ## -- Begin function pwrite
	.p2align	4, 0x90
_pwrite:                                ## @pwrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	%rdx, %rax
	movq	%rsi, %rdx
	movl	%edi, %esi
	movl	%ecx, -4(%rbp)
	movq	_SYS_pwrite@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	-4(%rbp), %r8
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rax, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_syscall4
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	negl	%eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_pwrite,4,2                 ## @SYS_pwrite
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwrite                         ; -- Begin function pwrite
	.p2align	2
_pwrite:                                ; @pwrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x2
	mov	x2, x1
	mov	x1, x0
	stur	w3, [x29, #-4]
Lloh0:
	adrp	x9, _SYS_pwrite@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SYS_pwrite@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	sub	x4, x29, #4
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x8
	bl	_syscall4
	tbz	w0, #31, LBB0_2
; %bb.1:
	neg	w8, w0
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_pwrite,4,2                 ; @SYS_pwrite
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
