	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_actcapi_chkhdr                 ## -- Begin function actcapi_chkhdr
	.p2align	4, 0x90
_actcapi_chkhdr:                        ## @actcapi_chkhdr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpl	$1, (%rsi)
	jne	LBB0_9
## %bb.1:
	cmpl	$9, 4(%rsi)
	jl	LBB0_9
## %bb.2:
	movq	_num_valid_imsg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.3:
	movq	8(%rsi), %rax
	movq	_valid_msg@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	addq	$8, %rdi
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	addq	$16, %rdi
	cmpq	%rdx, %r8
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-8(%rdi), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rsi), %rcx
	cmpq	(%rdi), %rcx
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	cmpl	$1, %edx
	adcl	$1, %eax
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_valid_imsg,4,2             ## @num_valid_imsg
	.comm	_valid_msg,8,3                  ## @valid_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_actcapi_chkhdr                 ; -- Begin function actcapi_chkhdr
	.p2align	2
_actcapi_chkhdr:                        ; @actcapi_chkhdr
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [x1, #4]
	cmp	w8, #9
	b.lt	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _num_valid_imsg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_valid_imsg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x9, #0
	ldr	x10, [x1, #8]
Lloh3:
	adrp	x11, _valid_msg@GOTPAGE
Lloh4:
	ldr	x11, [x11, _valid_msg@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	add	x11, x11, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x11, x11, #16
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x11, #-8]
	cmp	x10, x12
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x1, #16]
	ldr	x13, [x11]
	cmp	x12, x13
	b.ne	LBB0_4
; %bb.7:
	cmp	w9, #0
	mov	w8, #1
	cinc	w0, w8, eq
	ret
LBB0_8:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_num_valid_imsg,4,2             ; @num_valid_imsg
	.comm	_valid_msg,8,3                  ; @valid_msg
.subsections_via_symbols
