	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getPhyType
_getPhyType:                            ## @getPhyType
	.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	_PHY_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	je	LBB0_8
## %bb.1:
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	je	LBB0_8
## %bb.2:
	movq	_MAX_PHY_DEV_TYPES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.3:
	shll	$6, %esi
	movq	_PHY_OUI_1_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edx, %ecx
	sarl	$10, %ecx
	orl	%esi, %ecx
	movq	_PHY_MODEL_MASK@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	sarl	$4, %edx
	movq	_PHY_DEVICES@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	shlq	$4, %r8
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %r8
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rsi,%rbx), %ecx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	4(%rsi,%rbx), %edx
	jne	LBB0_7
## %bb.6:
	movl	(%rdi), %edi
	movl	12(%rsi,%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
	movq	(%r14), %rax
	movl	8(%rax,%rbx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TYPE_UNKNOWN,4,2           ## @PHY_TYPE_UNKNOWN
	.comm	_PHY_OUI_1_MASK,4,2             ## @PHY_OUI_1_MASK
	.comm	_PHY_MODEL_MASK,4,2             ## @PHY_MODEL_MASK
	.comm	_MAX_PHY_DEV_TYPES,4,2          ## @MAX_PHY_DEV_TYPES
	.comm	_PHY_DEVICES,8,3                ## @PHY_DEVICES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Phy: %s\n"

	.no_dead_strip	_getPhyType
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getPhyType
_getPhyType:                            ; @getPhyType
	.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	x8, x0
Lloh0:
	adrp	x9, _PHY_TYPE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	mov	w9, #65535
	cmp	w1, w9
	b.eq	LBB0_8
; %bb.1:
	cmp	w2, w9
	b.eq	LBB0_8
; %bb.2:
Lloh3:
	adrp	x9, _MAX_PHY_DEV_TYPES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_PHY_DEV_TYPES@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x9]
	cmp	w12, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x19, #0
Lloh6:
	adrp	x9, _PHY_OUI_1_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHY_OUI_1_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w2
	asr	w9, w9, #10
	orr	w9, w9, w1, lsl #6
Lloh9:
	adrp	x10, _PHY_MODEL_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PHY_MODEL_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	and	w10, w10, w2
	asr	w10, w10, #4
Lloh12:
	adrp	x20, _PHY_DEVICES@GOTPAGE
Lloh13:
	ldr	x20, [x20, _PHY_DEVICES@GOTPAGEOFF]
	ldr	x11, [x20]
	lsl	x12, x12, #4
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #16
	cmp	x12, x19
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11, x19]
	cmp	w9, w13
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x13, x11, x19
	ldr	w14, [x13, #4]
	cmp	w10, w14
	b.ne	LBB0_4
; %bb.7:
	ldr	w0, [x8]
	ldr	w2, [x13, #12]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
	ldr	x8, [x20]
	add	x8, x8, x19
	ldr	w0, [x8, #8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TYPE_UNKNOWN,4,2           ; @PHY_TYPE_UNKNOWN
	.comm	_PHY_OUI_1_MASK,4,2             ; @PHY_OUI_1_MASK
	.comm	_PHY_MODEL_MASK,4,2             ; @PHY_MODEL_MASK
	.comm	_MAX_PHY_DEV_TYPES,4,2          ; @MAX_PHY_DEV_TYPES
	.comm	_PHY_DEVICES,8,3                ; @PHY_DEVICES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Phy: %s\n"

	.no_dead_strip	_getPhyType
.subsections_via_symbols
