	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_flash_firmware_from_file
_bnxt_flash_firmware_from_file:         ## @bnxt_flash_firmware_from_file
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-40(%rbp), %rdi
	movq	%rdx, %rsi
	movq	%r15, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_netdev_err
	jmp	LBB0_8
LBB0_2:
	movl	%r14d, %edi
	callq	_bnxt_dir_type_is_ape_bin_format
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bnxt_flash_firmware
	jmp	LBB0_7
LBB0_4:
	movl	%r14d, %edi
	callq	_bnxt_dir_type_is_other_exec_format
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bnxt_flash_microcode
	jmp	LBB0_7
LBB0_6:
	movq	_BNX_DIR_ORDINAL_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r9d
	movl	%ecx, (%rsp)
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_bnxt_flash_nvram
LBB0_7:
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	callq	_release_firmware
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %d requesting firmware file: %s\n"

	.comm	_BNX_DIR_ORDINAL_FIRST,4,2      ## @BNX_DIR_ORDINAL_FIRST
	.no_dead_strip	_bnxt_flash_firmware_from_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_flash_firmware_from_file
_bnxt_flash_firmware_from_file:         ; @bnxt_flash_firmware_from_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, x2
	mov	x2, x19
	bl	_request_firmware
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_netdev_err
	b	LBB0_8
LBB0_2:
	mov	x0, x20
	bl	_bnxt_dir_type_is_ape_bin_format
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	ldp	w3, w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_flash_firmware
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_bnxt_dir_type_is_other_exec_format
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [sp, #8]
	ldp	w3, w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_flash_microcode
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _BNX_DIR_ORDINAL_FIRST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BNX_DIR_ORDINAL_FIRST@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	x8, [sp, #8]
	ldp	w6, w5, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	mov	w4, #0
	bl	_bnxt_flash_nvram
LBB0_7:
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_release_firmware
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %d requesting firmware file: %s\n"

	.comm	_BNX_DIR_ORDINAL_FIRST,4,2      ; @BNX_DIR_ORDINAL_FIRST
	.no_dead_strip	_bnxt_flash_firmware_from_file
.subsections_via_symbols
