	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethadv_to_hw_cfg
_ethadv_to_hw_cfg:                      ## @ethadv_to_hw_cfg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_7
## %bb.1:
	movsbl	%sil, %edx
	movl	%edx, %eax
	sarl	$7, %eax
	movq	_ALX_DRV_PHY_10@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	%edi, %eax
	movq	_ALX_DRV_PHY_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	%r8d, %edi
	testb	$-127, %dl
	cmovel	%eax, %edi
	movq	_ALX_DRV_PHY_AUTO@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%esi, %eax
	andl	$130, %eax
	movq	_ALX_DRV_PHY_100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovnel	%ecx, %eax
	orl	%r8d, %ecx
	testb	$-125, %dl
	cmovnel	%ecx, %eax
	orl	%edi, %eax
	movq	_ADVERTISED_1000baseT_Half@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%esi, %edx
	je	LBB0_3
## %bb.2:
	movq	_ALX_DRV_PHY_1000@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_3:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%esi, %edi
	cmovel	%edi, %ecx
	orl	%ecx, %eax
	orl	%edx, %eax
	movq	_ADVERTISED_Pause@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	je	LBB0_5
## %bb.4:
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	orl	%ecx, %eax
	movq	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_17
## %bb.6:
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_7:
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_11
## %bb.8:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	movq	_ALX_DRV_PHY_10@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_12:
	movq	_ALX_DRV_PHY_10@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_13:
	movq	_ALX_DRV_PHY_100@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_14:
	movq	_ALX_DRV_PHY_100@GOTPCREL(%rip), %rcx
LBB0_15:
	movq	_ALX_DRV_PHY_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	orl	(%rcx), %eax
LBB0_17:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_ALX_DRV_PHY_AUTO,4,2           ## @ALX_DRV_PHY_AUTO
	.comm	_ALX_DRV_PHY_10,4,2             ## @ALX_DRV_PHY_10
	.comm	_ALX_DRV_PHY_DUPLEX,4,2         ## @ALX_DRV_PHY_DUPLEX
	.comm	_ALX_DRV_PHY_100,4,2            ## @ALX_DRV_PHY_100
	.comm	_ADVERTISED_1000baseT_Half,4,2  ## @ADVERTISED_1000baseT_Half
	.comm	_ALX_DRV_PHY_1000,4,2           ## @ALX_DRV_PHY_1000
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISED_Pause,4,2           ## @ADVERTISED_Pause
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISED_Asym_Pause,4,2      ## @ADVERTISED_Asym_Pause
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.no_dead_strip	_ethadv_to_hw_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethadv_to_hw_cfg
_ethadv_to_hw_cfg:                      ; @ethadv_to_hw_cfg
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ADVERTISED_Autoneg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ALX_DRV_PHY_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALX_DRV_PHY_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w9, w1, #24
Lloh6:
	adrp	x10, _ALX_DRV_PHY_10@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ALX_DRV_PHY_10@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w9, w10, w9, asr #31
Lloh9:
	adrp	x11, _ALX_DRV_PHY_DUPLEX@GOTPAGE
Lloh10:
	ldr	x11, [x11, _ALX_DRV_PHY_DUPLEX@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w11, w10
	mov	w12, #129
	tst	w1, w12
	csel	w9, w9, w10, eq
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _ALX_DRV_PHY_100@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ALX_DRV_PHY_100@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mov	w10, #130
	tst	w1, w10
	csel	w10, wzr, w9, eq
	orr	w9, w9, w11
	mov	w11, #131
	tst	w1, w11
	csel	w10, w10, w9, eq
	orr	w8, w8, w10
Lloh15:
	adrp	x10, _ADVERTISED_1000baseT_Half@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ADVERTISED_1000baseT_Half@GOTPAGEOFF]
Lloh17:
	adrp	x11, _ALX_DRV_PHY_1000@GOTPAGE
Lloh18:
	ldr	x11, [x11, _ALX_DRV_PHY_1000@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	ldr	w11, [x11]
	tst	w10, w1
	csel	w10, wzr, w11, eq
Lloh21:
	adrp	x11, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh22:
	ldr	x11, [x11, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
	orr	w8, w8, w10
Lloh23:
	ldr	w10, [x11]
	tst	w10, w1
	csel	w9, wzr, w9, eq
Lloh24:
	adrp	x10, _ADVERTISED_Pause@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ADVERTISED_Pause@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh26:
	ldr	w9, [x10]
Lloh27:
	adrp	x10, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
Lloh30:
	adrp	x8, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_11
; %bb.2:
Lloh33:
	adrp	x8, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ret
LBB0_3:
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.4:
Lloh36:
	adrp	x9, lJTI0_0@PAGE
Lloh37:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh38:
	adrp	x8, _ALX_DRV_PHY_10@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ALX_DRV_PHY_10@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ret
LBB0_6:
	mov	w0, #0
	ret
LBB0_7:
Lloh41:
	adrp	x8, _ALX_DRV_PHY_10@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ALX_DRV_PHY_10@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh43:
	adrp	x8, _ALX_DRV_PHY_100@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ALX_DRV_PHY_100@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ret
LBB0_9:
Lloh46:
	adrp	x8, _ALX_DRV_PHY_100@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ALX_DRV_PHY_100@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _ALX_DRV_PHY_DUPLEX@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ALX_DRV_PHY_DUPLEX@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w0, w9, w8
LBB0_11:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_ALX_DRV_PHY_AUTO,4,2           ; @ALX_DRV_PHY_AUTO
	.comm	_ALX_DRV_PHY_10,4,2             ; @ALX_DRV_PHY_10
	.comm	_ALX_DRV_PHY_DUPLEX,4,2         ; @ALX_DRV_PHY_DUPLEX
	.comm	_ALX_DRV_PHY_100,4,2            ; @ALX_DRV_PHY_100
	.comm	_ADVERTISED_1000baseT_Half,4,2  ; @ADVERTISED_1000baseT_Half
	.comm	_ALX_DRV_PHY_1000,4,2           ; @ALX_DRV_PHY_1000
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISED_Pause,4,2           ; @ADVERTISED_Pause
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISED_Asym_Pause,4,2      ; @ADVERTISED_Asym_Pause
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.no_dead_strip	_ethadv_to_hw_cfg
.subsections_via_symbols
