	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_get_nic_desc
_be_get_nic_desc:                       ## @be_get_nic_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_5
## %bb.1:
	movq	%rdi, %rax
	movq	_NIC_RESOURCE_DESC_TYPE_V0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_NIC_RESOURCE_DESC_TYPE_V1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_RESOURCE_DESC_SIZE_V0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	cmpq	%r8, %rcx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	cmovel	%edi, %ecx
	movl	%ecx, 8(%rax)
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	decl	%esi
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_RESOURCE_DESC_TYPE_V0,8,3  ## @NIC_RESOURCE_DESC_TYPE_V0
	.comm	_NIC_RESOURCE_DESC_TYPE_V1,8,3  ## @NIC_RESOURCE_DESC_TYPE_V1
	.comm	_RESOURCE_DESC_SIZE_V0,4,2      ## @RESOURCE_DESC_SIZE_V0
	.no_dead_strip	_be_get_nic_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_nic_desc
_be_get_nic_desc:                       ; @be_get_nic_desc
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _NIC_RESOURCE_DESC_TYPE_V0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_RESOURCE_DESC_TYPE_V0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NIC_RESOURCE_DESC_TYPE_V1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NIC_RESOURCE_DESC_TYPE_V1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _RESOURCE_DESC_SIZE_V0@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RESOURCE_DESC_SIZE_V0@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x0]
	cmp	x11, x8
	ccmp	x11, x9, #4, ne
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x0, #8]
	cmp	w11, #0
	csel	w11, w10, w11, eq
	str	w11, [x0, #8]
	add	x0, x0, w11, sxtw
	subs	w1, w1, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, #0
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_RESOURCE_DESC_TYPE_V0,8,3  ; @NIC_RESOURCE_DESC_TYPE_V0
	.comm	_NIC_RESOURCE_DESC_TYPE_V1,8,3  ; @NIC_RESOURCE_DESC_TYPE_V1
	.comm	_RESOURCE_DESC_SIZE_V0,4,2      ; @RESOURCE_DESC_SIZE_V0
	.no_dead_strip	_be_get_nic_desc
.subsections_via_symbols
