	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_resolve_min_speed
_phy_resolve_min_speed:                 ## @phy_resolve_min_speed
	.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
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_common@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	___ETHTOOL_DECLARE_LINK_MODE_MASK
	movq	_settings@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movl	(%r13), %edx
	movl	4(%r13), %esi
	callq	_linkmode_and
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	movl	%r14d, %ebx
	incq	%rbx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %r13d
	movq	(%r12), %rax
	shlq	$4, %r13
	movl	12(%rax,%r13), %edi
	movq	_common@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax,%r13), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_5
LBB0_7:
	addq	%r13, %rax
	addq	$8, %rax
	jmp	LBB0_8
LBB0_6:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_common,4,2                     ## @common
	.comm	_settings,8,3                   ## @settings
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.no_dead_strip	_phy_resolve_min_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_resolve_min_speed
_phy_resolve_min_speed:                 ; @phy_resolve_min_speed
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _common@GOTPAGE
Lloh1:
	ldr	x22, [x22, _common@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	___ETHTOOL_DECLARE_LINK_MODE_MASK
Lloh2:
	adrp	x23, _settings@GOTPAGE
Lloh3:
	ldr	x23, [x23, _settings@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	mov	x20, x0
	ldr	w0, [x22]
	ldp	w2, w1, [x21]
	bl	_linkmode_and
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w8, w20
	add	x21, x8, #1
Lloh4:
	adrp	x20, _SPEED_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x20, [x20, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh6:
	adrp	x24, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DUPLEX_FULL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x21, x21, #1
	cmp	x21, #1
	b.ls	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w21, #2
	ldr	x8, [x23]
	add	x8, x8, w25, uxtw #4
	ldr	w0, [x8, #12]
	ldr	w1, [x22]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	cbz	w19, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x9, x25, #4
	ldr	x9, [x8, x9]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_2
LBB0_6:
	add	x8, x8, x25, lsl #4
	add	x20, x8, #8
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x20, _SPEED_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x20, [x20, _SPEED_UNKNOWN@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x20]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_common,4,2                     ; @common
	.comm	_settings,8,3                   ; @settings
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.no_dead_strip	_phy_resolve_min_speed
.subsections_via_symbols
