	.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, %r15
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_QLCNIC_FLT_LOCATION@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$4, %ecx
	callq	_qlcnic_rom_fast_read_words
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r15d
	addl	$-4, %r15d
	movl	%r15d, %edi
	callq	_vzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r14), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	movq	%rax, %r14
	movq	%rax, %rdx
	movl	%r15d, %ecx
	callq	_qlcnic_rom_fast_read_words
	testl	%eax, %eax
	je	LBB0_5
## %bb.13:
	movl	%eax, %ebx
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_11
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	xorl	%ebx, %ebx
	movl	$0, %ecx
	cmpl	$8, %r15d
	jb	LBB0_9
## %bb.6:
	movslq	%r15d, %rax
	shrq	$3, %rax
	cmpq	$2, %rax
	movl	$1, %ecx
	cmovaeq	%rax, %rcx
	xorl	%eax, %eax
	movq	%r14, %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rdx,%rax,8)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_7
LBB0_9:
	movq	(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	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_11
LBB0_10:
	movl	%eax, %eax
	leaq	(%rdx,%rax,8), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r14, %rdi
	callq	_vfree
LBB0_12:
	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 reading flash layout entries\n"

L_.str.2:                               ## @.str.2
	.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
	bl	_dev_warn
LBB0_2:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_3:
	ldr	w8, [sp, #24]
	sub	w24, w8, #4
	mov	x0, x24
	bl	_vzalloc
	cbz	x0, LBB0_2
; %bb.4:
	mov	x19, x0
	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_6
; %bb.5:
	mov	x23, x0
	ldr	x0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	b	LBB0_14
LBB0_6:
	cmp	w24, #8
	b.hs	LBB0_8
; %bb.7:
	mov	w9, #0
	b	LBB0_12
LBB0_8:
	mov	x8, #0
	sxtw	x9, w24
	lsr	x9, x9, #3
	cmp	x9, #1
	csinc	x9, x9, xzr, hi
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, x8, lsl #3]
	cmp	x10, x20
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.11:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_12:
	ldr	x0, [x21]
	stp	x20, x9, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_13:
	add	x1, x19, w8, uxtw #3
	mov	x0, x22
	mov	w2, #8
	bl	_memcpy
	mov	w23, #0
LBB0_14:
	mov	x0, x19
	bl	_vfree
LBB0_15:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.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 reading flash layout entries\n"

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

	.no_dead_strip	_qlcnic_get_flt_entry
.subsections_via_symbols
