	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_get_all_limits
_smiapp_get_all_limits:                 ## @smiapp_get_all_limits
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	movq	_SMIAPP_LIMIT_LAST@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.1:
	leaq	-36(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_smiapp_get_limits
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-36(%rbp), %eax
	incl	%eax
	movl	%eax, -36(%rbp)
	cmpl	(%r12), %eax
	jb	LBB0_2
LBB0_5:
	movq	(%r14), %rax
	movq	_SMIAPP_LIMIT_SCALER_N_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	xorl	%ebx, %ebx
	cmpq	$0, (%rax,%rsi,8)
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_smiapp_replace_limit
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIAPP_LIMIT_LAST,4,2          ## @SMIAPP_LIMIT_LAST
	.comm	_SMIAPP_LIMIT_SCALER_N_MIN,8,3  ## @SMIAPP_LIMIT_SCALER_N_MIN
	.no_dead_strip	_smiapp_get_all_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_get_all_limits
_smiapp_get_all_limits:                 ; @smiapp_get_all_limits
	.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, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _SMIAPP_LIMIT_LAST@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SMIAPP_LIMIT_LAST@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_smiapp_get_limits
	tbnz	w0, #31, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	add	w8, w8, #1
	str	w8, [sp, #12]
	ldr	w9, [x20]
	cmp	w8, w9
	b.lo	LBB0_1
LBB0_3:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _SMIAPP_LIMIT_SCALER_N_MIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SMIAPP_LIMIT_SCALER_N_MIN@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x9]
	ldr	x8, [x8, x1, lsl #3]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w2, #16
	bl	_smiapp_replace_limit
LBB0_5:
	mov	w0, #0
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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIAPP_LIMIT_LAST,4,2          ; @SMIAPP_LIMIT_LAST
	.comm	_SMIAPP_LIMIT_SCALER_N_MIN,8,3  ; @SMIAPP_LIMIT_SCALER_N_MIN
	.no_dead_strip	_smiapp_get_all_limits
.subsections_via_symbols
