	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_getrusage                  ## -- Begin function sys_getrusage
	.p2align	4, 0x90
_sys_getrusage:                         ## @sys_getrusage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	cmpl	$129, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$128, %edi
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_rusage_get_current
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_lock
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	4(%rdi), %ebx
	callq	_unlock
LBB0_5:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_user_put
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	__EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	__EFAULT,4,2                    ## @_EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_getrusage                  ; -- Begin function sys_getrusage
	.p2align	2
_sys_getrusage:                         ; @sys_getrusage
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_5
; %bb.2:
	bl	_rusage_get_current
	mov	x20, x0
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x20, _current@GOTPAGE
Lloh1:
	ldr	x20, [x20, _current@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_lock
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldr	w20, [x0, #4]
	bl	_unlock
LBB0_4:
	mov	w1, w20
	mov	x0, x19
	bl	_user_put
Lloh2:
	adrp	x8, __EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, __EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	__EFAULT,4,2                    ; @_EFAULT
.subsections_via_symbols
