	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_lookup_setting             ## -- Begin function phy_lookup_setting
	.p2align	4, 0x90
_phy_lookup_setting:                    ## @phy_lookup_setting
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r13
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	addq	$16, %rbx
	movq	_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movq	%r13, %r15
	cmpl	%eax, %r14d
	jge	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 12(%rbx)
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r13
	movq	%rbx, %r12
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	movq	%rbx, %r13
	movl	$0, %edx
	cmovgq	%rdx, %r13
	testq	%r15, %r15
	cmovneq	%r15, %r13
	movq	%rbx, %r12
	cmpl	%ecx, %eax
	jge	LBB0_5
	jmp	LBB0_13
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_9:
	movq	%rbx, %r13
LBB0_13:
	movq	%rbx, %r12
LBB0_14:
	testq	%r13, %r13
	cmovneq	%r13, %r12
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovneq	%r13, %r12
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_settings,8,3                   ## @settings
	.comm	___ETHTOOL_LINK_MODE_MASK_NBITS,8,3 ## @__ETHTOOL_LINK_MODE_MASK_NBITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_lookup_setting             ; -- Begin function phy_lookup_setting
	.p2align	2
_phy_lookup_setting:                    ; @phy_lookup_setting
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x25, _settings@GOTPAGE
Lloh1:
	ldr	x25, [x25, _settings@GOTPAGEOFF]
	ldr	x20, [x25]
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w26, #0
	mov	x28, #0
	mov	x24, #0
Lloh2:
	adrp	x27, ___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPAGE
Lloh3:
	ldr	x27, [x27, ___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w19, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x20
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, #1
	add	x20, x20, #16
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w26, w0
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #8]
	cmp	w8, w23
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x20, #12]
	cmp	w9, w22
	b.ne	LBB0_2
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, w23
	csel	x9, xzr, x20, gt
	cmp	x24, #0
	csel	x24, x9, x24, eq
	mov	x28, x20
	cmp	w8, w23
	b.ge	LBB0_4
	b	LBB0_12
LBB0_10:
	mov	x24, #0
	mov	x28, #0
	b	LBB0_13
LBB0_11:
	mov	x24, x20
LBB0_12:
	mov	x28, x20
LBB0_13:
	cmp	x24, #0
	ccmp	w19, #0, #0, eq
	csel	x0, x24, x28, ne
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_settings,8,3                   ; @settings
	.comm	___ETHTOOL_LINK_MODE_MASK_NBITS,8,3 ; @__ETHTOOL_LINK_MODE_MASK_NBITS
.subsections_via_symbols
