	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	xorl	%edi, %edi
	testl	%esi, %esi
	sete	%dil
	callq	___predict_true
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movl	4(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_PSL_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$129, %r14d
	je	LBB0_5
## %bb.3:
	cmpl	$128, %r14d
	jne	LBB0_4
## %bb.6:
	movl	8(%r15), %eax
	movl	16(%r15), %ecx
	subl	%ecx, 20(%r15)
	movl	%eax, 12(%r15)
	movl	4(%rbx), %edi
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_pcb_flags                  ## TAILCALL
LBB0_4:
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_SV_ABI_ERRNO
	movl	%eax, 4(%r15)
	movq	_PSL_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PSL_C,4,2                      ## @PSL_C
	.comm	_PCB_FULL_IRET,4,2              ## @PCB_FULL_IRET
.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	cmp	w1, #0
	cset	w0, eq
	bl	___predict_true
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	str	w9, [x21, #4]
	ldr	w8, [x8, #4]
	str	w8, [x21, #24]
Lloh0:
	adrp	x8, _PSL_C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSL_C@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21]
	bic	w8, w9, w8
LBB0_2:
	str	w8, [x21]
LBB0_3:
	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
LBB0_4:
	cmp	w20, #129
	b.eq	LBB0_3
; %bb.5:
	cmp	w20, #128
	b.ne	LBB0_7
; %bb.6:
	ldp	w8, w9, [x21, #16]
	sub	w8, w9, w8
	str	w8, [x21, #20]
	ldr	w8, [x21, #8]
	str	w8, [x21, #12]
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	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
	b	_set_pcb_flags
LBB0_7:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_SV_ABI_ERRNO
Lloh6:
	adrp	x8, _PSL_C@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSL_C@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w0, [x21, #4]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PSL_C,4,2                      ; @PSL_C
	.comm	_PCB_FULL_IRET,4,2              ; @PCB_FULL_IRET
.subsections_via_symbols
