	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_request_uncached_firmware
_bnx2_request_uncached_firmware:        ## @bnx2_request_uncached_firmware
	.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	%rdi, %r13
	callq	_BNX2_CHIP
	movq	_BNX2_CHIP_5709@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_FW_MIPS_FILE_09@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r13, %rdi
	callq	_BNX2_CHIP_ID
	movq	_BNX2_CHIP_ID_5709_A0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.8:
	movq	%r13, %rdi
	callq	_BNX2_CHIP_ID
	movq	_BNX2_CHIP_ID_5709_A1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_2:
	movq	_FW_RV2P_FILE_09_Ax@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_FW_MIPS_FILE_06@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_FW_RV2P_FILE_06@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %r12
	movq	16(%r13), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	jmp	LBB0_21
LBB0_6:
	leaq	8(%r13), %r15
	movq	16(%r13), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_pr_err
	jmp	LBB0_20
LBB0_10:
	movq	(%r13), %rdi
	cmpl	$20, (%rdi)
	jb	LBB0_19
## %bb.11:
	movq	8(%r13), %rax
	movq	8(%rdi), %rcx
	movq	8(%rax), %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rcx), %rsi
	callq	_check_mips_fw_entry
	testq	%rax, %rax
	jne	LBB0_19
## %bb.12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	12(%rbx), %rsi
	callq	_check_mips_fw_entry
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:
	movq	(%r13), %rdi
	leaq	8(%rbx), %rsi
	callq	_check_mips_fw_entry
	testq	%rax, %rax
	jne	LBB0_19
## %bb.14:
	movq	(%r13), %rdi
	leaq	4(%rbx), %rsi
	callq	_check_mips_fw_entry
	testq	%rax, %rax
	jne	LBB0_19
## %bb.15:
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	callq	_check_mips_fw_entry
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	movq	(%r15), %rdi
	cmpl	$8, (%rdi)
	jb	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %rsi
	movl	$8, %edx
	movl	$1, %ecx
	callq	_check_fw_section
	testq	%rax, %rax
	je	LBB0_23
LBB0_18:
	movq	%r12, %r14
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r15), %rdi
	callq	_release_firmware
	movq	$0, (%r15)
LBB0_20:
	movq	(%r13), %rdi
	callq	_release_firmware
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_FW_RV2P_FILE_09@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_23:
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	movl	$1, %ecx
	callq	_check_fw_section
	movq	%r12, %r14
	testq	%rax, %rax
	jne	LBB0_19
## %bb.24:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_CHIP_5709,8,3             ## @BNX2_CHIP_5709
	.comm	_FW_MIPS_FILE_09,8,3            ## @FW_MIPS_FILE_09
	.comm	_BNX2_CHIP_ID_5709_A0,8,3       ## @BNX2_CHIP_ID_5709_A0
	.comm	_BNX2_CHIP_ID_5709_A1,8,3       ## @BNX2_CHIP_ID_5709_A1
	.comm	_FW_RV2P_FILE_09_Ax,8,3         ## @FW_RV2P_FILE_09_Ax
	.comm	_FW_RV2P_FILE_09,8,3            ## @FW_RV2P_FILE_09
	.comm	_FW_MIPS_FILE_06,8,3            ## @FW_MIPS_FILE_06
	.comm	_FW_RV2P_FILE_06,8,3            ## @FW_RV2P_FILE_06
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't load firmware file \"%s\"\n"

L_.str.1:                               ## @.str.1
	.asciz	"Firmware file \"%s\" is invalid\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_request_uncached_firmware
_bnx2_request_uncached_firmware:        ; @bnx2_request_uncached_firmware
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_BNX2_CHIP
Lloh0:
	adrp	x8, _BNX2_CHIP_5709@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_CHIP_5709@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _FW_MIPS_FILE_09@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_MIPS_FILE_09@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	mov	x0, x19
	bl	_BNX2_CHIP_ID
Lloh6:
	adrp	x8, _BNX2_CHIP_ID_5709_A0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2_CHIP_ID_5709_A0@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x21, _FW_RV2P_FILE_09_Ax@GOTPAGE
