	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ael2xxx_get_module_type
_ael2xxx_get_module_type:               ## @ael2xxx_get_module_type
	.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	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	%esi, %edi
	callq	_msleep
LBB0_2:
	movq	_MODULE_DEV_ADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_ael_i2c_rd
	testl	%eax, %eax
	js	LBB0_19
## %bb.3:
	cmpl	$64, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$32, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$16, %eax
	jne	LBB0_9
## %bb.6:
	movq	_phy_modtype_sr@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_8:
	movq	_phy_modtype_lrm@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_7:
	movq	_phy_modtype_lr@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_9:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_ael_i2c_rd
	testl	%eax, %eax
	js	LBB0_19
## %bb.10:
	cmpl	$4, %eax
	jne	LBB0_17
## %bb.11:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_ael_i2c_rd
	testl	%eax, %eax
	js	LBB0_19
## %bb.12:
	testb	$-128, %al
	jne	LBB0_13
LBB0_17:
	movq	_phy_modtype_unknown@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$18, %edx
	callq	_ael_i2c_rd
	testl	%eax, %eax
	js	LBB0_19
## %bb.14:
	cmpl	$11, %eax
	jb	LBB0_15
## %bb.16:
	movq	_phy_modtype_twinax_long@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	movq	_phy_modtype_twinax@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MODULE_DEV_ADDR,4,2            ## @MODULE_DEV_ADDR
	.comm	_phy_modtype_sr,4,2             ## @phy_modtype_sr
	.comm	_phy_modtype_lr,4,2             ## @phy_modtype_lr
	.comm	_phy_modtype_lrm,4,2            ## @phy_modtype_lrm
	.comm	_phy_modtype_twinax_long,4,2    ## @phy_modtype_twinax_long
	.comm	_phy_modtype_twinax,4,2         ## @phy_modtype_twinax
	.comm	_phy_modtype_unknown,4,2        ## @phy_modtype_unknown
	.no_dead_strip	_ael2xxx_get_module_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ael2xxx_get_module_type
_ael2xxx_get_module_type:               ; @ael2xxx_get_module_type
	.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, x0
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x1
	bl	_msleep
LBB0_2:
Lloh0:
	adrp	x20, _MODULE_DEV_ADDR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MODULE_DEV_ADDR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #3
	bl	_ael_i2c_rd
	tbnz	w0, #31, LBB0_15
; %bb.3:
	cmp	w0, #64
	b.eq	LBB0_7
; %bb.4:
	cmp	w0, #32
	b.eq	LBB0_8
; %bb.5:
	cmp	w0, #16
	b.ne	LBB0_9
; %bb.6:
Lloh2:
	adrp	x8, _phy_modtype_sr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _phy_modtype_sr@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
Lloh4:
	adrp	x8, _phy_modtype_lrm@GOTPAGE
Lloh5:
	ldr	x8, [x8, _phy_modtype_lrm@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
Lloh6:
	adrp	x8, _phy_modtype_lr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _phy_modtype_lr@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #6
	bl	_ael_i2c_rd
	tbnz	w0, #31, LBB0_15
; %bb.10:
	cmp	w0, #4
	b.ne	LBB0_13
; %bb.11:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #10
	bl	_ael_i2c_rd
	tbnz	w0, #31, LBB0_15
; %bb.12:
	tbnz	w0, #7, LBB0_16
LBB0_13:
Lloh8:
	adrp	x8, _phy_modtype_unknown@GOTPAGE
Lloh9:
	ldr	x8, [x8, _phy_modtype_unknown@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #18
	bl	_ael_i2c_rd
	tbnz	w0, #31, LBB0_15
; %bb.17:
Lloh10:
	adrp	x8, _phy_modtype_twinax_long@GOTPAGE
Lloh11:
	ldr	x8, [x8, _phy_modtype_twinax_long@GOTPAGEOFF]
Lloh12:
	adrp	x9, _phy_modtype_twinax@GOTPAGE
Lloh13:
	ldr	x9, [x9, _phy_modtype_twinax@GOTPAGEOFF]
	cmp	w0, #10
	csel	x8, x8, x9, hi
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MODULE_DEV_ADDR,4,2            ; @MODULE_DEV_ADDR
	.comm	_phy_modtype_sr,4,2             ; @phy_modtype_sr
	.comm	_phy_modtype_lr,4,2             ; @phy_modtype_lr
	.comm	_phy_modtype_lrm,4,2            ; @phy_modtype_lrm
	.comm	_phy_modtype_twinax_long,4,2    ; @phy_modtype_twinax_long
	.comm	_phy_modtype_twinax,4,2         ; @phy_modtype_twinax
	.comm	_phy_modtype_unknown,4,2        ; @phy_modtype_unknown
	.no_dead_strip	_ael2xxx_get_module_type
.subsections_via_symbols
