	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AliasHandleResourceA
_AliasHandleResourceA:                  ## @AliasHandleResourceA
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	4(%rdi), %rcx
	cmpq	%rsi, %rcx
	ja	LBB0_12
## %bb.2:
	movq	%rdx, %r15
	movl	(%r12), %edi
	addq	$16, %r12
	callq	_ntohs
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %rbx
	movq	_SizeOfResourceA@GOTPCREL(%rip), %rcx
	movq	%r12, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movq	%rax, (%r13)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %r13
	subq	(%rcx), %rbx
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%r13), %r12
	cmpq	%r14, %r12
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%r15), %eax
	cmpl	(%r13), %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r13), %edi
	addl	(%r13), %edi
	movl	8(%r15), %eax
	addl	16(%r15), %eax
	subl	%eax, %edi
	movq	%rcx, %r14
	callq	_ADJUST_CHECKSUM
	movq	%r14, %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_11:
	leaq	8(%r12), %rcx
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	cmovbeq	%r12, %rax
	jmp	LBB0_12
LBB0_5:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SizeOfResourceA,8,3            ## @SizeOfResourceA
	.comm	_INET_ADDRSTRLEN,4,2            ## @INET_ADDRSTRLEN
	.no_dead_strip	_AliasHandleResourceA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AliasHandleResourceA
_AliasHandleResourceA:                  ; @AliasHandleResourceA
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	mov	x0, #0
	cbz	x20, LBB0_12
; %bb.1:
	mov	x19, x1
	add	x8, x20, #4
	cmp	x8, x1
	b.hi	LBB0_12
; %bb.2:
	mov	x21, x2
	ldr	w0, [x20], #16
	bl	_ntohs
	cbz	x0, LBB0_10
; %bb.3:
	mov	x22, x0
Lloh0:
	adrp	x23, _SizeOfResourceA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SizeOfResourceA@GOTPAGEOFF]
	mov	x24, x20
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	str	x8, [x24]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	mov	x24, x20
	subs	x22, x22, x8
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x24, #8
	cmp	x20, x19
	b.hi	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #16]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x1, [x8]
	cbz	x1, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x24, #8]
	ldr	w10, [x21, #8]
	ldr	w11, [x21, #16]
	add	w8, w9, w8
	add	w9, w10, w11
	sub	w0, w8, w9
	bl	_ADJUST_CHECKSUM
	b	LBB0_4
LBB0_10:
	add	x8, x20, #8
	cmp	x8, x19
	csel	x0, xzr, x20, hi
	b	LBB0_12
LBB0_11:
	mov	x0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SizeOfResourceA,8,3            ; @SizeOfResourceA
	.comm	_INET_ADDRSTRLEN,4,2            ; @INET_ADDRSTRLEN
	.no_dead_strip	_AliasHandleResourceA
.subsections_via_symbols
