	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_get_port_desc
_be_get_port_desc:                      ## @be_get_port_desc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_4
## %bb.1:
	movq	%rdi, %rax
	movq	_PORT_RESOURCE_DESC_TYPE_V1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_RESOURCE_DESC_SIZE_V0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rax)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %edi
	testl	%edi, %edi
	cmovel	%edx, %edi
	movl	%edi, 8(%rax)
	movslq	%edi, %rdi
	addq	%rdi, %rax
	decl	%esi
	jne	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_RESOURCE_DESC_TYPE_V1,8,3 ## @PORT_RESOURCE_DESC_TYPE_V1
	.comm	_RESOURCE_DESC_SIZE_V0,4,2      ## @RESOURCE_DESC_SIZE_V0
	.no_dead_strip	_be_get_port_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_get_port_desc
_be_get_port_desc:                      ; @be_get_port_desc
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _PORT_RESOURCE_DESC_TYPE_V1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_RESOURCE_DESC_TYPE_V1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RESOURCE_DESC_SIZE_V0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RESOURCE_DESC_SIZE_V0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0]
	cmp	x10, x8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x0, #8]
	cmp	w10, #0
	csel	w10, w9, w10, eq
	str	w10, [x0, #8]
	add	x0, x0, w10, sxtw
	subs	w1, w1, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, #0
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_RESOURCE_DESC_TYPE_V1,8,3 ; @PORT_RESOURCE_DESC_TYPE_V1
	.comm	_RESOURCE_DESC_SIZE_V0,4,2      ; @RESOURCE_DESC_SIZE_V0
	.no_dead_strip	_be_get_port_desc
.subsections_via_symbols
