	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serdes_simple_xlate
_serdes_simple_xlate:                   ## @serdes_simple_xlate
	.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	%rsi, %r14
	callq	_dev_get_drvdata
	cmpl	$2, (%r14)
	jne	LBB0_1
## %bb.4:
	movq	_SERDES_MAX@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_11
## %bb.5:
	movq	%rax, %r15
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_phy_get_drvdata
	cmpl	(%rax), %r14d
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_7:
	movq	%rax, %r13
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_SERDES6G
	cmpl	%eax, %r14d
	jne	LBB0_8
## %bb.9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SERDES_MAX,4,2                 ## @SERDES_MAX
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_serdes_simple_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serdes_simple_xlate
_serdes_simple_xlate:                   ; @serdes_simple_xlate
	.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	x20, x1
	bl	_dev_get_drvdata
	ldr	w8, [x20]
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.1:
Lloh0:
	adrp	x23, _SERDES_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SERDES_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x19, x0
	mov	x21, #0
	ldr	x8, [x20, #8]
	ldp	w22, w24, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	bl	_phy_get_drvdata
	ldr	w8, [x0]
	cmp	w24, w8
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	w8, [x23]
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_8:
	mov	x20, x0
	mov	w0, #0
	bl	_SERDES6G
	cmp	w24, w0
	b.ne	LBB0_10
; %bb.9:
	str	w22, [x20, #4]
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	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_10:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SERDES_MAX,4,2                 ; @SERDES_MAX
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_serdes_simple_xlate
.subsections_via_symbols
