	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_g2_get_eeprom16      ## -- Begin function mv88e6xxx_g2_get_eeprom16
	.p2align	4, 0x90
_mv88e6xxx_g2_get_eeprom16:             ## @mv88e6xxx_g2_get_eeprom16
	.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
	pushq	%rax
	.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, %r14
	movq	%rdi, %r15
	movl	(%rsi), %ebx
	movl	4(%rsi), %r13d
	movl	$0, 4(%rsi)
	testb	$1, %bl
	je	LBB0_3
## %bb.1:
	movl	%ebx, %esi
	shrl	%esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_mv88e6xxx_g2_eeprom_read16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movzbl	-43(%rbp), %eax
	movl	%eax, (%r12)
	addq	$4, %r12
	incl	%ebx
	decl	%r13d
	incl	4(%r14)
LBB0_3:
	cmpl	$2, %r13d
	jb	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	shrl	%esi
	movq	%r15, %rdi
	leaq	-44(%rbp), %rdx
	callq	_mv88e6xxx_g2_eeprom_read16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax
	movzbl	%al, %ecx
	movl	%ecx, (%r12)
	movzbl	%ah, %eax
	movl	%eax, 4(%r12)
	addq	$8, %r12
	addl	$2, %ebx
	addl	$-2, %r13d
	addl	$2, 4(%r14)
	cmpl	$1, %r13d
	ja	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.7:
	shrl	%ebx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mv88e6xxx_g2_eeprom_read16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movzbl	-44(%rbp), %eax
	movl	%eax, (%r12)
	incl	4(%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_g2_get_eeprom16      ; -- Begin function mv88e6xxx_g2_get_eeprom16
	.p2align	2
_mv88e6xxx_g2_get_eeprom16:             ; @mv88e6xxx_g2_get_eeprom16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	w22, w23, [x1]
	str	wzr, [x1, #4]
	tbz	w22, #0, LBB0_3
; %bb.1:
	lsr	w1, w22, #1
	add	x2, sp, #12
	mov	x0, x20
	bl	_mv88e6xxx_g2_eeprom_read16
	cbnz	w0, LBB0_11
; %bb.2:
	ldrb	w8, [sp, #13]
	str	w8, [x21], #4
	add	w22, w22, #1
	sub	w23, w23, #1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_3:
	cmp	w23, #2
	b.lo	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w1, w22, #1
	add	x2, sp, #12
	mov	x0, x20
	bl	_mv88e6xxx_g2_eeprom_read16
	cbnz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	and	w9, w8, #0xff
	ubfx	w10, w8, #8, #8
	add	x8, x21, #8
	stp	w9, w10, [x21]
	add	w22, w22, #2
	sub	w23, w23, #2
	ldr	w9, [x19, #4]
	add	w9, w9, #2
	str	w9, [x19, #4]
	mov	x21, x8
	cmp	w23, #1
	b.hi	LBB0_4
; %bb.6:
	mov	x21, x8
LBB0_7:
	cbz	w23, LBB0_10
; %bb.8:
	lsr	w1, w22, #1
	add	x2, sp, #12
	mov	x0, x20
	bl	_mv88e6xxx_g2_eeprom_read16
	cbnz	w0, LBB0_11
; %bb.9:
	ldrb	w8, [sp, #12]
	str	w8, [x21]
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
