	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_delegation_secure
_check_delegation_secure:               ## @check_delegation_secure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_sec_status_secure@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movq	%rdx, %r11
	addq	%rcx, %r11
	je	LBB0_6
## %bb.1:
	movq	24(%rdi), %r10
	addq	%rdx, %rcx
	decq	%rcx
	movl	%r11d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rcx
	jae	LBB0_8
## %bb.2:
	xorl	%edx, %edx
LBB0_3:
	testq	%r8, %r8
	je	LBB0_6
## %bb.4:
	leaq	(%r10,%rdx,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ecx
	cmovbl	%ecx, %eax
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_5
LBB0_6:
	movq	16(%rdi), %rdx
	cmpq	%rdx, %r11
	jae	LBB0_19
## %bb.7:
	movq	24(%rdi), %rsi
	movq	_sec_status_unchecked@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%r11,8), %rcx
	movq	(%rcx), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%r11
	cmpq	%rdx, %r11
	jb	LBB0_17
LBB0_19:
	popq	%rbp
	retq
LBB0_8:
	movq	%r11, %r9
	andq	$-4, %r9
	xorl	%edx, %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %rdx
	cmpq	%rdx, %r9
	je	LBB0_3
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ecx
	cmovbl	%ecx, %eax
	movq	8(%r10,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %esi
	cmpl	%eax, %esi
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %esi
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r10,%rdx,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%esi, %ecx
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r10,%rdx,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%ecx, %eax
	jb	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ecx, %eax
	jmp	LBB0_15
LBB0_18:
	movl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sec_status_secure,4,2          ## @sec_status_secure
	.comm	_sec_status_unchecked,4,2       ## @sec_status_unchecked
	.no_dead_strip	_check_delegation_secure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_delegation_secure
_check_delegation_secure:               ; @check_delegation_secure
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _sec_status_secure@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sec_status_secure@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	ldp	x10, x11, [x8]
	adds	x9, x11, x10
	b.eq	LBB0_8
; %bb.1:
	ldr	x12, [x8, #24]
	cmp	x9, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x13, #0
	b	LBB0_6
LBB0_3:
	and	x13, x9, #0xfffffffffffffffc
	add	x14, x12, #16
	mov	x17, x13
	mov	x1, x0
	mov	x16, x0
	mov	x15, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x2, x3, [x14, #-16]
	ldp	x4, x5, [x14], #32
	ldr	x2, [x2]
	ldr	x3, [x3]
	ldr	x4, [x4]
	ldr	x5, [x5]
	ldr	w2, [x2]
	ldr	w3, [x3]
	ldr	w4, [x4]
	cmp	w2, w0
	csel	w0, w2, w0, lo
	cmp	w3, w1
	csel	w1, w3, w1, lo
	cmp	w4, w16
	csel	w16, w4, w16, lo
	ldr	w2, [x5]
	cmp	w2, w15
	csel	w15, w2, w15, lo
	subs	x17, x17, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	w0, w1
	csel	w14, w0, w1, lo
	cmp	w14, w16
	csel	w14, w14, w16, lo
	cmp	w14, w15
	csel	w0, w14, w15, lo
	cmp	x9, x13
	b.eq	LBB0_8
LBB0_6:
	add	x10, x11, x10
	sub	x10, x10, x13
	add	x11, x12, x13, lsl #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11], #8
	ldr	x12, [x12]
	ldr	w12, [x12]
	cmp	w12, w0
	csel	w0, w12, w0, lo
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	x10, [x8, #16]
	cmp	x9, x10
	b.hs	LBB0_12
; %bb.9:
	ldr	x8, [x8, #24]
Lloh3:
	adrp	x11, _sec_status_unchecked@GOTPAGE
Lloh4:
	ldr	x11, [x11, _sec_status_unchecked@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8, x9, lsl #3]
	ldr	x12, [x12]
	ldr	w12, [x12]
	cmp	w12, w11
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #1
	cmp	x9, x10
	b.lo	LBB0_10
LBB0_12:
	ret
LBB0_13:
	mov	x0, x11
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_sec_status_secure,4,2          ; @sec_status_secure
	.comm	_sec_status_unchecked,4,2       ; @sec_status_unchecked
	.no_dead_strip	_check_delegation_secure
.subsections_via_symbols
