	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_get_brd_name_by_type
_netxen_nic_get_brd_name_by_type:       ## @netxen_nic_get_brd_name_by_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movq	_NUM_SUPPORTED_BOARDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	_netxen_boards@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rdx,%rsi)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_2
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rdx,%rsi), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_SUPPORTED_BOARDS,4,2       ## @NUM_SUPPORTED_BOARDS
	.comm	_netxen_boards,8,3              ## @netxen_boards
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_netxen_nic_get_brd_name_by_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_nic_get_brd_name_by_type
_netxen_nic_get_brd_name_by_type:       ; @netxen_nic_get_brd_name_by_type
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
Lloh0:
	adrp	x9, _NUM_SUPPORTED_BOARDS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NUM_SUPPORTED_BOARDS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
Lloh3:
	adrp	x10, _netxen_boards@GOTPAGE
Lloh4:
	ldr	x10, [x10, _netxen_boards@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x10, x10, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_strcpy
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x1, [x10]
	mov	x0, x8
	bl	_strcpy
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_SUPPORTED_BOARDS,4,2       ; @NUM_SUPPORTED_BOARDS
	.comm	_netxen_boards,8,3              ; @netxen_boards
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_netxen_nic_get_brd_name_by_type
.subsections_via_symbols
