	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_ethtool_flash_device     ## -- Begin function mlx5e_ethtool_flash_device
	.p2align	4, 0x90
_mlx5e_ethtool_flash_device:            ## @mlx5e_ethtool_flash_device
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_ETHTOOL_FLASH_ALL_REGIONS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	(%rdi), %r15
	movq	8(%rdi), %r14
	movl	8(%rsi), %esi
	leaq	-32(%rbp), %rdi
	movq	%r15, %rdx
	callq	_request_firmware_direct
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_dev_hold
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mlx5_firmware_flash
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_release_firmware
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r15, %rdi
	callq	_dev_put
	jmp	LBB0_4
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_FLASH_ALL_REGIONS,8,3  ## @ETHTOOL_FLASH_ALL_REGIONS
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_ethtool_flash_device     ; -- Begin function mlx5e_ethtool_flash_device
	.p2align	2
_mlx5e_ethtool_flash_device:            ; @mlx5e_ethtool_flash_device
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _ETHTOOL_FLASH_ALL_REGIONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETHTOOL_FLASH_ALL_REGIONS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldp	x19, x20, [x0]
	ldr	w1, [x1, #8]
	add	x0, sp, #8
	mov	x2, x19
	bl	_request_firmware_direct
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_dev_hold
	bl	_rtnl_unlock
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, #0
	bl	_mlx5_firmware_flash
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_release_firmware
	bl	_rtnl_lock
	mov	x0, x19
	bl	_dev_put
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_FLASH_ALL_REGIONS,8,3  ; @ETHTOOL_FLASH_ALL_REGIONS
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
