	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_set_syscall_retval         ## -- Begin function cpu_set_syscall_retval
	.p2align	4, 0x90
_cpu_set_syscall_retval:                ## @cpu_set_syscall_retval
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EJUSTRETURN@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_12
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	16(%rdi), %r15
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_SYS___syscall@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_SV_ILP32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_SV_PROC_FLAG
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	movq	_FIRSTARG@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	_SYS_lseek@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%r13d, %r13d
	cmpl	8(%rax,%rcx,8), %edx
	setne	%r13b
LBB0_4:
	cmpl	$128, %ebx
	je	LBB0_10
## %bb.5:
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.6:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	movq	(%r12), %rax
	movq	_FIRSTARG@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	(%r14), %rdx
	jmp	LBB0_9
LBB0_10:
	addl	$-4, 12(%r12)
	jmp	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_SV_ABI_ERRNO
	cltq
	movq	(%r12), %rcx
	movq	_FIRSTARG@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	orb	$16, 11(%r12)
	jmp	LBB0_12
LBB0_8:
	movq	(%r14), %rdx
	movslq	(%rdx), %rsi
	movq	(%r12), %rax
	movq	_FIRSTARG@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rsi, (%rax,%rcx,8)
	addq	$4, %rdx
LBB0_9:
	movslq	(%rdx), %rdx
	movslq	%ecx, %rcx
	movq	%rdx, 8(%rax,%rcx,8)
	andb	$-17, 11(%r12)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EJUSTRETURN,4,2                ## @EJUSTRETURN
	.comm	_SYS___syscall,8,3              ## @SYS___syscall
	.comm	_SV_ILP32,4,2                   ## @SV_ILP32
	.comm	_FIRSTARG,4,2                   ## @FIRSTARG
	.comm	_SYS_lseek,4,2                  ## @SYS_lseek
	.comm	_SYS_freebsd6_lseek,4,2         ## @SYS_freebsd6_lseek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_set_syscall_retval         ; -- Begin function cpu_set_syscall_retval
	.p2align	2
_cpu_set_syscall_retval:                ; @cpu_set_syscall_retval
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _EJUSTRETURN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EJUSTRETURN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldp	x22, x21, [x0, #8]
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SYS___syscall@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SYS___syscall@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _SV_ILP32@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SV_ILP32@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SV_PROC_FLAG
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _FIRSTARG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FIRSTARG@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #8]
Lloh12:
	adrp	x9, _SYS_lseek@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SYS_lseek@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w8
	cset	w8, ne
	cmp	w20, #128
	b.ne	LBB0_6
LBB0_4:
	ldr	w8, [x22, #12]
	sub	w8, w8, #4
	str	w8, [x22, #12]
	b	LBB0_13
LBB0_5:
	mov	w8, #0
	cmp	w20, #128
	b.eq	LBB0_4
LBB0_6:
	cbnz	w20, LBB0_9
; %bb.7:
	cbz	w8, LBB0_10
; %bb.8:
	ldr	x8, [x22]
Lloh15:
	adrp	x9, _FIRSTARG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FIRSTARG@GOTPAGEOFF]
Lloh17:
	ldrsw	x10, [x9]
	str	xzr, [x8, x10, lsl #3]
	ldr	x9, [x19]
	b	LBB0_11
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	bl	_SV_ABI_ERRNO
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x22]
Lloh18:
	adrp	x10, _FIRSTARG@GOTPAGE
Lloh19:
	ldr	x10, [x10, _FIRSTARG@GOTPAGEOFF]
Lloh20:
	ldrsw	x10, [x10]
	str	x8, [x9, x10, lsl #3]
	ldr	w8, [x22, #8]
	orr	w8, w8, #0x10000000
	b	LBB0_12
LBB0_10:
	ldr	x9, [x19]
	ldrsw	x10, [x9], #4
	ldr	x8, [x22]
Lloh21:
	adrp	x11, _FIRSTARG@GOTPAGE
Lloh22:
	ldr	x11, [x11, _FIRSTARG@GOTPAGEOFF]
Lloh23:
	ldrsw	x11, [x11]
	str	x10, [x8, x11, lsl #3]
	mov	x10, x11
LBB0_11:
	ldrsw	x9, [x9]
	add	w10, w10, #1
	str	x9, [x8, w10, sxtw #3]
	ldr	w8, [x22, #8]
	and	w8, w8, #0xefffffff
LBB0_12:
	str	w8, [x22, #8]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EJUSTRETURN,4,2                ; @EJUSTRETURN
	.comm	_SYS___syscall,8,3              ; @SYS___syscall
	.comm	_SV_ILP32,4,2                   ; @SV_ILP32
	.comm	_FIRSTARG,4,2                   ; @FIRSTARG
	.comm	_SYS_lseek,4,2                  ; @SYS_lseek
	.comm	_SYS_freebsd6_lseek,4,2         ; @SYS_freebsd6_lseek
.subsections_via_symbols
