	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getrusage                      ## -- Begin function getrusage
	.p2align	4, 0x90
_getrusage:                             ## @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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_CLK_TCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	-40(%rbp), %rdi
	callq	_times
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	js	LBB0_9
## %bb.3:
	cmpl	$129, %ebx
	je	LBB0_7
## %bb.4:
	cmpl	$128, %ebx
	jne	LBB0_6
## %bb.5:
	movl	-32(%rbp), %ecx
	movl	-28(%rbp), %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_7:
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %eax
LBB0_8:
	cltd
	idivl	%r15d
	cltq
	movq	%rax, 16(%r14)
	imull	$1000000, %edx, %eax            ## imm = 0xF4240
	cltd
	idivl	%r15d
	movslq	%eax, %rsi
	movq	%rsi, 24(%r14)
	movl	%ecx, %eax
	cltd
	idivl	%r15d
	cltq
	movq	%rax, (%r14)
	movq	%rsi, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLK_TCK,4,2                    ## @CLK_TCK
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getrusage                      ; -- Begin function getrusage
	.p2align	2
_getrusage:                             ; @getrusage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CLK_TCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLK_TCK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, sp
	bl	_times
	tbnz	x0, #63, LBB0_10
; %bb.2:
	cmp	w20, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w20, #128
	b.ne	LBB0_8
; %bb.4:
	ldp	w8, w9, [sp, #8]
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldp	w8, w9, [sp]
LBB0_7:
	mov	w0, #0
	sdiv	w10, w9, w21
	sxtw	x11, w10
	msub	w9, w10, w21, w9
	mov	w10, #16960
	movk	w10, #15, lsl #16
	mul	w9, w9, w10
	sdiv	w9, w9, w21
	sxtw	x9, w9
	stp	x11, x9, [x19, #16]
	sdiv	w8, w8, w21
	sxtw	x8, w8
	stp	x8, x9, [x19]
	b	LBB0_11
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _errno@GOTPAGE
Lloh8:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CLK_TCK,4,2                    ; @CLK_TCK
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
