	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_get_flt_entry
_qlcnic_get_flt_entry:                  ## @qlcnic_get_flt_entry
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_QLCNIC_FLT_LOCATION@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$4, %ecx
	callq	_qlcnic_rom_fast_read_words
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r14d
	addl	$-4, %r14d
	movl	%r14d, %edi
	callq	_vzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	(%r15), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	movq	%rbx, %r15
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_qlcnic_rom_fast_read_words
	testl	%eax, %eax
	je	LBB0_6
## %bb.15:
	movl	%eax, %ebx
	movq	(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_13
LBB0_4:
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_6:
	xorl	%ecx, %ecx
	cmpl	$8, %r14d
	jb	LBB0_11
## %bb.7:
	movslq	%r14d, %rax
	shrq	$3, %rax
	cmpq	$2, %rax
	movl	$1, %esi
	cmovaeq	%rax, %rsi
	xorl	%eax, %eax
	movq	%r15, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rax,8)
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_8
## %bb.10:
	movq	%rsi, %rcx
LBB0_11:
	movq	(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %eax
	leaq	(%rcx,%rax,8), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
LBB0_13:
	movq	%r15, %rdi
	callq	_vfree
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_FLT_LOCATION,8,3        ## @QLCNIC_FLT_LOCATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading flash layout header\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"error allocating memory\n"

L_.str.2:                               ## @.str.2
	.asciz	"error reading flash layout entries\n"

L_.str.3:                               ## @.str.3
	.asciz	"region=%x not found in %d regions\n"

	.no_dead_strip	_qlcnic_get_flt_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_get_flt_entry
_qlcnic_get_flt_entry:                  ; @qlcnic_get_flt_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x23, _QLCNIC_FLT_LOCATION@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QLCNIC_FLT_LOCATION@GOTPAGEOFF]
	ldr	x1, [x23]
	add	x2, sp, #24
	mov	x0, x21
	mov	w3, #4
	bl	_qlcnic_rom_fast_read_words
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_warn
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_3:
	ldr	w8, [sp, #24]
	sub	w24, w8, #4
	mov	x0, x24
	bl	_vzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x19, x0
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	ldr	x8, [x23]
	add	x1, x8, #4
	mov	x0, x21
	mov	x2, x19
	mov	x3, x24
	bl	_qlcnic_rom_fast_read_words
	cbz	w0, LBB0_7
; %bb.5:
	mov	x23, x0
	ldr	x0, [x21]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	b	LBB0_15
LBB0_6:
	ldr	x0, [x21]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
	cmp	w24, #8
	b.hs	LBB0_9
; %bb.8:
	mov	w9, #0
	b	LBB0_13
LBB0_9:
	mov	x8, #0
	sxtw	x9, w24
	lsr	x9, x9, #3
	cmp	x9, #1
	csinc	x9, x9, xzr, hi
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, x8, lsl #3]
	cmp	x10, x20
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.12:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_13:
	ldr	x0, [x21]
	stp	x20, x9, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_14:
	add	x1, x19, w8, uxtw #3
	mov	x0, x22
	mov	w2, #8
	bl	_memcpy
	mov	w23, #0
LBB0_15:
	mov	x0, x19
	bl	_vfree
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_FLT_LOCATION,8,3        ; @QLCNIC_FLT_LOCATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading flash layout header\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"error allocating memory\n"

l_.str.2:                               ; @.str.2
	.asciz	"error reading flash layout entries\n"

l_.str.3:                               ; @.str.3
	.asciz	"region=%x not found in %d regions\n"

	.no_dead_strip	_qlcnic_get_flt_entry
.subsections_via_symbols
