	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_execenv_tok
_fetch_execenv_tok:                     ## @fetch_execenv_tok
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rdx
	movl	(%rdi), %ecx
	xorl	%r14d, %r14d
	movq	%rsi, %rdi
	movl	%r15d, %esi
	xorl	%r8d, %r8d
	callq	_READ_TOKEN_U_INT32
	movq	8(%rbx), %rax
	movq	_AUDIT_MAX_ENV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	(%rbx), %edx
	xorl	%esi, %esi
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movslq	%edx, %rdi
	addq	%r12, %rdi
	cmpq	%r8, %rsi
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rcx
	movq	%rdi, (%rcx,%rsi,8)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r12, %r12
	je	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%edx
	cmpb	$0, (%rdi)
	movl	%edx, (%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movslq	%edx, %rdi
	addq	%r12, %rdi
	cmpl	%r15d, %edx
	jb	LBB0_5
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rax, %rsi
	jne	LBB0_2
LBB0_8:
	cmpq	%r8, %rax
	jbe	LBB0_11
## %bb.9:
	movq	%r8, 8(%rbx)
	jmp	LBB0_11
LBB0_10:
	movl	$-1, %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDIT_MAX_ENV,8,3              ## @AUDIT_MAX_ENV
	.no_dead_strip	_fetch_execenv_tok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_execenv_tok
_fetch_execenv_tok:                     ; @fetch_execenv_tok
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x2, [x0, #8]
	ldr	w3, [x0]
	mov	x0, x1
	mov	x1, x20
	mov	w4, #0
	bl	_READ_TOKEN_U_INT32
	ldr	x9, [x19, #8]
Lloh0:
	adrp	x8, _AUDIT_MAX_ENV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUDIT_MAX_ENV@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x9, LBB0_8
; %bb.1:
	mov	x10, #0
	ldr	w11, [x19]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x12, x21, w11, sxtw
	cmp	x10, x8
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x13, [x19, #16]
	str	x12, [x13, x10, lsl #3]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x21, LBB0_10
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w12, [x12]
	add	w11, w11, #1
	str	w11, [x19]
	cbz	w12, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x12, x21, w11, sxtw
	cmp	w11, w20
	b.lo	LBB0_5
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.ne	LBB0_2
LBB0_8:
	cmp	x9, x8
	b.ls	LBB0_11
; %bb.9:
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_12
LBB0_10:
	mov	w0, #-1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDIT_MAX_ENV,8,3              ; @AUDIT_MAX_ENV
	.no_dead_strip	_fetch_execenv_tok
.subsections_via_symbols
