	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_old_getrlimit32            ## -- Begin function sys_old_getrlimit32
	.p2align	4, 0x90
_sys_old_getrlimit32:                   ## @sys_old_getrlimit32
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	leaq	-24(%rbp), %rsi
	callq	_do_getrlimit32
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	-24(%rbp), %rsi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rsi
	jle	LBB0_3
## %bb.2:
	movq	%rax, -24(%rbp)
	movq	%rax, %rsi
LBB0_3:
	movq	-16(%rbp), %rdx
	cmpq	%rax, %rdx
	jle	LBB0_5
## %bb.4:
	movq	%rax, -16(%rbp)
	movq	%rax, %rdx
LBB0_5:
	movl	%ebx, %edi
	callq	_user_put
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.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_old_getrlimit32            ; -- Begin function sys_old_getrlimit32
	.p2align	2
_sys_old_getrlimit32:                   ; @sys_old_getrlimit32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x1, sp
	bl	_do_getrlimit32
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x1, [sp]
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.le	LBB0_3
; %bb.2:
	str	x8, [sp]
	mov	x1, x8
LBB0_3:
	ldr	x2, [sp, #8]
	cmp	x2, x8
	b.le	LBB0_5
; %bb.4:
	str	x8, [sp, #8]
	mov	x2, x8
LBB0_5:
	mov	x0, x19
	bl	_user_put
Lloh3:
	adrp	x8, __EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	__EFAULT,4,2                    ; @_EFAULT
.subsections_via_symbols
