	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_ethtool_set_eeprom
_lan743x_ethtool_set_eeprom:            ## @lan743x_ethtool_set_eeprom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	movq	_LAN743X_ADAPTER_FLAG_OTP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	(%rbx), %rdx
	testl	%esi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_LAN743X_OTP_MAGIC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.2:
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	%rax, %rdi
	movq	%r14, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lan743x_otp_write              ## TAILCALL
LBB0_3:
	movq	_LAN743X_EEPROM_MAGIC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.5:
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	%rax, %rdi
	movq	%r14, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lan743x_eeprom_write           ## TAILCALL
LBB0_4:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LAN743X_ADAPTER_FLAG_OTP,4,2   ## @LAN743X_ADAPTER_FLAG_OTP
	.comm	_LAN743X_OTP_MAGIC,8,3          ## @LAN743X_OTP_MAGIC
	.comm	_LAN743X_EEPROM_MAGIC,8,3       ## @LAN743X_EEPROM_MAGIC
	.no_dead_strip	_lan743x_ethtool_set_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_ethtool_set_eeprom
_lan743x_ethtool_set_eeprom:            ; @lan743x_ethtool_set_eeprom
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_netdev_priv
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w10, [x0]
Lloh3:
	adrp	x9, _LAN743X_ADAPTER_FLAG_OTP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LAN743X_ADAPTER_FLAG_OTP@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x9]
	ldr	x9, [x20]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x10, _LAN743X_OTP_MAGIC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LAN743X_OTP_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.2:
	ldp	w2, w1, [x20, #8]
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lan743x_otp_write
LBB0_3:
Lloh9:
	adrp	x10, _LAN743X_EEPROM_MAGIC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LAN743X_EEPROM_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
	ldp	w2, w1, [x20, #8]
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lan743x_eeprom_write
LBB0_5:
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LAN743X_ADAPTER_FLAG_OTP,4,2   ; @LAN743X_ADAPTER_FLAG_OTP
	.comm	_LAN743X_OTP_MAGIC,8,3          ; @LAN743X_OTP_MAGIC
	.comm	_LAN743X_EEPROM_MAGIC,8,3       ; @LAN743X_EEPROM_MAGIC
	.no_dead_strip	_lan743x_ethtool_set_eeprom
.subsections_via_symbols