Lloh10:
	ldr	x21, [x21, _FW_RV2P_FILE_09_Ax@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_BNX2_CHIP_ID
Lloh11:
	adrp	x8, _BNX2_CHIP_ID_5709_A1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BNX2_CHIP_ID_5709_A1@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _FW_RV2P_FILE_09@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FW_RV2P_FILE_09@GOTPAGEOFF]
	cmp	x0, x8
	csel	x21, x21, x9, eq
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x8, _FW_MIPS_FILE_06@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FW_MIPS_FILE_06@GOTPAGEOFF]
Lloh18:
	ldr	x20, [x8]
Lloh19:
	adrp	x21, _FW_RV2P_FILE_06@GOTPAGE
Lloh20:
	ldr	x21, [x21, _FW_RV2P_FILE_06@GOTPAGEOFF]
LBB0_4:
	ldr	x22, [x21]
	ldr	x2, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_request_firmware
	cbz	w0, LBB0_6
; %bb.5:
	mov	x23, x0
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	b	LBB0_19
LBB0_6:
	add	x21, x19, #8
	ldr	x2, [x19, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_request_firmware
	cbz	w0, LBB0_8
; %bb.7:
	mov	x23, x0
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_err
	b	LBB0_18
LBB0_8:
	ldr	x0, [x19]
	ldr	w8, [x0]
	cmp	w8, #20
	b.lo	LBB0_17
; %bb.9:
	ldr	x24, [x0, #8]
	ldr	x8, [x19, #8]
	ldr	x23, [x8, #8]
	add	x1, x24, #16
	bl	_check_mips_fw_entry
	cbnz	x0, LBB0_17
; %bb.10:
	ldr	x0, [x19]
	add	x1, x24, #12
	bl	_check_mips_fw_entry
	cbnz	x0, LBB0_17
; %bb.11:
	ldr	x0, [x19]
	add	x1, x24, #8
	bl	_check_mips_fw_entry
	cbnz	x0, LBB0_17
; %bb.12:
	ldr	x0, [x19]
	add	x1, x24, #4
	bl	_check_mips_fw_entry
	cbnz	x0, LBB0_17
; %bb.13:
	ldr	x0, [x19]
	mov	x1, x24
	bl	_check_mips_fw_entry
	cbnz	x0, LBB0_17
; %bb.14:
	ldr	x0, [x21]
	ldr	w8, [x0]
	cmp	w8, #8
	b.lo	LBB0_16
; %bb.15:
	add	x1, x23, #4
	mov	w2, #8
	mov	w3, #1
	bl	_check_fw_section
	cbz	x0, LBB0_20
LBB0_16:
	mov	x20, x22
LBB0_17:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_err
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w23, w8
	ldr	x0, [x21]
	bl	_release_firmware
	str	xzr, [x21]
LBB0_18:
	ldr	x0, [x19]
	bl	_release_firmware
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldr	x0, [x21]
	mov	x1, x23
	mov	w2, #8
	mov	w3, #1
	bl	_check_fw_section
	mov	x20, x22
	cbnz	x0, LBB0_17
; %bb.21:
	mov	w23, #0
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_CHIP_5709,8,3             ; @BNX2_CHIP_5709
	.comm	_FW_MIPS_FILE_09,8,3            ; @FW_MIPS_FILE_09
	.comm	_BNX2_CHIP_ID_5709_A0,8,3       ; @BNX2_CHIP_ID_5709_A0
	.comm	_BNX2_CHIP_ID_5709_A1,8,3       ; @BNX2_CHIP_ID_5709_A1
	.comm	_FW_RV2P_FILE_09_Ax,8,3         ; @FW_RV2P_FILE_09_Ax
	.comm	_FW_RV2P_FILE_09,8,3            ; @FW_RV2P_FILE_09
	.comm	_FW_MIPS_FILE_06,8,3            ; @FW_MIPS_FILE_06
	.comm	_FW_RV2P_FILE_06,8,3            ; @FW_RV2P_FILE_06
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't load firmware file \"%s\"\n"

l_.str.1:                               ; @.str.1
	.asciz	"Firmware file \"%s\" is invalid\n"

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